Skip to content

Commit 8aa6cea

Browse files
committed
Auto merge of #2314 - devnexen:netbsd_log_upd, r=Amanieu
netbsd log api utmpx flavor addition
2 parents f5e31f2 + ae882ec commit 8aa6cea

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
@@ -1174,8 +1174,11 @@ lio_listio
11741174
localeconv_l
11751175
lockf
11761176
login
1177+
loginx
11771178
logout
1179+
logoutx
11781180
logwtmp
1181+
logwtmpx
11791182
login_tty
11801183
lutimes
11811184
lwpid_t

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2333,8 +2333,18 @@ extern "C" {
23332333
) -> *mut ::c_char;
23342334
#[link_name = "__login50"]
23352335
pub fn login(ut: *const utmp);
2336+
#[link_name = "__loginx50"]
2337+
pub fn loginx(ut: *const utmpx);
23362338
pub fn logout(line: *const ::c_char);
2339+
pub fn logoutx(line: *const ::c_char, status: ::c_int, tpe: ::c_int);
23372340
pub fn logwtmp(line: *const ::c_char, name: *const ::c_char, host: *const ::c_char);
2341+
pub fn logwtmpx(
2342+
line: *const ::c_char,
2343+
name: *const ::c_char,
2344+
host: *const ::c_char,
2345+
status: ::c_int,
2346+
tpe: ::c_int,
2347+
);
23382348

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

0 commit comments

Comments
 (0)