Skip to content

Commit 70f2986

Browse files
committed
Auto merge of rust-lang#612 - shawnanastasio:master, r=alexcrichton
Add unix seteuid() Adds prototype for unix seteuid() as defined [here](http://pubs.opengroup.org/onlinepubs/009695399/functions/seteuid.html).
2 parents 439a4d7 + 4340d17 commit 70f2986

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/unix/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ extern {
472472
pub fn read(fd: ::c_int, buf: *mut ::c_void, count: ::size_t)
473473
-> ::ssize_t;
474474
pub fn rmdir(path: *const c_char) -> ::c_int;
475+
pub fn seteuid(uid: uid_t) -> ::c_int;
475476
pub fn setgid(gid: gid_t) -> ::c_int;
476477
pub fn setpgid(pid: pid_t, pgid: pid_t) -> ::c_int;
477478
pub fn setsid() -> pid_t;

0 commit comments

Comments
 (0)