Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/fcntl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,9 @@ libc_bitflags!(
#[cfg(linux_android)]
O_NOATIME;
/// Don't attach the device as the process' controlling terminal.
#[cfg(not(target_os = "redox"))]
O_NOCTTY;
/// Same as `O_NONBLOCK`.
#[cfg(not(any(target_os = "redox", target_os = "haiku", target_os = "cygwin")))]
#[cfg(not(any(target_os = "haiku", target_os = "cygwin")))]
O_NDELAY;
/// `open()` will fail if the given path is a symbolic link.
O_NOFOLLOW;
Expand Down
7 changes: 1 addition & 6 deletions src/sys/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,7 @@ feature! {
pub mod reboot;
}

#[cfg(not(any(
target_os = "redox",
target_os = "fuchsia",
solarish,
target_os = "haiku"
)))]
#[cfg(not(any(target_os = "fuchsia", solarish, target_os = "haiku")))]
feature! {
#![feature = "resource"]
pub mod resource;
Expand Down
6 changes: 4 additions & 2 deletions src/sys/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ cfg_if! {
target_os = "android",
target_os = "aix",
all(target_os = "linux", not(target_env = "gnu")),
target_os = "cygwin"
target_os = "cygwin",
target_os = "redox",
))]{
use libc::rlimit;
}
Expand Down Expand Up @@ -51,7 +52,8 @@ libc_enum! {
target_os = "android",
target_os = "aix",
all(target_os = "linux", not(any(target_env = "gnu", target_env = "uclibc"))),
target_os = "cygwin"
target_os = "cygwin",
target_os = "redox",
), repr(i32))]
#[non_exhaustive]
pub enum Resource {
Expand Down
4 changes: 2 additions & 2 deletions src/syslog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use std::ptr;
// if the string it points to is changed, syslog() may start prepending the changed
// string, and if the string it points to ceases to exist, the results are
// undefined. Most portable is to use a string constant.
#[cfg(target_os = "linux")]
#[cfg(any(target_os = "linux", target_os = "redox"))]
pub fn openlog(
ident: Option<&'static std::ffi::CStr>,
logopt: LogFlags,
Expand Down Expand Up @@ -215,7 +215,7 @@ libc_bitflags! {
/// which file descriptors are allocated.
LOG_NDELAY;
/// Write the message to standard error output as well to the system log.
#[cfg(not(any(solarish, target_os = "redox", target_os = "cygwin")))]
#[cfg(not(any(solarish, target_os = "cygwin")))]
LOG_PERROR;
}
}
Expand Down
Loading