Skip to content
Snippets Groups Projects
Commit a6c451d1 authored by Max Blachman's avatar Max Blachman
Browse files

add clock_nanosleep to freebsd 12 and netbsd

parent 2cce5515
No related branches found
No related tags found
Loading
......@@ -221,6 +221,12 @@ extern "C" {
msgtyp: ::c_long,
msgflg: ::c_int,
) -> ::ssize_t;
pub fn clock_nanosleep(
clk_id: ::clockid_t,
flags: ::c_int,
rqtp: *const ::timespec,
rmtp: *mut ::timespec,
) -> ::c_int;
}
cfg_if! {
......
......@@ -1743,6 +1743,12 @@ safe_f! {
extern "C" {
pub fn ntp_adjtime(buf: *mut timex) -> ::c_int;
pub fn ntp_gettime(buf: *mut ntptimeval) -> ::c_int;
pub fn clock_nanosleep(
clk_id: ::clockid_t,
flags: ::c_int,
rqtp: *const ::timespec,
rmtp: *mut ::timespec,
) -> ::c_int;
}
#[link(name = "rt")]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment