Skip to content

Commit e61ec82

Browse files
committed
Auto merge of #1494 - lucab:ups/linux-gnu-utmpname, r=gnzlbg
linux/gnu: add utmpname() This adds `utmpname(3)` on Linux with GNU libc. Ref: https://refspecs.linuxfoundation.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/baselib-utmpname-3.html
2 parents 0606678 + 8a480ed commit e61ec82

File tree

1 file changed

+1
-0
lines changed
  • src/unix/linux_like/linux/gnu

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,7 @@ extern {
893893
resource: ::__rlimit_resource_t,
894894
new_limit: *const ::rlimit64,
895895
old_limit: *mut ::rlimit64) -> ::c_int;
896+
pub fn utmpname(file: *const ::c_char) -> ::c_int;
896897
pub fn utmpxname(file: *const ::c_char) -> ::c_int;
897898
pub fn getutxent() -> *mut utmpx;
898899
pub fn getutxid(ut: *const utmpx) -> *mut utmpx;

0 commit comments

Comments
 (0)