mirror of git://git.musl-libc.org/musl
add getresuid and getresgid syscall wrappers
This commit is contained in:
parent
80d7859f32
commit
b1b3d3525b
|
@ -158,6 +158,8 @@ unsigned ualarm(unsigned, unsigned);
|
|||
int setgroups(size_t, const gid_t []);
|
||||
int setresuid(uid_t, uid_t, uid_t);
|
||||
int setresgid(gid_t, gid_t, gid_t);
|
||||
int getresuid(uid_t *, uid_t *, uid_t *);
|
||||
int getresgid(gid_t *, gid_t *, gid_t *);
|
||||
char *get_current_dir_name(void);
|
||||
int daemon(int, int);
|
||||
int getdomainname(char *, size_t);
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
#define _GNU_SOURCE
|
||||
#include <unistd.h>
|
||||
#include "syscall.h"
|
||||
|
||||
int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid)
|
||||
{
|
||||
return syscall(SYS_getresgid, rgid, egid, sgid);
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
#define _GNU_SOURCE
|
||||
#include <unistd.h>
|
||||
#include "syscall.h"
|
||||
|
||||
int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid)
|
||||
{
|
||||
return syscall(SYS_getresuid, ruid, euid, suid);
|
||||
}
|
Loading…
Reference in New Issue