Skip to content

Commit

Permalink
Use portable man pages in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
xonatius committed Sep 27, 2020
1 parent af02db6 commit e8cfe96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ impl std::fmt::Display for ClockId {
}

/// Get the resolution of the specified clock, (see
/// [clock_getres(2)](https://www.man7.org/linux/man-pages/man2/clock_getres.2.html)).
/// [clock_getres(2)](https://pubs.opengroup.org/onlinepubs/7908799/xsh/clock_getres.html)).
pub fn clock_getres(clock_id: ClockId) -> Result<TimeSpec> {
let mut c_time: MaybeUninit<libc::timespec> = MaybeUninit::uninit();
let ret = unsafe { libc::clock_getres(clock_id.as_raw(), c_time.as_mut_ptr()) };
Expand All @@ -213,7 +213,7 @@ pub fn clock_getres(clock_id: ClockId) -> Result<TimeSpec> {
}

/// Get the time of the specified clock, (see
/// [clock_gettime(2)](https://www.man7.org/linux/man-pages/man2/clock_gettime.2.html)).
/// [clock_gettime(2)](https://pubs.opengroup.org/onlinepubs/7908799/xsh/clock_gettime.html)).
pub fn clock_gettime(clock_id: ClockId) -> Result<TimeSpec> {
let mut c_time: MaybeUninit<libc::timespec> = MaybeUninit::uninit();
let ret = unsafe { libc::clock_gettime(clock_id.as_raw(), c_time.as_mut_ptr()) };
Expand All @@ -223,7 +223,7 @@ pub fn clock_gettime(clock_id: ClockId) -> Result<TimeSpec> {
}

/// Set the time of the specified clock, (see
/// [clock_settime(2)](https://www.man7.org/linux/man-pages/man2/clock_settime.2.html)).
/// [clock_settime(2)](https://pubs.opengroup.org/onlinepubs/7908799/xsh/clock_settime.html)).
#[cfg(not(any(
target_os = "macos",
target_os = "ios",
Expand All @@ -238,7 +238,7 @@ pub fn clock_settime(clock_id: ClockId, timespec: TimeSpec) -> Result<()> {
}

/// Get the clock id of the specified process id, (see
/// [clock_getcpuclockid(3)](https://www.man7.org/linux/man-pages/man3/clock_getcpuclockid.3.html)).
/// [clock_getcpuclockid(3)](https://pubs.opengroup.org/onlinepubs/009695399/functions/clock_getcpuclockid.html)).
#[cfg(any(
target_os = "freebsd",
target_os = "dragonfly",
Expand Down

0 comments on commit e8cfe96

Please sign in to comment.