OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
649438a
)
Add missing madvise syscall
author
Eric Andersen
<andersen@codepoet.org>
Fri, 27 Jun 2003 07:36:43 +0000
(07:36 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Fri, 27 Jun 2003 07:36:43 +0000
(07:36 -0000)
libc/sysdeps/linux/common/syscalls.c
patch
|
blob
|
history
diff --git
a/libc/sysdeps/linux/common/syscalls.c
b/libc/sysdeps/linux/common/syscalls.c
index
8042d0f
..
351a5ec
100644
(file)
--- 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