Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netbsd log api utmpx flavor addition #2314

Merged
merged 1 commit into from Aug 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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