summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/mincore.c
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2004-12-20 00:10:51 +0000
committerNed Ludd <solar@gentoo.org>2004-12-20 00:10:51 +0000
commitd503d1d6c62506ba6fb51c04a9703039e71d11a9 (patch)
tree1d3976101fc6bfa6aa7cb28aed91d404b03c5ee5 /libc/sysdeps/linux/common/mincore.c
parent1c8d7ee9cbe7483d06dab11b1333ea2eb23e60c6 (diff)
- Added support for 13 new syscalls to allow more things to compile when using uClibc. mincore() and the ones for Extended Attributes setxattr(), lsetxattr(), fsetxattr(), getxattr(), lgetxattr(), fgetxattr(), listxattr(), llistxattr(), flistxattr(), removexattr(), lremovexattr(), fremovexattr() which are optional.
Diffstat (limited to 'libc/sysdeps/linux/common/mincore.c')
-rw-r--r--libc/sysdeps/linux/common/mincore.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/mincore.c b/libc/sysdeps/linux/common/mincore.c
new file mode 100644
index 000000000..ecae441a5
--- /dev/null
+++ b/libc/sysdeps/linux/common/mincore.c
@@ -0,0 +1,15 @@
+/*
+ * Distributed under the terms of the GNU General Public License v2
+ * $Header: /var/cvs/uClibc/libc/sysdeps/linux/common/mincore.c,v 1.1 2004/12/20 00:10:51 solar Exp $
+ *
+ * This file provides the mincore() system call to uClibc.
+ * 20041215 - <solar@gentoo.org>
+ *
+ */
+
+#include "syscalls.h"
+#include <unistd.h>
+
+#ifdef __NR_mincore
+_syscall3(int, mincore, void *, start, size_t, length, unsigned char *, vec);
+#endif