Skip to content

Commit 6fc98f1

Browse files
committed
Auto merge of #2298 - devnexen:netbsd_login_api, r=JohnTitor
netbsd login api addition
2 parents 802ff05 + 790172b commit 6fc98f1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

libc-test/semver/netbsd.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,6 +1155,9 @@ lchflags
11551155
lio_listio
11561156
localeconv_l
11571157
lockf
1158+
login
1159+
logout
1160+
logwtmp
11581161
login_tty
11591162
lutimes
11601163
lwpid_t

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2294,6 +2294,10 @@ extern "C" {
22942294
denominator: ::intmax_t,
22952295
precision: ::size_t,
22962296
) -> *mut ::c_char;
2297+
#[link_name = "__login50"]
2298+
pub fn login(ut: *const utmp);
2299+
pub fn logout(line: *const ::c_char);
2300+
pub fn logwtmp(line: *const ::c_char, name: *const ::c_char, host: *const ::c_char);
22972301
}
22982302

22992303
cfg_if! {

0 commit comments

Comments
 (0)