diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-01-28 21:09:50 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-01-28 21:09:50 -0500 |
commit | 4619901ec4b82d233a24e26ef3df01ddadc2d013 (patch) | |
tree | 837c6280bcbf1a92214a1b52ff73eca97eedd46b /src/linux/setfsuid.c | |
parent | c3db56c4cb2b5eb06cbf46b8fe526f4fe7e10321 (diff) | |
download | musl-4619901ec4b82d233a24e26ef3df01ddadc2d013.tar.gz musl-4619901ec4b82d233a24e26ef3df01ddadc2d013.tar.xz musl-4619901ec4b82d233a24e26ef3df01ddadc2d013.zip |
add linux setfs[ug]id syscall wrappers
patch by Jeremy Huntwork
Diffstat (limited to 'src/linux/setfsuid.c')
-rw-r--r-- | src/linux/setfsuid.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/linux/setfsuid.c b/src/linux/setfsuid.c new file mode 100644 index 00000000..1509e0aa --- /dev/null +++ b/src/linux/setfsuid.c @@ -0,0 +1,8 @@ +#include <unistd.h> +#include "syscall.h" +#include "libc.h" + +int setfsuid(uid_t uid) +{ + return syscall(SYS_setfsuid, uid); +} |