summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-10-16 04:34:10 +0000
committerEric Andersen <andersen@codepoet.org>2001-10-16 04:34:10 +0000
commitc374b5e0baa4f7248ab7d0b2dbe8780cc08b899a (patch)
tree39af0b3018a5c8c653e10015303e441c7094e4d6 /libc/sysdeps/linux
parent46d6bbc8e2d2016ecbe851a10bb1676bd7e96274 (diff)
Oops. I merged things backwards. Lets try that again...
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/v850/_mmap.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/libc/sysdeps/linux/v850/_mmap.c b/libc/sysdeps/linux/v850/_mmap.c
index a0c58253a..a8d3670b5 100644
--- a/libc/sysdeps/linux/v850/_mmap.c
+++ b/libc/sysdeps/linux/v850/_mmap.c
@@ -3,18 +3,6 @@
#include <sys/mman.h>
#include <sys/syscall.h>
-
-__ptr_t mmap(__ptr_t addr, size_t len, int prot,
- int flags, int fd, __off_t offset)
-{
- unsigned long buffer[6];
-
- buffer[0] = (unsigned long) addr;
- buffer[1] = (unsigned long) len;
- buffer[2] = (unsigned long) prot;
- buffer[3] = (unsigned long) flags;
- buffer[4] = (unsigned long) fd;
- buffer[5] = (unsigned long) offset;
- return (__ptr_t) _mmap(buffer);
-}
+_syscall6(__ptr_t, mmap, __ptr_t, addr, size_t, len, int, prot,
+ int, flags, int, fd, __off_t, offset);