diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-10-16 04:36:26 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-10-16 04:36:26 +0000 |
commit | 51bdb16f3a82f2844f9be13ef61e8a4b4a5f4b60 (patch) | |
tree | 670dd38e21af5b160cf2d07d482373dfc0fe6453 /libc/sysdeps/linux/common/syscalls.c | |
parent | c374b5e0baa4f7248ab7d0b2dbe8780cc08b899a (diff) |
Geez, I really screwed that one up. Lets try that one again...
Revert mmap to where it was in rev 1.41 of this file,
-Erik
Diffstat (limited to 'libc/sysdeps/linux/common/syscalls.c')
-rw-r--r-- | libc/sysdeps/linux/common/syscalls.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c index b02d4864f..c4a5c0135 100644 --- a/libc/sysdeps/linux/common/syscalls.c +++ b/libc/sysdeps/linux/common/syscalls.c @@ -636,16 +636,13 @@ int reboot(int flag) //#define __NR_readdir 89 //#define __NR_mmap 90 -#ifdef L_mmap +#ifdef L__mmap #define __NR__mmap __NR_mmap #ifdef __STR_NR_mmap #define __STR_NR__mmap __STR_NR_mmap #endif #include <unistd.h> #include <sys/mman.h> - -#if __UCLIBC_OLD_STYLE_MMAP__ - extern __ptr_t _mmap(unsigned long *buffer); _syscall1(__ptr_t, _mmap, unsigned long *, buffer); @@ -663,15 +660,6 @@ __ptr_t mmap(__ptr_t addr, size_t len, int prot, buffer[5] = (unsigned long) offset; return (__ptr_t) _mmap(buffer); } - -#else /* !__UCLIBC_OLD_STYLE_MMAP__ */ - -_syscall6(__ptr_t, mmap, - __ptr_t, addr, size_t, len, int, prot, - int, flags, int, fd, __off_t, offset); - -#endif /* __UCLIBC_OLD_STYLE_MMAP__ */ - #endif //#define __NR_munmap 91 |