Skip to content

Commit e8cfe96

Browse files
committed
Use portable man pages in comments
1 parent af02db6 commit e8cfe96

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/time.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl std::fmt::Display for ClockId {
203203
}
204204

205205
/// Get the resolution of the specified clock, (see
206-
/// [clock_getres(2)](https://www.man7.org/linux/man-pages/man2/clock_getres.2.html)).
206+
/// [clock_getres(2)](https://pubs.opengroup.org/onlinepubs/7908799/xsh/clock_getres.html)).
207207
pub fn clock_getres(clock_id: ClockId) -> Result<TimeSpec> {
208208
let mut c_time: MaybeUninit<libc::timespec> = MaybeUninit::uninit();
209209
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<TimeSpec> {
213213
}
214214

215215
/// Get the time of the specified clock, (see
216-
/// [clock_gettime(2)](https://www.man7.org/linux/man-pages/man2/clock_gettime.2.html)).
216+
/// [clock_gettime(2)](https://pubs.opengroup.org/onlinepubs/7908799/xsh/clock_gettime.html)).
217217
pub fn clock_gettime(clock_id: ClockId) -> Result<TimeSpec> {
218218
let mut c_time: MaybeUninit<libc::timespec> = MaybeUninit::uninit();
219219
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<TimeSpec> {
223223
}
224224

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

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

0 commit comments

Comments
 (0)