diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-28 02:40:45 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-28 02:40:45 +0000 |
commit | fd666fca933f7241ff75d06ff36c9282fd443335 (patch) | |
tree | 51c22ee096ef9faf99b5b9109e1dbba1e29775f6 /libc/sysdeps/linux/mips/mmap.c | |
parent | dc1b79ff637e014a1d99dbca4a2beb5d2ec9cdcc (diff) | |
download | uClibc-alpine-fd666fca933f7241ff75d06ff36c9282fd443335.tar.bz2 uClibc-alpine-fd666fca933f7241ff75d06ff36c9282fd443335.tar.xz |
Merge from trunk.
Diffstat (limited to 'libc/sysdeps/linux/mips/mmap.c')
-rw-r--r-- | libc/sysdeps/linux/mips/mmap.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/mips/mmap.c b/libc/sysdeps/linux/mips/mmap.c index 25a3ef5bd..4e0897f45 100644 --- a/libc/sysdeps/linux/mips/mmap.c +++ b/libc/sysdeps/linux/mips/mmap.c @@ -1,9 +1,17 @@ /* Use new style mmap for mips */ +/* + * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + #include <unistd.h> #include <errno.h> #include <sys/mman.h> #include <sys/syscall.h> +libc_hidden_proto(mmap) + #if 0 /* For now, leave mmap using mmap1 since mmap2 seems * to have issues (i.e. it doesn't work 100% properly). @@ -14,7 +22,6 @@ #endif #endif -#define __NR___mmap __NR_mmap -attribute_hidden _syscall6 (__ptr_t, __mmap, __ptr_t, addr, size_t, len, int, prot, +_syscall6 (__ptr_t, mmap, __ptr_t, addr, size_t, len, int, prot, int, flags, int, fd, __off_t, offset); -strong_alias(__mmap,mmap) +libc_hidden_def(mmap) |