From e5da5d59f817eb6a3b78134d49b80c3ed6cb42c9 Mon Sep 17 00:00:00 2001 From: Nikita Baksalyar Date: Thu, 28 Jan 2016 14:02:31 +0300 Subject: Rename sunos to solaris --- src/libstd/sys/unix/os.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libstd/sys/unix/os.rs') diff --git a/src/libstd/sys/unix/os.rs b/src/libstd/sys/unix/os.rs index e6883a11ada..fc1fea4bc71 100644 --- a/src/libstd/sys/unix/os.rs +++ b/src/libstd/sys/unix/os.rs @@ -45,7 +45,7 @@ pub fn errno() -> i32 { target_os = "android", target_env = "newlib"), link_name = "__errno")] - #[cfg_attr(target_os = "sunos", link_name = "___errno")] + #[cfg_attr(target_os = "solaris", link_name = "___errno")] #[cfg_attr(target_os = "dragonfly", link_name = "__dfly_error")] #[cfg_attr(any(target_os = "macos", target_os = "ios", @@ -258,7 +258,7 @@ pub fn current_exe() -> io::Result { } } -#[cfg(any(target_os = "sunos"))] +#[cfg(any(target_os = "solaris"))] pub fn current_exe() -> io::Result { extern { fn getexecname() -> *const c_char; @@ -384,7 +384,7 @@ pub fn args() -> Args { target_os = "bitrig", target_os = "netbsd", target_os = "openbsd", - target_os = "sunos", + target_os = "solaris", target_os = "nacl"))] pub fn args() -> Args { use sys_common; @@ -507,7 +507,7 @@ pub fn home_dir() -> Option { fallback() }).map(PathBuf::from); - #[cfg(not(target_os = "sunos"))] + #[cfg(not(target_os = "solaris"))] unsafe fn getpwduid_r(me: libc::uid_t, passwd: &mut libc::passwd, buf: &mut Vec) -> Option<()> { let mut result = ptr::null_mut(); @@ -519,7 +519,7 @@ pub fn home_dir() -> Option { } } - #[cfg(target_os = "sunos")] + #[cfg(target_os = "solaris")] unsafe fn getpwduid_r(me: libc::uid_t, passwd: &mut libc::passwd, buf: &mut Vec) -> Option<()> { // getpwuid_r semantics is different on Illumos/Solaris: -- cgit 1.4.1-3-g733a5