mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 11:47:28 +00:00
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...
This commit is contained in:
parent
6343ac8f5a
commit
e361019c24
11
src/linux/cap.c
Normal file
11
src/linux/cap.c
Normal file
@ -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);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user