diff --git a/libc-test/semver/linux-musl.txt b/libc-test/semver/linux-musl.txt index b307f90353ef..62b188dac828 100644 --- a/libc-test/semver/linux-musl.txt +++ b/libc-test/semver/linux-musl.txt @@ -78,11 +78,15 @@ copy_file_range ctermid dirname eaccess +endutxent euidaccess explicit_bzero futimes getauxval getloadavg +getutxent +getutxid +getutxline lio_listio ntptimeval open_wmemstream @@ -94,8 +98,10 @@ prlimit prlimit64 process_vm_readv process_vm_writev +pututxline pwritev2 pwritev64 reallocarray +setutxent tcp_info timex diff --git a/src/unix/linux_like/linux/musl/mod.rs b/src/unix/linux_like/linux/musl/mod.rs index 978423b0f2a0..bfdbb0f0bad5 100644 --- a/src/unix/linux_like/linux/musl/mod.rs +++ b/src/unix/linux_like/linux/musl/mod.rs @@ -993,6 +993,13 @@ extern "C" { actions: *mut ::posix_spawn_file_actions_t, fd: ::c_int, ) -> ::c_int; + + pub fn getutxent() -> *mut utmpx; + pub fn getutxid(ut: *const utmpx) -> *mut utmpx; + pub fn getutxline(ut: *const utmpx) -> *mut utmpx; + pub fn pututxline(ut: *const utmpx) -> *mut utmpx; + pub fn setutxent(); + pub fn endutxent(); } // Alias to 64 to mimic glibc's LFS64 support