chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make run_directory.c stat the place it is going to try to run.
[elogind.git]
/
klibc
/
klibc
/
exitc.c
diff --git
a/klibc/klibc/exitc.c
b/klibc/klibc/exitc.c
index 6e5d78979ddb7989ee05b7a4faad557193e9e189..8819737fb7afea9027e15eb0b2029b449a33717c 100644
(file)
--- a/
klibc/klibc/exitc.c
+++ b/
klibc/klibc/exitc.c
@@
-1,9
+1,7
@@
/*
* exit.c
*
/*
* exit.c
*
- * Note: all programs need exit(), since it's invoked from
- * crt0.o. Therefore there is no point in breaking apart
- * exit() and _exit().
+ * Implement exit()
*/
#include <stdlib.h>
*/
#include <stdlib.h>
@@
-14,11
+12,6
@@
#if !defined(__i386__) && !defined(__x86_64__)
#if !defined(__i386__) && !defined(__x86_64__)
-#define __NR___exit __NR_exit
-
-/* Syscalls can't return void... */
-static inline _syscall1(int,__exit,int,rv);
-
/* This allows atexit/on_exit to install a hook */
__noreturn (*__exit_handler)(int) = _exit;
/* This allows atexit/on_exit to install a hook */
__noreturn (*__exit_handler)(int) = _exit;
@@
-27,10
+20,4
@@
__noreturn exit(int rv)
__exit_handler(rv);
}
__exit_handler(rv);
}
-__noreturn _exit(int rv)
-{
- __exit(rv);
- for(;;);
-}
-
#endif
#endif