Changeset 849ed54 in mainline for uspace/srv/net/netstart/netstart.c
- Timestamp:
- 2010-03-30T18:39:04Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7553689
- Parents:
- 7d6fe4db
- File:
-
- 1 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 */
Note:
See TracChangeset
for help on using the changeset viewer.