Skip to content

Commit 870f096

Browse files
devnexentgross35
authored andcommitted
utmpx api for linux musl.
close #3190 (backport <#3213>) (cherry picked from commit e3caaf6)
1 parent 8e55d58 commit 870f096

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

libc-test/semver/linux-musl.txt

+6
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,15 @@ copy_file_range
7878
ctermid
7979
dirname
8080
eaccess
81+
endutxent
8182
euidaccess
8283
explicit_bzero
8384
futimes
8485
getauxval
8586
getloadavg
87+
getutxent
88+
getutxid
89+
getutxline
8690
lio_listio
8791
ntptimeval
8892
open_wmemstream
@@ -94,8 +98,10 @@ prlimit
9498
prlimit64
9599
process_vm_readv
96100
process_vm_writev
101+
pututxline
97102
pwritev2
98103
pwritev64
99104
reallocarray
105+
setutxent
100106
tcp_info
101107
timex

src/unix/linux_like/linux/musl/mod.rs

+7
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,13 @@ extern "C" {
993993
actions: *mut ::posix_spawn_file_actions_t,
994994
fd: ::c_int,
995995
) -> ::c_int;
996+
997+
pub fn getutxent() -> *mut utmpx;
998+
pub fn getutxid(ut: *const utmpx) -> *mut utmpx;
999+
pub fn getutxline(ut: *const utmpx) -> *mut utmpx;
1000+
pub fn pututxline(ut: *const utmpx) -> *mut utmpx;
1001+
pub fn setutxent();
1002+
pub fn endutxent();
9961003
}
9971004

9981005
// Alias <foo> to <foo>64 to mimic glibc's LFS64 support

0 commit comments

Comments
 (0)