diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-08-27 01:14:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-27 01:14:04 +0200 |
| commit | 730449d22ad6d152f4f58719ef2f3c459984a361 (patch) | |
| tree | 166c38414805a5dda438395793da122f4261936b /library/std/src | |
| parent | 2eec2ecbdec1cae9b749e079a376540d9cc5e304 (diff) | |
| parent | 079baafdf1fc90805373ff2ef7d57eea3a7f15ce (diff) | |
| download | rust-730449d22ad6d152f4f58719ef2f3c459984a361.tar.gz rust-730449d22ad6d152f4f58719ef2f3c459984a361.zip | |
Rollup merge of #75758 - bpangWR:master, r=Mark-Simulacrum
Fixes for VxWorks r? @alexcrichton
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/sys/vxworks/fd.rs | 2 | ||||
| -rw-r--r-- | library/std/src/sys/vxworks/process/process_common.rs | 15 | ||||
| -rw-r--r-- | library/std/src/sys/vxworks/thread_local_dtor.rs | 2 |
3 files changed, 5 insertions, 14 deletions
diff --git a/library/std/src/sys/vxworks/fd.rs b/library/std/src/sys/vxworks/fd.rs index ea186846929..d58468ad539 100644 --- a/library/std/src/sys/vxworks/fd.rs +++ b/library/std/src/sys/vxworks/fd.rs @@ -53,7 +53,7 @@ impl FileDesc { } #[inline] - fn is_read_vectored(&self) -> bool { + pub fn is_read_vectored(&self) -> bool { true } diff --git a/library/std/src/sys/vxworks/process/process_common.rs b/library/std/src/sys/vxworks/process/process_common.rs index bbbd5eda773..6473a0c3cec 100644 --- a/library/std/src/sys/vxworks/process/process_common.rs +++ b/library/std/src/sys/vxworks/process/process_common.rs @@ -351,8 +351,7 @@ impl ExitStatus { } fn exited(&self) -> bool { - /*unsafe*/ - { libc::WIFEXITED(self.0) } + libc::WIFEXITED(self.0) } pub fn success(&self) -> bool { @@ -360,19 +359,11 @@ impl ExitStatus { } pub fn code(&self) -> Option<i32> { - if self.exited() { - Some(/*unsafe*/ { libc::WEXITSTATUS(self.0) }) - } else { - None - } + if self.exited() { Some(libc::WEXITSTATUS(self.0)) } else { None } } pub fn signal(&self) -> Option<i32> { - if !self.exited() { - Some(/*unsafe*/ { libc::WTERMSIG(self.0) }) - } else { - None - } + if !self.exited() { Some(libc::WTERMSIG(self.0)) } else { None } } } diff --git a/library/std/src/sys/vxworks/thread_local_dtor.rs b/library/std/src/sys/vxworks/thread_local_dtor.rs index 3f73f6c4903..5391ed83ebc 100644 --- a/library/std/src/sys/vxworks/thread_local_dtor.rs +++ b/library/std/src/sys/vxworks/thread_local_dtor.rs @@ -2,6 +2,6 @@ #![unstable(feature = "thread_local_internals", issue = "none")] pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) { - use crate::sys_common::thread_local::register_dtor_fallback; + use crate::sys_common::thread_local_dtor::register_dtor_fallback; register_dtor_fallback(t, dtor); } |
