summaryrefslogtreecommitdiff
path: root/src/linux
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-06-13 11:04:31 -0400
committerRich Felker <dalias@aerifal.cx>2012-06-13 11:04:31 -0400
commite361019c24b4dc930aa9431b895b478e1eee04e0 (patch)
treeac6e109136ff0d0cc24b188b859442d58b4a52ea /src/linux
parent6343ac8f5ab41b993a1b07563f9fc3787528d3ef (diff)
downloadmusl-e361019c24b4dc930aa9431b895b478e1eee04e0.tar.gz
add deprecated capabilities functions
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...
Diffstat (limited to 'src/linux')
-rw-r--r--src/linux/cap.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/linux/cap.c b/src/linux/cap.c
new file mode 100644
index 00000000..8d035e07
--- /dev/null
+++ b/src/linux/cap.c
@@ -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);
+}