add deprecated capabilities functions
authorRich Felker <dalias@aerifal.cx>
Wed, 13 Jun 2012 15:04:31 +0000 (11:04 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 13 Jun 2012 15:04:31 +0000 (11:04 -0400)
these were left in glibc for binary compatibility after the public
part of the interface was removed, and libcap kept using them (with
its own copy of the header files) rather than just making the syscalls
directly. might as well add them since they're so small...

src/linux/cap.c [new file with mode: 0644]

diff --git a/src/linux/cap.c b/src/linux/cap.c
new file mode 100644 (file)
index 0000000..8d035e0
--- /dev/null
@@ -0,0 +1,11 @@
+#include "syscall.h"
+
+int capset(void *a, void *b)
+{
+       return syscall(SYS_capset, a, b);
+}
+
+int capget(void *a, void *b)
+{
+       return syscall(SYS_capget, a, b);
+}