Skip to content

Commit a8e4698

Browse files
authored
Merge pull request rust-lang#434 from dgreid/setresuid
Add setresuid/setresgid for linux
2 parents c95defc + 519ffa0 commit a8e4698

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/notbsd/linux/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,8 @@ extern {
714714
riovcnt: ::c_ulong,
715715
flags: ::c_ulong) -> isize;
716716
pub fn reboot(how_to: ::c_int) -> ::c_int;
717+
pub fn setresgid(rgid: ::gid_t, egid: ::gid_t, sgid: ::gid_t) -> ::c_int;
718+
pub fn setresuid(ruid: ::uid_t, euid: ::uid_t, suid: ::uid_t) -> ::c_int;
717719

718720
// Not available now on Android
719721
pub fn mkfifoat(dirfd: ::c_int, pathname: *const ::c_char,

0 commit comments

Comments
 (0)