about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-07-27 13:43:46 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-07-27 13:43:46 +0000
commit89d9c04def983cd36e2891681349177438eb0e2c (patch)
tree8210c158c551e69059b28b7e556a13fa427693a9
parent815e6fa3e010628f77838abec18692cbfeb60809 (diff)
downloadglibc-89d9c04def983cd36e2891681349177438eb0e2c.tar.gz
glibc-89d9c04def983cd36e2891681349177438eb0e2c.tar.xz
glibc-89d9c04def983cd36e2891681349177438eb0e2c.zip
Make mmap64 an alias of mmap on MIPS.
-rw-r--r--ports/ChangeLog.mips5
-rw-r--r--ports/sysdeps/unix/sysv/linux/mips/mips64/mmap64.c1
-rw-r--r--ports/sysdeps/unix/sysv/linux/mips/mips64/syscalls.list2
3 files changed, 8 insertions, 0 deletions
diff --git a/ports/ChangeLog.mips b/ports/ChangeLog.mips
index 2a5cf3689b..a1b6dc5886 100644
--- a/ports/ChangeLog.mips
+++ b/ports/ChangeLog.mips
@@ -1,3 +1,8 @@
+2012-07-27  Joseph Myers  <joseph@codesourcery.com>
+
+	* sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): New.
+	* sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: New file.
+
 2012-07-25  Florian Weimer  <fweimer@redhat.com>
 
 	* sysdeps/unix/sysv/linux/mips/mips32/nptl/libc.abilist: Add
diff --git a/ports/sysdeps/unix/sysv/linux/mips/mips64/mmap64.c b/ports/sysdeps/unix/sysv/linux/mips/mips64/mmap64.c
new file mode 100644
index 0000000000..0dbd384a6a
--- /dev/null
+++ b/ports/sysdeps/unix/sysv/linux/mips/mips64/mmap64.c
@@ -0,0 +1 @@
+/* mmap64 is the same as mmap. */
diff --git a/ports/sysdeps/unix/sysv/linux/mips/mips64/syscalls.list b/ports/sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
index 867323a96b..50d5ba3199 100644
--- a/ports/sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
+++ b/ports/sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
@@ -2,6 +2,8 @@
 
 lseek		-	lseek		Ci:iii	__libc_lseek	__lseek lseek __llseek llseek __libc_lseek64 __lseek64 lseek64
 
+mmap		-	mmap		b:aniiii __mmap		mmap __mmap64 mmap64
+
 ftruncate	-	ftruncate	i:ii	__ftruncate	ftruncate ftruncate64 __ftruncate64
 truncate	-	truncate	i:si	truncate	truncate64