Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions libc-test/semver/netbsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1189,6 +1189,9 @@ _cpuset_destroy
_cpuset_isset
_cpuset_set
_cpuset_zero
_lwp_park
_lwp_unpark
_lwp_unpark_all
_lwp_self
abs
accept4
Expand Down
16 changes: 16 additions & 0 deletions src/unix/bsd/netbsdlike/netbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2884,6 +2884,22 @@ extern "C" {
pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;

pub fn reboot(mode: ::c_int, bootstr: *mut ::c_char) -> ::c_int;

#[link_name = "___lwp_park60"]
pub fn _lwp_park(
clock: ::clockid_t,
flags: ::c_int,
ts: *const ::timespec,
unpark: ::lwpid_t,
hint: *const ::c_void,
unparkhint: *mut ::c_void,
) -> ::c_int;
pub fn _lwp_unpark(id: ::lwpid_t, hint: *const ::c_void) -> ::c_int;
pub fn _lwp_unpark_all(
targets: *const ::lwpid_t,
ntargets: ::size_t,
hint: *const ::c_void,
) -> ::c_int;
}

#[link(name = "rt")]
Expand Down