Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 7114d83 in mainline for uspace/lib/libc/generic/libc.c


Ignore:
Timestamp:
2009-07-06T16:02:27Z (12 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master
Children:
5d96851
Parents:
d68e4d5
Message:

Allow task to return value (will be improved).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/libc.c

    rd68e4d5 r7114d83  
    6262void __main(void *pcb_ptr)
    6363{
     64        int retval;
     65
    6466        __heap_init();
    6567        __async_init();
     
    8385        }
    8486       
    85         main(argc, argv);
     87        retval = main(argc, argv);
     88
    8689        __stdio_done();
     90        (void) task_retval(retval);
    8791}
    8892
Note: See TracChangeset for help on using the changeset viewer.