Skip to content

Commit face160

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

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

libc-test/semver/linux-musl.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,23 @@ aio_suspend
7272
aio_write
7373
aiocb
7474
asctime_r
75+
asctime_r
76+
basename
7577
basename
7678
clock_adjtime
7779
copy_file_range
7880
ctermid
7981
dirname
8082
eaccess
83+
endutxent
8184
euidaccess
8285
explicit_bzero
8386
futimes
8487
getauxval
8588
getloadavg
89+
getutxent
90+
getutxid
91+
getutxline
8692
lio_listio
8793
ntptimeval
8894
open_wmemstream
@@ -94,8 +100,10 @@ prlimit
94100
prlimit64
95101
process_vm_readv
96102
process_vm_writev
103+
pututxline
97104
pwritev2
98105
pwritev64
99106
reallocarray
107+
setutxent
100108
tcp_info
101109
timex

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

Lines changed: 7 additions & 0 deletions
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)