123456789101112131415161718192021222324252627282930313233343536373839 |
- #define _GNU_SOURCE
- #include <features.h>
- #include <errno.h>
- #include <sys/types.h>
- #include <sys/syscall.h>
- #ifndef INLINE_SYSCALL
- #define INLINE_SYSCALL(name, nr, args...) __syscall_exit (args)
- #define __NR___syscall_exit __NR_exit
- static inline _syscall1(void, __syscall_exit, int, status);
- #endif
- void _exit(int status)
- {
- INLINE_SYSCALL(exit, 1, status);
- }
|