Skip to content

Commit a0f9680

Browse files
committed
Update POSIX reference URLs to 1003.1-2024. (#1160)
* Update POSIX reference URLs to 1003.1-2024. Update POSIX reference URLs from pointing to Issue 7, 1003.1-2017, to now point to the new Issue 8, 1003.1-2024. * Move some unit tests into `mod tests`. This moves toward the popular idiom of putting tests in `mod tests` with `#[cfg(test)]`, and also works around Rust nightly warning about undocumented constants in the expansion of `#[test]`.
1 parent 141afbe commit a0f9680

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+340
-325
lines changed

src/backend/libc/io/errno.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use libc_errno::errno;
2222
/// - [illumos]
2323
/// - [glibc]
2424
///
25-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/errno.html
25+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/errno.html
2626
/// [Linux]: https://man7.org/linux/man-pages/man3/errno.3.html
2727
/// [Winsock]: https://learn.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2
2828
/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?errno

src/backend/linux_raw/io/errno.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ use linux_raw_sys::errno;
3232
/// - [illumos]
3333
/// - [glibc]
3434
///
35-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/errno.html
35+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/errno.html
3636
/// [Linux]: https://man7.org/linux/man-pages/man3/errno.3.html
3737
/// [Winsock]: https://learn.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2
3838
/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?errno

src/event/epoll.rs

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -435,13 +435,18 @@ impl<'a> IntoIterator for &'a EventVec {
435435
}
436436
}
437437

