Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1112 → Rev 1113

/uspace/trunk/libc/generic/libc.c
29,6 → 29,8
#include <libc.h>
#include <unistd.h>
#include <thread.h>
#include <malloc.h>
#include <psthread.h>
 
void _exit(int status) {
thread_exit(status);
35,8 → 37,11
}
 
void __main(void) {
__tls_set(__make_tls());
}
 
void __exit(void) {
free(__tls_get());
_exit(0);
}