Skip to content

Commit f1b62c3

Browse files
author
Andrew Salmon
committed
move functions to linux
hopefully that fixes build errors
1 parent 68eebe3 commit f1b62c3

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/unix/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,6 @@ extern {
476476
pub fn setpgid(pid: pid_t, pgid: pid_t) -> ::c_int;
477477
pub fn setsid() -> pid_t;
478478
pub fn setuid(uid: uid_t) -> ::c_int;
479-
pub fn setreuid(ruid: uid_t, euid: uid_t) -> ::c_int;
480-
pub fn setregid(rgid: gid_t, egid: gid_t) -> ::c_int;
481479
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
482480
link_name = "sleep$UNIX2003")]
483481
pub fn sleep(secs: ::c_uint) -> ::c_uint;
@@ -745,7 +743,6 @@ extern {
745743
pub fn daemon(nochdir: ::c_int, noclose: ::c_int) -> ::c_int;
746744
pub fn gethostname(name: *mut ::c_char, len: ::size_t) -> ::c_int;
747745
pub fn chroot(name: *const ::c_char) -> ::c_int;
748-
pub fn acct(filename: *const ::c_char) -> ::c_int;
749746
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
750747
link_name = "usleep$UNIX2003")]
751748
pub fn usleep(secs: ::c_uint) -> ::c_int;
@@ -818,8 +815,6 @@ extern {
818815
-> ::c_int;
819816
#[cfg_attr(target_os = "netbsd", link_name = "__sigpending14")]
820817
pub fn sigpending(set: *mut sigset_t) -> ::c_int;
821-
#[cfg_attr(target_os = "netbsd", link_name = "__sigsuspend14")]
822-
pub fn sigsuspend(mask: *const sigset_t) -> ::c_int;
823818

824819
#[cfg_attr(target_os = "netbsd", link_name = "__timegm50")]
825820
pub fn timegm(tm: *mut ::tm) -> time_t;

src/unix/notbsd/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,10 @@ extern {
986986
pub fn clearenv() -> ::c_int;
987987
pub fn waitid(idtype: idtype_t, id: id_t, infop: *mut ::siginfo_t,
988988
options: ::c_int) -> ::c_int;
989+
pub fn sigsuspend(mask: *const ::sigset_t) -> ::c_int;
990+
pub fn setreuid(ruid: ::uid_t, euid: ::uid_t) -> ::c_int;
991+
pub fn setregid(rgid: ::gid_t, egid: ::gid_t) -> ::c_int;
992+
pub fn acct(filename: *const ::c_char) -> ::c_int;
989993
pub fn brk(addr: *mut ::c_void) -> ::c_int;
990994
pub fn sbrk(increment: ::intptr_t) -> *mut ::c_void;
991995
}

0 commit comments

Comments
 (0)