From fd666fca933f7241ff75d06ff36c9282fd443335 Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Tue, 28 Feb 2006 02:40:45 +0000 Subject: Merge from trunk. --- libc/sysdeps/linux/mips/mmap.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'libc/sysdeps/linux/mips/mmap.c') 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 + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + #include #include #include #include +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) -- cgit v1.2.3