repo.or.cz
/
glibc
/
nacl-glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Mark __libc_resp with attribute_tls_model_ie for consistency with __resp
[glibc/nacl-glibc.git]
/
sysdeps
/
nacl
/
_exit.c
blob
faf8313e5987835b81be0684032c0b7fb1720b0b
1
2
#include <stdlib.h>
3
#include <unistd.h>
4
5
#include <nacl_syscalls.h>
6
7
8
void
_exit
(
int
status
)
9
{
10
int
(*
nacl_exit
)(
int
status
) =
NACL_SYSCALL_ADDR
(
NACL_sys_exit
);
11
nacl_exit
(
status
);
12
/* In case the syscall returns: */
13
__asm__
(
"hlt"
);
14
}
15
libc_hidden_def
(
_exit
)
16
weak_alias
(
_exit
,
_Exit
)