Changes in uspace/lib/c/generic/libc.c [63f8966:3292623] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/libc.c
r63f8966 r3292623 62 62 void __main(void *pcb_ptr) 63 63 { 64 int retval; 65 64 /* Initialize user task run-time environment */ 66 65 __heap_init(); 67 66 __async_init(); … … 75 74 char **argv; 76 75 76 /* Get command line arguments and initialize 77 standard input and output */ 77 78 if (__pcb == NULL) { 78 79 argc = 0; … … 86 87 } 87 88 88 retval = main(argc, argv); 89 90 __stdio_done(); 91 (void) task_retval(retval); 89 /* Run main() and set task return value 90 according the result */ 91 (void) task_retval(main(argc, argv)); 92 92 } 93 93 94 94 void __exit(void) 95 95 { 96 __stdio_done(); 96 97 fibril_teardown(__tcb_get()->fibril_data); 97 98 _exit(0);
Note:
See TracChangeset
for help on using the changeset viewer.