Skip to content
Open
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
2 changes: 2 additions & 0 deletions libc-test/semver/redox.txt
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ chroot
clearerr
clock_getres
clock_gettime
clock_settime
difftime
dirfd
endgrent
Expand Down Expand Up @@ -346,6 +347,7 @@ open_memstream
open_wmemstream
openat
openpty
pause
pipe2
pthread_condattr_setclock
qsort
Expand Down
10 changes: 5 additions & 5 deletions src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,11 @@ extern "C" {
#[cfg_attr(gnu_file_offset_bits64, link_name = "lseek64")]
pub fn lseek(fd: c_int, offset: off_t, whence: c_int) -> off_t;
pub fn pathconf(path: *const c_char, name: c_int) -> c_long;
#[cfg_attr(
all(target_os = "macos", target_arch = "x86"),
link_name = "pause$UNIX2003"
)]
pub fn pause() -> c_int;
pub fn pipe(fds: *mut c_int) -> c_int;
pub fn posix_memalign(memptr: *mut *mut c_void, align: size_t, size: size_t) -> c_int;
pub fn aligned_alloc(alignment: size_t, size: size_t) -> *mut c_void;
Expand Down Expand Up @@ -2251,11 +2256,6 @@ cfg_if! {
if #[cfg(not(target_os = "redox"))] {
extern "C" {
pub fn getsid(pid: pid_t) -> pid_t;
#[cfg_attr(
all(target_os = "macos", target_arch = "x86"),
link_name = "pause$UNIX2003"
)]
pub fn pause() -> c_int;
#[cfg_attr(
all(target_os = "macos", not(target_arch = "aarch64")),
link_name = "readdir_r$INODE64"
Expand Down
1 change: 1 addition & 0 deletions src/unix/redox/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1443,6 +1443,7 @@ extern "C" {
pub fn gettimeofday(tp: *mut crate::timeval, tz: *mut crate::timezone) -> c_int;
pub fn clock_getres(clk_id: crate::clockid_t, tp: *mut crate::timespec) -> c_int;
pub fn clock_gettime(clk_id: crate::clockid_t, tp: *mut crate::timespec) -> c_int;
pub fn clock_settime(clk_id: crate::clockid_t, tp: *const crate::timespec) -> c_int;
pub fn strftime(
s: *mut c_char,
max: size_t,
Expand Down