diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2001-03-06 15:25:28 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2001-03-06 15:25:28 +0000 |
commit | 80831beee1c1db87b63e15efdcbcd0ed4354c62f (patch) | |
tree | 205519b37846db41120f65a7e4f4d5d15fd8d53b /libc/sysdeps/linux/common/syscalls.c | |
parent | 8bee736e612e0f3f6c27dd07514d061bc85dbf3b (diff) |
Fix unified syscall stuff for changed ?stat. Move fork to syscalls.c wrapped
with a check for NO_MMU of course.
Diffstat (limited to 'libc/sysdeps/linux/common/syscalls.c')
-rw-r--r-- | libc/sysdeps/linux/common/syscalls.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c index 5c35cc679..56d9685d1 100644 --- a/libc/sysdeps/linux/common/syscalls.c +++ b/libc/sysdeps/linux/common/syscalls.c @@ -26,10 +26,6 @@ #include <sys/types.h> #include <sys/syscall.h> -#define uClibc_syscall_exit(void, _exit, int, status) \ -_syscall1(void, _exit, int, status) - - #include "unified_syscall.h" //#define __NR_exit 1 @@ -37,11 +33,16 @@ _syscall1(void, _exit, int, status) /* Do not include unistd.h, so gcc doesn't whine about * _exit returning. It really doesn't return... */ #define __NR__exit __NR_exit -uClibc_syscall_exit(void, _exit, int, status); +_syscall1(void, _exit, int, status); #endif //#define __NR_fork 2 -//See architecture specific implementation... +#ifdef L_fork +#ifndef __HAS_NO_MMU__ +#include <unistd.h> +_syscall0(pid_t, fork); +#endif +#endif //#define __NR_read 3 #ifdef L_read |