summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-06-08 09:26:14 +0000
committerMike Frysinger <vapier@gentoo.org>2006-06-08 09:26:14 +0000
commit8bd30e89e632956ed9f91c7293cb3b5b1469526e (patch)
tree737773cdf879275bf739f2756823db57812b4e15 /libc/sysdeps
parent47a8b2079d32d479cda320faafe51c1ef455aa5b (diff)
add support for 5th argument
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/common/mremap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/mremap.c b/libc/sysdeps/linux/common/mremap.c
index 080d2c1c2..cbd890272 100644
--- a/libc/sysdeps/linux/common/mremap.c
+++ b/libc/sysdeps/linux/common/mremap.c
@@ -9,10 +9,11 @@
#include "syscalls.h"
#include <unistd.h>
+#define mremap _hidemremap
#include <sys/mman.h>
+#undef mremap
libc_hidden_proto(mremap)
-
-_syscall4(__ptr_t, mremap, __ptr_t, old_address, size_t, old_size, size_t,
- new_size, int, may_move);
+_syscall5(void *, mremap, void *, old_address, size_t, old_size, size_t,
+ new_size, int, may_move, void *, new_address);
libc_hidden_def(mremap)