From c374b5e0baa4f7248ab7d0b2dbe8780cc08b899a Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 16 Oct 2001 04:34:10 +0000 Subject: Oops. I merged things backwards. Lets try that again... --- libc/sysdeps/linux/v850/_mmap.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'libc/sysdeps/linux') 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 #include - -__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); -- cgit v1.2.3