diff options
Diffstat (limited to 'src/unix/mod.rs')
-rw-r--r-- | src/unix/mod.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/unix/mod.rs b/src/unix/mod.rs index ee3a974576..f5ae3519aa 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -99,7 +99,6 @@ s! { } } -pub const WNOHANG: ::c_int = 1; pub const SIG_DFL: sighandler_t = 0 as sighandler_t; pub const SIG_IGN: sighandler_t = 1 as sighandler_t; pub const SIG_ERR: sighandler_t = !0 as sighandler_t; @@ -621,12 +620,6 @@ extern { addrlen: *mut socklen_t) -> ::ssize_t; pub fn mkfifo(path: *const c_char, mode: mode_t) -> ::c_int; - #[cfg_attr(target_os = "netbsd", link_name = "__getpwuid_r50")] - pub fn getpwuid_r(uid: ::uid_t, - pwd: *mut passwd, - buf: *mut ::c_char, - buflen: ::size_t, - result: *mut *mut passwd) -> ::c_int; #[cfg_attr(target_os = "netbsd", link_name = "__sigemptyset14")] pub fn sigemptyset(set: *mut sigset_t) -> ::c_int; #[cfg_attr(target_os = "netbsd", link_name = "__sigaddset14")] @@ -697,6 +690,9 @@ cfg_if! { target_os = "bitrig"))] { mod bsd; pub use self::bsd::*; + } else if #[cfg(target_os = "sunos")] { + mod sunos; + pub use self::sunos::*; } else { // ... } |