Add setresuid/setresgid for linux

Signed-off-by: Dylan Reid <dgreid@chromium.org>
This commit is contained in:
Dylan Reid 2016-10-21 16:05:01 -07:00
parent 836cda9893
commit 519ffa076c

View File

@ -658,6 +658,8 @@ extern {
riovcnt: ::c_ulong,
flags: ::c_ulong) -> isize;
pub fn reboot(how_to: ::c_int) -> ::c_int;
pub fn setresgid(rgid: ::gid_t, egid: ::gid_t, sgid: ::gid_t) -> ::c_int;
pub fn setresuid(ruid: ::uid_t, euid: ::uid_t, suid: ::uid_t) -> ::c_int;
// Not available now on Android
pub fn mkfifoat(dirfd: ::c_int, pathname: *const ::c_char,