Skip to content

Commit

Permalink
netbsd log api utmpx flavor addition
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Aug 2, 2021
1 parent a1e0f47 commit ae882ec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libc-test/semver/netbsd.txt
Expand Up @@ -1158,8 +1158,11 @@ lio_listio
localeconv_l
lockf
login
loginx
logout
logoutx
logwtmp
logwtmpx
login_tty
lutimes
lwpid_t
Expand Down
10 changes: 10 additions & 0 deletions src/unix/bsd/netbsdlike/netbsd/mod.rs
Expand Up @@ -2319,8 +2319,18 @@ extern "C" {
) -> *mut ::c_char;
#[link_name = "__login50"]
pub fn login(ut: *const utmp);
#[link_name = "__loginx50"]
pub fn loginx(ut: *const utmpx);
pub fn logout(line: *const ::c_char);
pub fn logoutx(line: *const ::c_char, status: ::c_int, tpe: ::c_int);
pub fn logwtmp(line: *const ::c_char, name: *const ::c_char, host: *const ::c_char);
pub fn logwtmpx(
line: *const ::c_char,
name: *const ::c_char,
host: *const ::c_char,
status: ::c_int,
tpe: ::c_int,
);

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

0 comments on commit ae882ec

Please sign in to comment.