summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2022-04-19 17:39:38 +0200
committerMara Bos <m-ou.se@m-ou.se>2022-04-19 17:39:38 +0200
commit9579c1dc5878abe52e7aeef229d69284cdc1543c (patch)
tree05779da4e182d4f59c8d39056d758e0808998874
parent02f4f6cbccaf2c7cc22617a51f9717d5ac6c9a05 (diff)
downloadrust-libc-9579c1dc5878abe52e7aeef229d69284cdc1543c.tar.gz
Add DragonFly umtx_{sleep, wakeup}.
-rw-r--r--libc-test/semver/dragonfly.txt2
-rw-r--r--src/unix/bsd/freebsdlike/dragonfly/mod.rs3
2 files changed, 5 insertions, 0 deletions
diff --git a/libc-test/semver/dragonfly.txt b/libc-test/semver/dragonfly.txt
index fb71ef1a17..af46dc18d5 100644
--- a/libc-test/semver/dragonfly.txt
+++ b/libc-test/semver/dragonfly.txt
@@ -1497,6 +1497,8 @@ timex
truncate
ttyname_r
ucontext_t
+umtx_sleep
+umtx_wakeup
unmount
updatelastlogx
updwtmpx
diff --git a/src/unix/bsd/freebsdlike/dragonfly/mod.rs b/src/unix/bsd/freebsdlike/dragonfly/mod.rs
index f4fa604753..08e1ca3d6d 100644
--- a/src/unix/bsd/freebsdlike/dragonfly/mod.rs
+++ b/src/unix/bsd/freebsdlike/dragonfly/mod.rs
@@ -1481,6 +1481,9 @@ extern "C" {
pub fn utmpxname(file: *const ::c_char) -> ::c_int;
pub fn sys_checkpoint(tpe: ::c_int, fd: ::c_int, pid: ::pid_t, retval: ::c_int) -> ::c_int;
+
+ pub fn umtx_sleep(ptr: *const ::c_int, value: ::c_int, timeout: ::c_int) -> ::c_int;
+ pub fn umtx_wakeup(ptr: *const ::c_int, count: ::c_int) -> ::c_int;
}
#[link(name = "rt")]