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