Changeset 29a9f62 in mainline for libc/generic/libc.c
- Timestamp:
- 2006-03-23T10:33:55Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 77bd004
- Parents:
- 1cef26f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libc/generic/libc.c
r1cef26f r29a9f62 30 30 #include <unistd.h> 31 31 #include <thread.h> 32 #include <malloc.h> 33 #include <psthread.h> 32 34 33 35 void _exit(int status) { … … 36 38 37 39 void __main(void) { 40 __tls_set(__make_tls()); 38 41 } 39 42 40 43 void __exit(void) { 44 free(__tls_get()); 45 41 46 _exit(0); 42 47 }
Note:
See TracChangeset
for help on using the changeset viewer.