Skip to content

Commit 22e9043

Browse files
authored
Update glibc documentation URLs (#1167)
According to [this page], the official site for the glibc documentation is [here] now. Update URLs accordingly. And add links for glibc's documentation for `pread`, `pwrite`, `readv`, `writev`, `preadv2` and `pwritev2`. [this page]: https://www.gnu.org/software/libc/manual/ [here]: https://sourceware.org/glibc/manual/
1 parent eddd4a7 commit 22e9043

18 files changed

+86
-70
lines changed

src/backend/libc/io/errno.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use libc_errno::errno;
3030
/// [OpenBSD]: https://man.openbsd.org/errno.2
3131
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=errno&section=2
3232
/// [illumos]: https://illumos.org/man/3C/errno
33-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Error-Codes.html
33+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Error-Codes.html
3434
#[repr(transparent)]
3535
#[doc(alias = "errno")]
3636
#[derive(Eq, PartialEq, Hash, Copy, Clone)]

src/backend/linux_raw/io/errno.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ use linux_raw_sys::errno;
4040
/// [OpenBSD]: https://man.openbsd.org/errno.2
4141
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=errno&section=2
4242
/// [illumos]: https://illumos.org/man/3C/errno
43-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Error-Codes.html
43+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Error-Codes.html
4444
#[repr(transparent)]
4545
#[doc(alias = "errno")]
4646
#[derive(Eq, PartialEq, Hash, Copy, Clone)]

src/fs/memfd_create.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use backend::fs::types::MemfdFlags;
1010
/// - [FreeBSD]
1111
///
1212
/// [Linux]: https://man7.org/linux/man-pages/man2/memfd_create.2.html
13-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Memory_002dmapped-I_002fO.html#index-memfd_005fcreate
13+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Memory_002dmapped-I_002fO.html#index-memfd_005fcreate
1414
/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?memfd_create
1515
#[inline]
1616
pub fn memfd_create<P: path::Arg>(name: P, flags: MemfdFlags) -> io::Result<OwnedFd> {

src/io/close.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ use backend::fd::RawFd;
4343
/// [OpenBSD]: https://man.openbsd.org/close.2
4444
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=close&section=2
4545
/// [illumos]: https://illumos.org/man/2/close
46-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Opening-and-Closing-Files.html#index-close
46+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Opening-and-Closing-Files.html#index-close
4747
///
4848
/// # Safety
4949
///

src/io/dup.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub use backend::io::types::DupFlags;
3838
/// [OpenBSD]: https://man.openbsd.org/dup.2
3939
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=dup&section=2
4040
/// [illumos]: https://illumos.org/man/2/dup
41-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Duplicating-Descriptors.html
41+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Duplicating-Descriptors.html
4242
#[cfg(not(target_os = "wasi"))]
4343
#[inline]
4444
pub fn dup<Fd: AsFd>(fd: Fd) -> io::Result<OwnedFd> {
@@ -80,7 +80,7 @@ pub fn dup<Fd: AsFd>(fd: Fd) -> io::Result<OwnedFd> {
8080
/// [OpenBSD]: https://man.openbsd.org/dup2.2
8181
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=dup2&section=2
8282
/// [illumos]: https://illumos.org/man/2/dup
83-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Duplicating-Descriptors.html
83+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Duplicating-Descriptors.html
8484
/// [`stdio::dup2_stdin`]: https://docs.rs/rustix/*/rustix/stdio/fn.dup2_stdin.html
8585
/// [`stdio::dup2_stdout`]: https://docs.rs/rustix/*/rustix/stdio/fn.dup2_stdout.html
8686
/// [`stdio::dup2_stderr`]: https://docs.rs/rustix/*/rustix/stdio/fn.dup2_stderr.html

src/io/fcntl.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub use backend::io::types::FdFlags;
3434
/// [OpenBSD]: https://man.openbsd.org/fcntl.2
3535
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=fcntl&section=2
3636
/// [illumos]: https://illumos.org/man/2/fcntl
37-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Control-Operations.html#index-fcntl-function
37+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Control-Operations.html#index-fcntl-function
3838
#[inline]
3939
#[doc(alias = "F_GETFD")]
4040
pub fn fcntl_getfd<Fd: AsFd>(fd: Fd) -> io::Result<FdFlags> {
@@ -62,7 +62,7 @@ pub fn fcntl_getfd<Fd: AsFd>(fd: Fd) -> io::Result<FdFlags> {
6262
/// [OpenBSD]: https://man.openbsd.org/fcntl.2
6363
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=fcntl&section=2
6464
/// [illumos]: https://illumos.org/man/2/fcntl
65-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Control-Operations.html#index-fcntl-function
65+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Control-Operations.html#index-fcntl-function
6666
#[inline]
6767
#[doc(alias = "F_SETFD")]
6868
pub fn fcntl_setfd<Fd: AsFd>(fd: Fd, flags: FdFlags) -> io::Result<()> {
@@ -97,7 +97,7 @@ pub fn fcntl_setfd<Fd: AsFd>(fd: Fd, flags: FdFlags) -> io::Result<()> {
9797
/// [OpenBSD]: https://man.openbsd.org/fcntl.2
9898
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=fcntl&section=2
9999
/// [illumos]: https://illumos.org/man/2/fcntl
100-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Control-Operations.html#index-fcntl-function
100+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Control-Operations.html#index-fcntl-function
101101
/// [file description]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_258
102102
#[cfg(not(any(target_os = "espidf", target_os = "wasi")))]
103103
#[inline]
@@ -133,7 +133,7 @@ pub fn fcntl_dupfd_cloexec<Fd: AsFd>(fd: Fd, min: RawFd) -> io::Result<OwnedFd>
133133
/// [OpenBSD]: https://man.openbsd.org/fcntl.2
134134
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=fcntl&section=2
135135
/// [illumos]: https://illumos.org/man/2/fcntl
136-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Control-Operations.html#index-fcntl-function
136+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Control-Operations.html#index-fcntl-function
137137
/// [file description]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_258
138138
#[cfg(target_os = "espidf")]
139139
#[inline]

src/io/read_write.rs

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub use backend::io::types::ReadWriteFlags;
3838
/// [OpenBSD]: https://man.openbsd.org/read.2
3939
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=read&section=2
4040
/// [illumos]: https://illumos.org/man/2/read
41-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/I_002fO-Primitives.html#index-reading-from-a-file-descriptor
41+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/I_002fO-Primitives.html#index-reading-from-a-file-descriptor
4242
#[inline]
4343
pub fn read<Fd: AsFd>(fd: Fd, buf: &mut [u8]) -> io::Result<usize> {
4444
unsafe { backend::io::syscalls::read(fd.as_fd(), buf.as_mut_ptr(), buf.len()) }
@@ -84,7 +84,7 @@ pub fn read_uninit<Fd: AsFd>(
8484
/// [OpenBSD]: https://man.openbsd.org/write.2
8585
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=write&section=2
8686
/// [illumos]: https://illumos.org/man/2/write
87-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/I_002fO-Primitives.html#index-writing-to-a-file-descriptor
87+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/I_002fO-Primitives.html#index-writing-to-a-file-descriptor
8888
#[inline]
8989
pub fn write<Fd: AsFd>(fd: Fd, buf: &[u8]) -> io::Result<usize> {
9090
backend::io::syscalls::write(fd.as_fd(), buf)
@@ -104,6 +104,7 @@ pub fn write<Fd: AsFd>(fd: Fd, buf: &[u8]) -> io::Result<usize> {
104104
/// - [OpenBSD]
105105
/// - [DragonFly BSD]
106106
/// - [illumos]
107+
/// - [glibc]
107108
///
108109
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/pread.html
109110
/// [Linux]: https://man7.org/linux/man-pages/man2/pread.2.html
@@ -113,6 +114,7 @@ pub fn write<Fd: AsFd>(fd: Fd, buf: &[u8]) -> io::Result<usize> {
113114
/// [OpenBSD]: https://man.openbsd.org/pread.2
114115
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=pread&section=2
115116
/// [illumos]: https://illumos.org/man/2/pread
117+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/I_002fO-Primitives.html#index-pread64
116118
#[inline]
117119
pub fn pread<Fd: AsFd>(fd: Fd, buf: &mut [u8], offset: u64) -> io::Result<usize> {
118120
unsafe { backend::io::syscalls::pread(fd.as_fd(), buf.as_mut_ptr(), buf.len(), offset) }
@@ -150,6 +152,7 @@ pub fn pread_uninit<Fd: AsFd>(
150152
/// - [OpenBSD]
151153
/// - [DragonFly BSD]
152154
/// - [illumos]
155+
/// - [glibc]
153156
///
154157
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/pwrite.html
155158
/// [Linux]: https://man7.org/linux/man-pages/man2/pwrite.2.html
@@ -159,6 +162,7 @@ pub fn pread_uninit<Fd: AsFd>(
159162
/// [OpenBSD]: https://man.openbsd.org/pwrite.2
160163
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=pwrite&section=2
161164
/// [illumos]: https://illumos.org/man/2/pwrite
165+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/I_002fO-Primitives.html#index-pwrite64
162166
#[inline]
163167
pub fn pwrite<Fd: AsFd>(fd: Fd, buf: &[u8], offset: u64) -> io::Result<usize> {
164168
backend::io::syscalls::pwrite(fd.as_fd(), buf, offset)
@@ -175,6 +179,7 @@ pub fn pwrite<Fd: AsFd>(fd: Fd, buf: &[u8], offset: u64) -> io::Result<usize> {
175179
/// - [OpenBSD]
176180
/// - [DragonFly BSD]
177181
/// - [illumos]
182+
/// - [glibc]
178183
///
179184
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/readv.html
180185
/// [Linux]: https://man7.org/linux/man-pages/man2/readv.2.html
@@ -184,6 +189,7 @@ pub fn pwrite<Fd: AsFd>(fd: Fd, buf: &[u8], offset: u64) -> io::Result<usize> {
184189
/// [OpenBSD]: https://man.openbsd.org/readv.2
185190
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=readv&section=2
186191
/// [illumos]: https://illumos.org/man/2/readv
192+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Scatter_002dGather.html#index-readv
187193
#[cfg(not(any(target_os = "espidf", target_os = "horizon")))]
188194
#[inline]
189195
pub fn readv<Fd: AsFd>(fd: Fd, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize> {
@@ -201,6 +207,7 @@ pub fn readv<Fd: AsFd>(fd: Fd, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize>
201207
/// - [OpenBSD]
202208
/// - [DragonFly BSD]
203209
/// - [illumos]
210+
/// - [glibc]
204211
///
205212
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/writev.html
206213
/// [Linux]: https://man7.org/linux/man-pages/man2/writev.2.html
@@ -210,6 +217,7 @@ pub fn readv<Fd: AsFd>(fd: Fd, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize>
210217
/// [OpenBSD]: https://man.openbsd.org/writev.2
211218
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=writev&section=2
212219
/// [illumos]: https://illumos.org/man/2/writev
220+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Scatter_002dGather.html#index-writev
213221
#[cfg(not(any(target_os = "espidf", target_os = "horizon")))]
214222
#[inline]
215223
pub fn writev<Fd: AsFd>(fd: Fd, bufs: &[IoSlice<'_>]) -> io::Result<usize> {
@@ -226,13 +234,15 @@ pub fn writev<Fd: AsFd>(fd: Fd, bufs: &[IoSlice<'_>]) -> io::Result<usize> {
226234
/// - [OpenBSD]
227235
/// - [DragonFly BSD]
228236
/// - [illumos]
237+
/// - [glibc]
229238
///
230239
/// [Linux]: https://man7.org/linux/man-pages/man2/preadv.2.html
231240
/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=preadv&sektion=2
232241
/// [NetBSD]: https://man.netbsd.org/preadv.2
233242
/// [OpenBSD]: https://man.openbsd.org/preadv.2
234243
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=preadv&section=2
235244
/// [illumos]: https://illumos.org/man/2/preadv
245+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Scatter_002dGather.html#index-preadv64
236246
#[cfg(not(any(
237247
target_os = "espidf",
238248
target_os = "haiku",
@@ -261,13 +271,15 @@ pub fn preadv<Fd: AsFd>(fd: Fd, bufs: &mut [IoSliceMut<'_>], offset: u64) -> io:
261271
/// - [OpenBSD]
262272
/// - [DragonFly BSD]
263273
/// - [illumos]
274+
/// - [glibc]
264275
///
265276
/// [Linux]: https://man7.org/linux/man-pages/man2/pwritev.2.html
266277
/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=pwritev&sektion=2
267278
/// [NetBSD]: https://man.netbsd.org/pwritev.2
268279
/// [OpenBSD]: https://man.openbsd.org/pwritev.2
269280
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=pwritev&section=2
270281
/// [illumos]: https://illumos.org/man/2/pwritev
282+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/I_002fO-Primitives.html#index-pwrite64
271283
#[cfg(not(any(
272284
target_os = "espidf",
273285
target_os = "haiku",
@@ -288,8 +300,10 @@ pub fn pwritev<Fd: AsFd>(fd: Fd, bufs: &[IoSlice<'_>], offset: u64) -> io::Resul
288300
///
289301
/// # References
290302
/// - [Linux]
303+
/// - [glibc]
291304
///
292305
/// [Linux]: https://man7.org/linux/man-pages/man2/preadv2.2.html
306+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Scatter_002dGather.html#index-preadv64v2
293307
#[cfg(linux_kernel)]
294308
#[inline]
295309
pub fn preadv2<Fd: AsFd>(
@@ -307,8 +321,10 @@ pub fn preadv2<Fd: AsFd>(
307321
///
308322
/// # References
309323
/// - [Linux]
324+
/// - [glibc]
310325
///
311326
/// [Linux]: https://man7.org/linux/man-pages/man2/pwritev2.2.html
327+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Scatter_002dGather.html#index-pwritev64v2
312328
#[cfg(linux_kernel)]
313329
#[inline]
314330
pub fn pwritev2<Fd: AsFd>(

src/mm/madvise.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub use backend::mm::types::Advice;
4141
/// [OpenBSD]: https://man.openbsd.org/madvise.2
4242
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=madvise&section=2
4343
/// [illumos]: https://illumos.org/man/3C/madvise
44-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Memory_002dmapped-I_002fO.html#index-madvise
44+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Memory_002dmapped-I_002fO.html#index-madvise
4545
#[inline]
4646
#[doc(alias = "posix_madvise")]
4747
pub unsafe fn madvise(addr: *mut c_void, len: usize, advice: Advice) -> io::Result<()> {

src/mm/mmap.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl MapFlags {
7373
/// [OpenBSD]: https://man.openbsd.org/mmap.2
7474
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=mmap&section=2
7575
/// [illumos]: https://illumos.org/man/2/mmap
76-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Memory_002dmapped-I_002fO.html#index-mmap
76+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Memory_002dmapped-I_002fO.html#index-mmap
7777
#[inline]
7878
pub unsafe fn mmap<Fd: AsFd>(
7979
ptr: *mut c_void,
@@ -114,7 +114,7 @@ pub unsafe fn mmap<Fd: AsFd>(
114114
/// [OpenBSD]: https://man.openbsd.org/mmap.2
115115
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=mmap&section=2
116116
/// [illumos]: https://illumos.org/man/2/mmap
117-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Memory_002dmapped-I_002fO.html#index-mmap
117+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Memory_002dmapped-I_002fO.html#index-mmap
118118
#[inline]
119119
#[doc(alias = "mmap")]
120120
pub unsafe fn mmap_anonymous(
@@ -151,7 +151,7 @@ pub unsafe fn mmap_anonymous(
151151
/// [OpenBSD]: https://man.openbsd.org/munmap.2
152152
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=munmap&section=2
153153
/// [illumos]: https://illumos.org/man/2/munmap
154-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Memory_002dmapped-I_002fO.html#index-munmap
154+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Memory_002dmapped-I_002fO.html#index-munmap
155155
#[inline]
156156
pub unsafe fn munmap(ptr: *mut c_void, len: usize) -> io::Result<()> {
157157
backend::mm::syscalls::munmap(ptr, len)
@@ -272,7 +272,7 @@ pub unsafe fn mprotect(ptr: *mut c_void, len: usize, flags: MprotectFlags) -> io
272272
/// [OpenBSD]: https://man.openbsd.org/mlock.2
273273
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=mlock&section=2
274274
/// [illumos]: https://illumos.org/man/3C/mlock
275-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Page-Lock-Functions.html#index-mlock
275+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Page-Lock-Functions.html#index-mlock
276276
#[inline]
277277
pub unsafe fn mlock(ptr: *mut c_void, len: usize) -> io::Result<()> {
278278
backend::mm::syscalls::mlock(ptr, len)
@@ -298,7 +298,7 @@ pub unsafe fn mlock(ptr: *mut c_void, len: usize) -> io::Result<()> {
298298
/// - [glibc]
299299
///
300300
/// [Linux]: https://man7.org/linux/man-pages/man2/mlock2.2.html
301-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Page-Lock-Functions.html#index-mlock2
301+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Page-Lock-Functions.html#index-mlock2
302302
#[cfg(linux_kernel)]
303303
#[inline]
304304
#[doc(alias = "mlock2")]
@@ -337,7 +337,7 @@ pub unsafe fn mlock_with(ptr: *mut c_void, len: usize, flags: MlockFlags) -> io:
337337
/// [OpenBSD]: https://man.openbsd.org/munlock.2
338338
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=munlock&section=2
339339
/// [illumos]: https://illumos.org/man/3C/munlock
340-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Page-Lock-Functions.html#index-munlock
340+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Page-Lock-Functions.html#index-munlock
341341
#[inline]
342342
pub unsafe fn munlock(ptr: *mut c_void, len: usize) -> io::Result<()> {
343343
backend::mm::syscalls::munlock(ptr, len)
@@ -368,7 +368,7 @@ pub unsafe fn munlock(ptr: *mut c_void, len: usize) -> io::Result<()> {
368368
/// [OpenBSD]: https://man.openbsd.org/mlockall.2
369369
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=mlockall&section=2
370370
/// [illumos]: https://illumos.org/man/3C/mlockall
371-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Page-Lock-Functions.html#index-mlockall
371+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Page-Lock-Functions.html#index-mlockall
372372
#[cfg(any(linux_kernel, freebsdlike, netbsdlike))]
373373
#[inline]
374374
pub fn mlockall(flags: MlockAllFlags) -> io::Result<()> {
@@ -401,7 +401,7 @@ pub fn mlockall(flags: MlockAllFlags) -> io::Result<()> {
401401
/// [OpenBSD]: https://man.openbsd.org/munlockall.2
402402
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=munlockall&section=2
403403
/// [illumos]: https://illumos.org/man/3C/munlockall
404-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Page-Lock-Functions.html#index-munlockall
404+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Page-Lock-Functions.html#index-munlockall
405405
#[cfg(any(linux_kernel, freebsdlike, netbsdlike))]
406406
#[inline]
407407
pub fn munlockall() -> io::Result<()> {

src/mm/msync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub use backend::mm::types::MsyncFlags;
3939
/// [OpenBSD]: https://man.openbsd.org/msync.2
4040
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=msync&section=2
4141
/// [illumos]: https://illumos.org/man/3C/msync
42-
/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Memory_002dmapped-I_002fO.html#index-msync
42+
/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Memory_002dmapped-I_002fO.html#index-msync
4343
#[inline]
4444
pub unsafe fn msync(addr: *mut c_void, len: usize, flags: MsyncFlags) -> io::Result<()> {
4545
backend::mm::syscalls::msync(addr, len, flags)

0 commit comments

Comments
 (0)