Skip to content

Commit

Permalink
Add DragonFly umtx_{sleep, wakeup}.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Apr 19, 2022
1 parent 02f4f6c commit 9579c1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc-test/semver/dragonfly.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1497,6 +1497,8 @@ timex
truncate
ttyname_r
ucontext_t
umtx_sleep
umtx_wakeup
unmount
updatelastlogx
updwtmpx
Expand Down
3 changes: 3 additions & 0 deletions src/unix/bsd/freebsdlike/dragonfly/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit 9579c1d

Please sign in to comment.