Skip to content

Commit

Permalink
Auto merge of #2763 - m-ou-se:dragonflybsd-futex, r=Amanieu
Browse files Browse the repository at this point in the history
Add DragonFly umtx_{sleep, wakeup}.

This adds DragonFly's futex functions: https://man.dragonflybsd.org/?command=umtx&section=2
  • Loading branch information
bors committed Apr 20, 2022
2 parents d260cea + 9579c1d commit 01b4902
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 01b4902

Please sign in to comment.