4 * Note: all programs need exit(), since it's invoked from
5 * crt0.o. Therefore there is no point in breaking apart
11 #include <sys/syscall.h>
13 /* We have an assembly version for i386 and x86-64 */
15 #if !defined(__i386__) && !defined(__x86_64__)
17 #define __NR___exit __NR_exit
19 /* Syscalls can't return void... */
20 static inline _syscall1(int,__exit,int,rv);
22 /* This allows atexit/on_exit to install a hook */
23 __noreturn (*__exit_handler)(int) = _exit;
25 __noreturn exit(int rv)
30 __noreturn _exit(int rv)