From e8cfe9674769a2bd482830e0870528009accf54e Mon Sep 17 00:00:00 2001 From: Daniil Bondarev Date: Sun, 27 Sep 2020 11:46:17 -0700 Subject: [PATCH] Use portable man pages in comments --- src/time.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/time.rs b/src/time.rs index 99fa619865..54989c2e28 100644 --- a/src/time.rs +++ b/src/time.rs @@ -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 { let mut c_time: MaybeUninit = MaybeUninit::uninit(); let ret = unsafe { libc::clock_getres(clock_id.as_raw(), c_time.as_mut_ptr()) }; @@ -213,7 +213,7 @@ pub fn clock_getres(clock_id: ClockId) -> Result { } /// 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 { let mut c_time: MaybeUninit = MaybeUninit::uninit(); let ret = unsafe { libc::clock_gettime(clock_id.as_raw(), c_time.as_mut_ptr()) }; @@ -223,7 +223,7 @@ pub fn clock_gettime(clock_id: ClockId) -> Result { } /// 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", @@ -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",