438-
#[test]
439-
fn test_epoll_layouts() {
440-
check_renamed_type!(Event, epoll_event);
441-
check_renamed_type!(Event, epoll_event);
442-
check_renamed_struct_renamed_field!(Event, epoll_event, flags, events);
443-
#[cfg(libc)]
444-
check_renamed_struct_renamed_field!(Event, epoll_event, data, u64);
445-
#[cfg(not(libc))]
446-
check_renamed_struct_renamed_field!(Event, epoll_event, data, data);
438+
#[cfg(test)]
439+
mod tests {
440+
use super::*;
441+
442+
#[test]
443+
fn test_epoll_layouts() {
444+
check_renamed_type!(Event, epoll_event);
445+
check_renamed_type!(Event, epoll_event);
446+
check_renamed_struct_renamed_field!(Event, epoll_event, flags, events);
447+
#[cfg(libc)]
448+
check_renamed_struct_renamed_field!(Event, epoll_event, data, u64);
449+
#[cfg(not(libc))]
450+
check_renamed_struct_renamed_field!(Event, epoll_event, data, data);
451+
}
447452
}

src/event/pause.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use crate::backend;
1717
/// - [DragonFly BSD]
1818
/// - [illumos]
1919
///
20-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/pause.html
20+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/pause.html
2121
/// [Linux]: https://man7.org/linux/man-pages/man2/pause.2.html
2222
/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/pause.3.html
2323
/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=pause&sektion=3

src/event/poll.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub use backend::event::poll_fd::{PollFd, PollFlags};
1717
/// - [illumos]
1818
///
1919
/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/slightly-advanced-techniques.html#poll
20-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/poll.html
20+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/poll.html
2121
/// [Linux]: https://man7.org/linux/man-pages/man2/poll.2.html
2222
/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/poll.2.html
2323
/// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsapoll

src/fs/abs.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ use {
3939
/// - [POSIX]
4040
/// - [Linux]
4141
///
42-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html
42+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/open.html
4343
/// [Linux]: https://man7.org/linux/man-pages/man2/open.2.html
4444
#[inline]
4545
pub fn open<P: path::Arg>(path: P, flags: OFlags, mode: Mode) -> io::Result<OwnedFd> {
@@ -52,7 +52,7 @@ pub fn open<P: path::Arg>(path: P, flags: OFlags, mode: Mode) -> io::Result<Owne
5252
/// - [POSIX]
5353
/// - [Linux]
5454
///
55-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/chmod.html
55+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/chmod.html
5656
/// [Linux]: https://man7.org/linux/man-pages/man2/chmod.2.html
5757
#[cfg(not(target_os = "wasi"))]
5858
#[inline]
@@ -69,7 +69,7 @@ pub fn chmod<P: path::Arg>(path: P, mode: Mode) -> io::Result<()> {
6969
/// - [POSIX]
7070
/// - [Linux]
7171
///
72-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stat.html
72+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stat.html
7373
/// [Linux]: https://man7.org/linux/man-pages/man2/stat.2.html
7474
/// [`Mode::from_raw_mode`]: crate::fs::Mode::from_raw_mode
7575
/// [`FileType::from_raw_mode`]: crate::fs::FileType::from_raw_mode
@@ -88,7 +88,7 @@ pub fn stat<P: path::Arg>(path: P) -> io::Result<Stat> {
8888
/// - [POSIX]
8989
/// - [Linux]
9090
///
91-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/lstat.html
91+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/lstat.html
9292
/// [Linux]: https://man7.org/linux/man-pages/man2/lstat.2.html
9393
/// [`Mode::from_raw_mode`]: crate::fs::Mode::from_raw_mode
9494
/// [`FileType::from_raw_mode`]: crate::fs::FileType::from_raw_mode
@@ -105,7 +105,7 @@ pub fn lstat<P: path::Arg>(path: P) -> io::Result<Stat> {
105105
/// - [POSIX]
106106
/// - [Linux]
107107
///
108-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/readlink.html
108+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/readlink.html
109109
/// [Linux]: https://man7.org/linux/man-pages/man2/readlink.2.html
110110
#[cfg(feature = "alloc")]
111111
#[inline]
@@ -142,7 +142,7 @@ fn _readlink(path: &CStr, mut buffer: Vec<u8>) -> io::Result<CString> {
142142
/// - [POSIX]
143143
/// - [Linux]
144144
///
145-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/rename.html
145+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/rename.html
146146
/// [Linux]: https://man7.org/linux/man-pages/man2/rename.2.html
147147
#[inline]
148148
pub fn rename<P: path::Arg, Q: path::Arg>(old_path: P, new_path: Q) -> io::Result<()> {
@@ -157,7 +157,7 @@ pub fn rename<P: path::Arg, Q: path::Arg>(old_path: P, new_path: Q) -> io::Resul
157157
/// - [POSIX]
158158
/// - [Linux]
159159
///
160-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/unlink.html
160+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/unlink.html
161161
/// [Linux]: https://man7.org/linux/man-pages/man2/unlink.2.html
162162
#[inline]
163163
pub fn unlink<P: path::Arg>(path: P) -> io::Result<()> {
@@ -170,7 +170,7 @@ pub fn unlink<P: path::Arg>(path: P) -> io::Result<()> {
170170
/// - [POSIX]
171171
/// - [Linux]
172172
///
173-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/rmdir.html
173+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/rmdir.html
174174
/// [Linux]: https://man7.org/linux/man-pages/man2/rmdir.2.html
175175
#[inline]
176176
pub fn rmdir<P: path::Arg>(path: P) -> io::Result<()> {
@@ -189,7 +189,7 @@ pub fn rmdir<P: path::Arg>(path: P) -> io::Result<()> {
189189
/// - [POSIX]
190190
/// - [Linux]
191191
///
192-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/link.html
192+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/link.html
193193
/// [Linux]: https://man7.org/linux/man-pages/man2/link.2.html
194194
/// [`linkat`]: crate::fs::linkat
195195
/// [`AtFlags`]: crate::fs::AtFlags
@@ -207,7 +207,7 @@ pub fn link<P: path::Arg, Q: path::Arg>(old_path: P, new_path: Q) -> io::Result<
207207
/// - [POSIX]
208208
/// - [Linux]
209209
///
210-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/symlink.html
210+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/symlink.html
211211
/// [Linux]: https://man7.org/linux/man-pages/man2/symlink.2.html
212212
#[inline]
213213
pub fn symlink<P: path::Arg, Q: path::Arg>(old_path: P, new_path: Q) -> io::Result<()> {
@@ -222,7 +222,7 @@ pub fn symlink<P: path::Arg, Q: path::Arg>(old_path: P, new_path: Q) -> io::Resu
222222
/// - [POSIX]
223223
/// - [Linux]
224224
///
225-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mkdir.html
225+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/mkdir.html
226226
/// [Linux]: https://man7.org/linux/man-pages/man2/mkdir.2.html
227227
#[inline]
228228
pub fn mkdir<P: path::Arg>(path: P, mode: Mode) -> io::Result<()> {
@@ -235,7 +235,7 @@ pub fn mkdir<P: path::Arg>(path: P, mode: Mode) -> io::Result<()> {
235235
/// - [POSIX]
236236
/// - [Linux]
237237
///
238-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/access.html
238+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/access.html
239239
/// [Linux]: https://man7.org/linux/man-pages/man2/access.2.html
240240
#[cfg(not(any(target_os = "espidf", target_os = "vita")))]
241241
#[inline]
@@ -278,7 +278,7 @@ pub fn statfs<P: path::Arg>(path: P) -> io::Result<StatFs> {
278278
/// - [POSIX]
279279
/// - [Linux]
280280
///
281-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/statvfs.html
281+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/statvfs.html
282282
/// [Linux]: https://man7.org/linux/man-pages/man2/statvfs.2.html
283283
#[cfg(not(any(target_os = "haiku", target_os = "redox", target_os = "wasi")))]
284284
#[inline]
@@ -292,7 +292,7 @@ pub fn statvfs<P: path::Arg>(path: P) -> io::Result<StatVfs> {
292292
/// - [POSIX]
293293
/// - [Linux]
294294
///
295-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/chown.html
295+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/chown.html
296296
/// [Linux]: https://man7.org/linux/man-pages/man2/chown.2.html
297297
#[cfg(not(target_os = "wasi"))]
298298
#[inline]

src/fs/at.rs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub const UTIME_OMIT: Nsecs = backend::c::UTIME_OMIT as Nsecs;
5555
/// - [POSIX]
5656
/// - [Linux]
5757
///
58-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/openat.html
58+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/openat.html
5959
/// [Linux]: https://man7.org/linux/man-pages/man2/openat.2.html
6060
#[inline]
6161
pub fn openat<P: path::Arg, Fd: AsFd>(
@@ -77,7 +77,7 @@ pub fn openat<P: path::Arg, Fd: AsFd>(
7777
/// - [POSIX]
7878
/// - [Linux]
7979
///
80-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/readlinkat.html
80+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/readlinkat.html
8181
/// [Linux]: https://man7.org/linux/man-pages/man2/readlinkat.2.html
8282
#[cfg(feature = "alloc")]
8383
#[inline]
@@ -120,8 +120,8 @@ fn _readlinkat(dirfd: BorrowedFd<'_>, path: &CStr, mut buffer: Vec<u8>) -> io::R
120120
//
121121
// Thus, there will be no NUL bytes in the string.
122122
//
123-
// [POSIX definition 3.271: Pathname]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_271
124-
// [POSIX definition 3.375: String]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_375
123+
// [POSIX definition 3.271: Pathname]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_271
124+
// [POSIX definition 3.375: String]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_375
125125
unsafe {
126126
return Ok(CString::from_vec_unchecked(buffer));
127127
}
@@ -148,7 +148,7 @@ fn _readlinkat(dirfd: BorrowedFd<'_>, path: &CStr, mut buffer: Vec<u8>) -> io::R
148148
/// - [POSIX]
149149
/// - [Linux]
150150
///
151-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/readlinkat.html
151+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/readlinkat.html
152152
/// [Linux]: https://man7.org/linux/man-pages/man2/readlinkat.2.html
153153
#[inline]
154154
pub fn readlinkat_raw<P: path::Arg, Fd: AsFd>(
@@ -180,7 +180,7 @@ fn _readlinkat_raw<'a>(
180180
/// - [POSIX]
181181
/// - [Linux]
182182
///
183-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mkdirat.html
183+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/mkdirat.html
184184
/// [Linux]: https://man7.org/linux/man-pages/man2/mkdirat.2.html
185185
#[inline]
186186
pub fn mkdirat<P: path::Arg, Fd: AsFd>(dirfd: Fd, path: P, mode: Mode) -> io::Result<()> {
@@ -194,7 +194,7 @@ pub fn mkdirat<P: path::Arg, Fd: AsFd>(dirfd: Fd, path: P, mode: Mode) -> io::Re
194194
/// - [POSIX]
195195
/// - [Linux]
196196
///
197-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/linkat.html
197+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/linkat.html
198198
/// [Linux]: https://man7.org/linux/man-pages/man2/linkat.2.html
199199
#[cfg(not(target_os = "espidf"))]
200200
#[inline]
@@ -228,7 +228,7 @@ pub fn linkat<P: path::Arg, Q: path::Arg, PFd: AsFd, QFd: AsFd>(
228228
/// - [Linux]
229229
///
230230
/// [`REMOVEDIR`]: AtFlags::REMOVEDIR
231-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/unlinkat.html
231+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/unlinkat.html
232232
/// [Linux]: https://man7.org/linux/man-pages/man2/unlinkat.2.html
233233
#[cfg(not(target_os = "espidf"))]
234234
#[inline]
@@ -243,7 +243,7 @@ pub fn unlinkat<P: path::Arg, Fd: AsFd>(dirfd: Fd, path: P, flags: AtFlags) -> i
243243
/// - [POSIX]
244244
/// - [Linux]
245245
///
246-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/renameat.html
246+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/renameat.html
247247
/// [Linux]: https://man7.org/linux/man-pages/man2/renameat.2.html
248248
#[inline]
249249
pub fn renameat<P: path::Arg, Q: path::Arg, PFd: AsFd, QFd: AsFd>(
@@ -300,7 +300,7 @@ pub fn renameat_with<P: path::Arg, Q: path::Arg, PFd: AsFd, QFd: AsFd>(
300300
/// - [POSIX]
301301
/// - [Linux]
302302
///
303-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/symlinkat.html
303+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/symlinkat.html
304304
/// [Linux]: https://man7.org/linux/man-pages/man2/symlinkat.2.html
305305
#[inline]
306306
pub fn symlinkat<P: path::Arg, Q: path::Arg, Fd: AsFd>(
@@ -324,7 +324,7 @@ pub fn symlinkat<P: path::Arg, Q: path::Arg, Fd: AsFd>(
324324
/// - [POSIX]
325325
/// - [Linux]
326326
///
327-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fstatat.html
327+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fstatat.html
328328
/// [Linux]: https://man7.org/linux/man-pages/man2/fstatat.2.html
329329
/// [`Mode::from_raw_mode`]: crate::fs::Mode::from_raw_mode
330330
/// [`FileType::from_raw_mode`]: crate::fs::FileType::from_raw_mode
@@ -349,7 +349,7 @@ pub fn statat<P: path::Arg, Fd: AsFd>(dirfd: Fd, path: P, flags: AtFlags) -> io:
349349
/// - [POSIX]
350350
/// - [Linux]
351351
///
352-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/faccessat.html
352+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/faccessat.html
353353
/// [Linux]: https://man7.org/linux/man-pages/man2/faccessat.2.html
354354
#[cfg(not(any(target_os = "espidf", target_os = "vita")))]
355355
#[inline]
@@ -369,7 +369,7 @@ pub fn accessat<P: path::Arg, Fd: AsFd>(
369369
/// - [POSIX]
370370
/// - [Linux]
371371
///
372-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/utimensat.html
372+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/utimensat.html
373373
/// [Linux]: https://man7.org/linux/man-pages/man2/utimensat.2.html
374374
#[cfg(not(any(target_os = "espidf", target_os = "vita")))]
375375
#[inline]
@@ -392,7 +392,7 @@ pub fn utimensat<P: path::Arg, Fd: AsFd>(
392392
/// - [POSIX]
393393
/// - [Linux]
394394
///
395-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fchmodat.html
395+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fchmodat.html
396396
/// [Linux]: https://man7.org/linux/man-pages/man2/fchmodat.2.html
397397
#[cfg(not(any(target_os = "espidf", target_os = "wasi")))]
398398
#[inline]
@@ -431,7 +431,7 @@ pub fn fclonefileat<Fd: AsFd, DstFd: AsFd, P: path::Arg>(
431431
/// - [POSIX]
432432
/// - [Linux]
433433
///
434-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mknodat.html
434+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/mknodat.html
435435
/// [Linux]: https://man7.org/linux/man-pages/man2/mknodat.2.html
436436
#[cfg(not(any(apple, target_os = "espidf", target_os = "vita", target_os = "wasi")))]
437437
#[inline]
@@ -454,7 +454,7 @@ pub fn mknodat<P: path::Arg, Fd: AsFd>(
454454
/// - [POSIX]
455455
/// - [Linux]
456456
///
457-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fchownat.html
457+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fchownat.html
458458
/// [Linux]: https://man7.org/linux/man-pages/man2/fchownat.2.html
459459
#[cfg(not(any(target_os = "espidf", target_os = "wasi")))]
460460
#[inline]

src/fs/cwd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use backend::fd::{BorrowedFd, RawFd};
2121
/// - [POSIX]
2222
///
2323
/// [`openat`]: crate::fs::openat
24-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/fcntl.h.html
24+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/fcntl.h.html
2525
// SAFETY: `AT_FDCWD` is a reserved value that is never dynamically
2626
// allocated, so it'll remain valid for the duration of `'static`.
2727
#[doc(alias = "AT_FDCWD")]

src/fs/fadvise.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use backend::fs::types::Advice;
99
/// - [POSIX]
1010
/// - [Linux]
1111
///
12-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_fadvise.html
12+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/posix_fadvise.html
1313
/// [Linux]: https://man7.org/linux/man-pages/man2/posix_fadvise.2.html
1414
#[inline]
1515
#[doc(alias = "posix_fadvise")]

src/fs/fcntl.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub use crate::io::{fcntl_getfd, fcntl_setfd};
2929
/// - [POSIX]
3030
/// - [Linux]
3131
///
32-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html
32+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fcntl.html
3333
/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html
3434
#[inline]
3535
#[doc(alias = "F_GETFL")]
@@ -43,7 +43,7 @@ pub fn fcntl_getfl<Fd: AsFd>(fd: Fd) -> io::Result<OFlags> {
4343
/// - [POSIX]
4444
/// - [Linux]
4545
///
46-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html
46+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fcntl.html
4747
/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html
4848
#[inline]
4949
#[doc(alias = "F_SETFL")]
@@ -94,7 +94,7 @@ pub fn fcntl_add_seals<Fd: AsFd>(fd: Fd, seals: SealFlags) -> io::Result<()> {
9494
/// - [POSIX]
9595
/// - [Linux]
9696
///
97-
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html
97+
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fcntl.html
9898
/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html
9999
#[cfg(not(any(
100100
target_os = "emscripten",

0 commit comments

Comments
 (0)