Skip to content

Commit 05091c3

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

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

libc-test/semver/linux-musl.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,26 @@ 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
82+
dirname
8083
eaccess
84+
eaccess
85+
endutxent
86+
euidaccess
8187
euidaccess
8288
explicit_bzero
8389
futimes
8490
getauxval
8591
getloadavg
92+
getutxent
93+
getutxid
94+
getutxline
8695
lio_listio
8796
ntptimeval
8897
open_wmemstream
@@ -94,8 +103,13 @@ prlimit
94103
prlimit64
95104
process_vm_readv
96105
process_vm_writev
106+
pututxline
97107
pwritev2
98108
pwritev64
99109
reallocarray
110+
setutxent
111+
strftime
112+
strftime_l
113+
strptime
100114
tcp_info
101115
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)