Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions changelog/2767.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added `getres` and `setres` for Redox OS
Comment thread
SteveLauC marked this conversation as resolved.
28 changes: 24 additions & 4 deletions src/unistd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,20 @@ feature! {
pub use self::pivot_root::*;
}

#[cfg(any(freebsdlike, linux_android, target_os = "openbsd"))]
#[cfg(any(
freebsdlike,
linux_android,
target_os = "openbsd",
target_os = "redox"
))]
pub use self::setres::*;

#[cfg(any(freebsdlike, linux_android, target_os = "openbsd"))]
#[cfg(any(
freebsdlike,
linux_android,
target_os = "openbsd",
target_os = "redox"
))]
pub use self::getres::*;

feature! {
Expand Down Expand Up @@ -3225,7 +3235,12 @@ mod pivot_root {
}
}

#[cfg(any(linux_android, freebsdlike, target_os = "openbsd"))]
#[cfg(any(
linux_android,
freebsdlike,
target_os = "openbsd",
target_os = "redox"
))]
mod setres {
feature! {
#![feature = "user"]
Expand Down Expand Up @@ -3270,7 +3285,12 @@ mod setres {
}
}

#[cfg(any(linux_android, freebsdlike, target_os = "openbsd"))]
#[cfg(any(
linux_android,
freebsdlike,
target_os = "openbsd",
target_os = "redox"
))]
mod getres {
feature! {
#![feature = "user"]
Expand Down
Loading