Skip to content

Commit 4769aaa

Browse files
committed
netbsd adding _lwp_park api.
1 parent 4e38256 commit 4769aaa

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

libc-test/semver/netbsd.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,9 @@ _cpuset_destroy
11891189
_cpuset_isset
11901190
_cpuset_set
11911191
_cpuset_zero
1192+
_lwp_park
1193+
_lwp_unpark
1194+
_lwp_unpark_all
11921195
_lwp_self
11931196
abs
11941197
accept4

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2862,6 +2862,22 @@ extern "C" {
28622862
pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
28632863

28642864
pub fn reboot(mode: ::c_int, bootstr: *mut ::c_char) -> ::c_int;
2865+
2866+
#[link_name = "___lwp_park60"]
2867+
pub fn _lwp_park(
2868+
clock: ::clockid_t,
2869+
flags: ::c_int,
2870+
ts: *const ::timespec,
2871+
unpark: ::lwpid_t,
2872+
hint: *const ::c_void,
2873+
unparkhint: *mut ::c_void,
2874+
) -> ::c_int;
2875+
pub fn _lwp_unpark(lwp: ::lwpid_t, hint: *const ::c_void) -> ::c_int;
2876+
pub fn _lwp_unpark_all(
2877+
targets: *const ::lwpid_t,
2878+
ntargets: ::size_t,
2879+
hint: *const ::c_void,
2880+
) -> ::c_int;
28652881
}
28662882

28672883
#[link(name = "rt")]

0 commit comments

Comments
 (0)