#[no_mangle]
pub unsafe extern "C" fn sys_clock_nanosleep(
clock_id: clockid_t,
flags: i32,
rqtp: *const timespec,
_rmtp: *mut timespec,
) -> i32
Expand description
Sleep a clock for a specified number of nanoseconds.
The requested time (in nanoseconds) must be greater than 0 and less than 1,000,000.
Returns 0
on success, -EINVAL
otherwise.
Supported clocks:
CLOCK_REALTIME
CLOCK_MONOTONIC