summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-06-27 07:36:43 +0000
committerEric Andersen <andersen@codepoet.org>2003-06-27 07:36:43 +0000
commit3b3d8a2ee43a8eb0dae783ba89ef3fc7cf717706 (patch)
tree5168ba4ef1a3309797b2c50553ab13e222ff8c4a /libc/sysdeps/linux
parent649438a12c866b032d5cf2d54385a4bff0e4fcca (diff)
Add missing madvise syscall
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 8042d0fc0..351a5ecfa 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -1995,6 +1995,12 @@ _syscall2(int, pivot_root, const char *, new_root, const char *, put_old);
//#define __NR_mincore 218
//#define __NR_madvise 219
+#ifdef __NR_madvise
+#ifdef L_madvise
+_syscall3(int, madvise, void*, __addr, size_t, __len, int, __advice);
+#endif
+#endif
+
//#define __NR_madvise1 219 /* delete when C lib stub is removed */
//#define __NR_getdents64 220