Subversion Repositories HelenOS

Rev

Rev 1065 | Rev 1129 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1065 Rev 1113
Line 27... Line 27...
27
 */
27
 */
28
 
28
 
29
#include <libc.h>
29
#include <libc.h>
30
#include <unistd.h>
30
#include <unistd.h>
31
#include <thread.h>
31
#include <thread.h>
-
 
32
#include <malloc.h>
-
 
33
#include <psthread.h>
32
 
34
 
33
void _exit(int status) {
35
void _exit(int status) {
34
    thread_exit(status);
36
    thread_exit(status);
35
}
37
}
36
 
38
 
37
void __main(void) {
39
void __main(void) {
-
 
40
    __tls_set(__make_tls());
38
}
41
}
39
 
42
 
40
void __exit(void) {
43
void __exit(void) {
-
 
44
    free(__tls_get());
-
 
45
   
41
    _exit(0);
46
    _exit(0);
42
}
47
}