Changeset 849ed54 in mainline for uspace/srv/net/netstart
- Timestamp:
- 2010-03-30T18:39:04Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7553689
- Parents:
- 7d6fe4db
- Location:
- uspace/srv/net/netstart
- Files:
-
- 1 added
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/netstart/netstart.c
r7d6fe4db r849ed54 44 44 #include <ipc/services.h> 45 45 46 #include "../../err.h" 47 #include "../../modules.h" 48 #include "../../self_test.h" 49 50 #include "../net_messages.h" 46 #include <net_err.h> 47 #include <net_modules.h> 48 #include <net_net_messages.h> 49 #include "self_test.h" 51 50 52 51 /** Networking startup module name. 53 52 */ 54 53 #define NAME "Networking startup" 54 55 /** Starts the module. 56 * @param[in] fname The module absolute name. 57 * @returns The started module task identifier. 58 * @returns Other error codes as defined for the task_spawn() function. 59 */ 60 static task_id_t spawn(const char * fname){ 61 const char * argv[2]; 62 task_id_t res; 63 64 argv[0] = fname; 65 argv[1] = NULL; 66 res = task_spawn(fname, argv); 67 68 return res; 69 } 55 70 56 71 /** Module entry point. … … 62 77 * @returns Other error codes as defined for the NET_NET_STARTUP message. 63 78 */ 64 int main(int argc, char * argv[]);65 66 /** Starts the module.67 * @param[in] fname The module absolute name.68 * @returns The started module task identifier.69 * @returns Other error codes as defined for the task_spawn() function.70 */71 task_id_t spawn(const char * fname);72 73 79 int main(int argc, char * argv[]){ 74 80 ERROR_DECLARE; … … 101 107 } 102 108 103 task_id_t spawn(const char * fname){104 const char * argv[2];105 task_id_t res;106 107 argv[0] = fname;108 argv[1] = NULL;109 res = task_spawn(fname, argv);110 111 return res;112 }113 114 109 /** @} 115 110 */ -
uspace/srv/net/netstart/self_test.c
r7d6fe4db r849ed54 43 43 #include <stdio.h> 44 44 45 #include "include/checksum.h"46 #include "structures/int_map.h"47 #include "structures/char_map.h"48 #include "structures/generic_char_map.h"49 #include "structures/measured_strings.h"50 #include "structures/dynamic_fifo.h"45 #include <net_checksum.h> 46 #include <adt/int_map.h> 47 #include <adt/char_map.h> 48 #include <adt/generic_char_map.h> 49 #include <adt/measured_strings.h> 50 #include <adt/dynamic_fifo.h> 51 51 52 52 #include "self_test.h" -
uspace/srv/net/netstart/self_test.h
r7d6fe4db r849ed54 49 49 #if NET_SELF_TEST 50 50 51 int self_test(void);51 extern int self_test(void); 52 52 53 53 #else
Note:
See TracChangeset
for help on using the changeset viewer.