Skip to content

Commit ae882ec

Browse files
committed
netbsd log api utmpx flavor addition
1 parent a1e0f47 commit ae882ec

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

libc-test/semver/netbsd.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,8 +1158,11 @@ lio_listio
11581158
localeconv_l
11591159
lockf
11601160
login
1161+
loginx
11611162
logout
1163+
logoutx
11621164
logwtmp
1165+
logwtmpx
11631166
login_tty
11641167
lutimes
11651168
lwpid_t

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2319,8 +2319,18 @@ extern "C" {
23192319
) -> *mut ::c_char;
23202320
#[link_name = "__login50"]
23212321
pub fn login(ut: *const utmp);
2322+
#[link_name = "__loginx50"]
2323+
pub fn loginx(ut: *const utmpx);
23222324
pub fn logout(line: *const ::c_char);
2325+
pub fn logoutx(line: *const ::c_char, status: ::c_int, tpe: ::c_int);
23232326
pub fn logwtmp(line: *const ::c_char, name: *const ::c_char, host: *const ::c_char);
2327+
pub fn logwtmpx(
2328+
line: *const ::c_char,
2329+
name: *const ::c_char,
2330+
host: *const ::c_char,
2331+
status: ::c_int,
2332+
tpe: ::c_int,
2333+
);
23242334

23252335
pub fn kinfo_getvmmap(pid: ::pid_t, cntp: *mut ::size_t) -> *mut kinfo_vmentry;
23262336
}

0 commit comments

Comments
 (0)