Skip to content

Commit 4340d17

Browse files
Add unix seteuid()
Adds prototype for unix seteuid() as defined here: http://pubs.opengroup.org/onlinepubs/009695399/functions/seteuid.html
1 parent 439a4d7 commit 4340d17

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)