Skip to content

Commit

Permalink
Add setresuid/setresgid for linux
Browse files Browse the repository at this point in the history
Signed-off-by: Dylan Reid <dgreid@chromium.org>
  • Loading branch information
dgreid committed Oct 21, 2016
1 parent 836cda9 commit 519ffa0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/notbsd/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 519ffa0

Please sign in to comment.