Changeset 24ab58b3 in mainline for uspace/srv/net/netstart
- Timestamp:
- 2010-04-06T11:41:48Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 14f1db0
- Parents:
- 4dd8529
- Location:
- uspace/srv/net/netstart
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/netstart/netstart.c
r4dd8529 r24ab58b3 79 79 } 80 80 81 /** Network startup entry point.82 *83 * @param[in] argc The number of command line parameters.84 * @param[in] argv The command line parameters.85 *86 * @returns EOK on success.87 * @returns EINVAL if the net module cannot be started.88 * @returns Other error codes as defined for the self_test() function.89 * @returns Other error codes as defined for the NET_NET_STARTUP message.90 *91 */92 81 int main(int argc, char *argv[]) 93 82 { … … 105 94 int net_phone = connect_to_service(SERVICE_NETWORKING); 106 95 if (ERROR_OCCURRED(ipc_call_sync_0_0(net_phone, NET_NET_STARTUP))) { 107 fprintf(stderr, "%s: Networkingerror %d\n", NAME, ERROR_CODE);96 fprintf(stderr, "%s: Startup error %d\n", NAME, ERROR_CODE); 108 97 return ERROR_CODE; 109 98 } -
uspace/srv/net/netstart/self_test.c
r4dd8529 r24ab58b3 49 49 #include "self_test.h" 50 50 51 /** Test the function, compare the result and remember if the result differs. 52 * 53 * @param[in] name The test name. 54 * @param[in] function_call The function to be called and checked. 55 * @param[in] result The expected result. 51 /** Test the statement, compare the result and evaluate. 52 * 53 * @param[in] statement The statement to test. 54 * @param[in] result The expected result. 56 55 * 57 56 */ … … 85 84 INT_MAP_IMPLEMENT(int_map, int); 86 85 86 /** Self-test start function. 87 * 88 * Run all self-tests. 89 * 90 * @returns EOK on success. 91 * @returns The first error occurred. 92 * 93 */ 87 94 int self_test(void) 88 95 {
Note:
See TracChangeset
for help on using the changeset viewer.