diff --git a/src/backend/libc/io/errno.rs b/src/backend/libc/io/errno.rs index 70613c41d..2a1c028b8 100644 --- a/src/backend/libc/io/errno.rs +++ b/src/backend/libc/io/errno.rs @@ -22,7 +22,7 @@ use libc_errno::errno; /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/errno.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/errno.html /// [Linux]: https://man7.org/linux/man-pages/man3/errno.3.html /// [Winsock]: https://learn.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2 /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?errno diff --git a/src/backend/linux_raw/io/errno.rs b/src/backend/linux_raw/io/errno.rs index 1af1936c1..7e4a262e9 100644 --- a/src/backend/linux_raw/io/errno.rs +++ b/src/backend/linux_raw/io/errno.rs @@ -32,7 +32,7 @@ use linux_raw_sys::errno; /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/errno.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/errno.html /// [Linux]: https://man7.org/linux/man-pages/man3/errno.3.html /// [Winsock]: https://learn.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2 /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?errno diff --git a/src/event/epoll.rs b/src/event/epoll.rs index 0990407b9..48aad6c46 100644 --- a/src/event/epoll.rs +++ b/src/event/epoll.rs @@ -435,13 +435,18 @@ impl<'a> IntoIterator for &'a EventVec { } } -#[test] -fn test_epoll_layouts() { - check_renamed_type!(Event, epoll_event); - check_renamed_type!(Event, epoll_event); - check_renamed_struct_renamed_field!(Event, epoll_event, flags, events); - #[cfg(libc)] - check_renamed_struct_renamed_field!(Event, epoll_event, data, u64); - #[cfg(not(libc))] - check_renamed_struct_renamed_field!(Event, epoll_event, data, data); +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_epoll_layouts() { + check_renamed_type!(Event, epoll_event); + check_renamed_type!(Event, epoll_event); + check_renamed_struct_renamed_field!(Event, epoll_event, flags, events); + #[cfg(libc)] + check_renamed_struct_renamed_field!(Event, epoll_event, data, u64); + #[cfg(not(libc))] + check_renamed_struct_renamed_field!(Event, epoll_event, data, data); + } } diff --git a/src/event/pause.rs b/src/event/pause.rs index f19108490..abde775eb 100644 --- a/src/event/pause.rs +++ b/src/event/pause.rs @@ -17,7 +17,7 @@ use crate::backend; /// - [DragonFly BSD] /// - [illumos] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/pause.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/pause.html /// [Linux]: https://man7.org/linux/man-pages/man2/pause.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/pause.3.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=pause&sektion=3 diff --git a/src/event/poll.rs b/src/event/poll.rs index 30e6a4b10..0937dd6fd 100644 --- a/src/event/poll.rs +++ b/src/event/poll.rs @@ -17,7 +17,7 @@ pub use backend::event::poll_fd::{PollFd, PollFlags}; /// - [illumos] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/slightly-advanced-techniques.html#poll -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/poll.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/poll.html /// [Linux]: https://man7.org/linux/man-pages/man2/poll.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/poll.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsapoll diff --git a/src/fs/abs.rs b/src/fs/abs.rs index 6e7fdf799..6bdd4f985 100644 --- a/src/fs/abs.rs +++ b/src/fs/abs.rs @@ -39,7 +39,7 @@ use { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/open.html /// [Linux]: https://man7.org/linux/man-pages/man2/open.2.html #[inline] pub fn open(path: P, flags: OFlags, mode: Mode) -> io::Result { @@ -52,7 +52,7 @@ pub fn open(path: P, flags: OFlags, mode: Mode) -> io::Result(path: P, mode: Mode) -> io::Result<()> { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stat.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stat.html /// [Linux]: https://man7.org/linux/man-pages/man2/stat.2.html /// [`Mode::from_raw_mode`]: crate::fs::Mode::from_raw_mode /// [`FileType::from_raw_mode`]: crate::fs::FileType::from_raw_mode @@ -88,7 +88,7 @@ pub fn stat(path: P) -> io::Result { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/lstat.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/lstat.html /// [Linux]: https://man7.org/linux/man-pages/man2/lstat.2.html /// [`Mode::from_raw_mode`]: crate::fs::Mode::from_raw_mode /// [`FileType::from_raw_mode`]: crate::fs::FileType::from_raw_mode @@ -105,7 +105,7 @@ pub fn lstat(path: P) -> io::Result { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/readlink.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/readlink.html /// [Linux]: https://man7.org/linux/man-pages/man2/readlink.2.html #[cfg(feature = "alloc")] #[inline] @@ -142,7 +142,7 @@ fn _readlink(path: &CStr, mut buffer: Vec) -> io::Result { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/rename.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/rename.html /// [Linux]: https://man7.org/linux/man-pages/man2/rename.2.html #[inline] pub fn rename(old_path: P, new_path: Q) -> io::Result<()> { @@ -157,7 +157,7 @@ pub fn rename(old_path: P, new_path: Q) -> io::Resul /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/unlink.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/unlink.html /// [Linux]: https://man7.org/linux/man-pages/man2/unlink.2.html #[inline] pub fn unlink(path: P) -> io::Result<()> { @@ -170,7 +170,7 @@ pub fn unlink(path: P) -> io::Result<()> { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/rmdir.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/rmdir.html /// [Linux]: https://man7.org/linux/man-pages/man2/rmdir.2.html #[inline] pub fn rmdir(path: P) -> io::Result<()> { @@ -189,7 +189,7 @@ pub fn rmdir(path: P) -> io::Result<()> { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/link.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/link.html /// [Linux]: https://man7.org/linux/man-pages/man2/link.2.html /// [`linkat`]: crate::fs::linkat /// [`AtFlags`]: crate::fs::AtFlags @@ -207,7 +207,7 @@ pub fn link(old_path: P, new_path: Q) -> io::Result< /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/symlink.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/symlink.html /// [Linux]: https://man7.org/linux/man-pages/man2/symlink.2.html #[inline] pub fn symlink(old_path: P, new_path: Q) -> io::Result<()> { @@ -222,7 +222,7 @@ pub fn symlink(old_path: P, new_path: Q) -> io::Resu /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mkdir.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/mkdir.html /// [Linux]: https://man7.org/linux/man-pages/man2/mkdir.2.html #[inline] pub fn mkdir(path: P, mode: Mode) -> io::Result<()> { @@ -235,7 +235,7 @@ pub fn mkdir(path: P, mode: Mode) -> io::Result<()> { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/access.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/access.html /// [Linux]: https://man7.org/linux/man-pages/man2/access.2.html #[cfg(not(any(target_os = "espidf", target_os = "vita")))] #[inline] @@ -278,7 +278,7 @@ pub fn statfs(path: P) -> io::Result { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/statvfs.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/statvfs.html /// [Linux]: https://man7.org/linux/man-pages/man2/statvfs.2.html #[cfg(not(any(target_os = "haiku", target_os = "redox", target_os = "wasi")))] #[inline] @@ -292,7 +292,7 @@ pub fn statvfs(path: P) -> io::Result { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/chown.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/chown.html /// [Linux]: https://man7.org/linux/man-pages/man2/chown.2.html #[cfg(not(target_os = "wasi"))] #[inline] diff --git a/src/fs/at.rs b/src/fs/at.rs index 3b4a0e00c..bf9628070 100644 --- a/src/fs/at.rs +++ b/src/fs/at.rs @@ -55,7 +55,7 @@ pub const UTIME_OMIT: Nsecs = backend::c::UTIME_OMIT as Nsecs; /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/openat.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/openat.html /// [Linux]: https://man7.org/linux/man-pages/man2/openat.2.html #[inline] pub fn openat( @@ -77,7 +77,7 @@ pub fn openat( /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/readlinkat.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/readlinkat.html /// [Linux]: https://man7.org/linux/man-pages/man2/readlinkat.2.html #[cfg(feature = "alloc")] #[inline] @@ -120,8 +120,8 @@ fn _readlinkat(dirfd: BorrowedFd<'_>, path: &CStr, mut buffer: Vec) -> io::R // // Thus, there will be no NUL bytes in the string. // - // [POSIX definition 3.271: Pathname]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_271 - // [POSIX definition 3.375: String]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_375 + // [POSIX definition 3.271: Pathname]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_271 + // [POSIX definition 3.375: String]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_375 unsafe { return Ok(CString::from_vec_unchecked(buffer)); } @@ -148,7 +148,7 @@ fn _readlinkat(dirfd: BorrowedFd<'_>, path: &CStr, mut buffer: Vec) -> io::R /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/readlinkat.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/readlinkat.html /// [Linux]: https://man7.org/linux/man-pages/man2/readlinkat.2.html #[inline] pub fn readlinkat_raw( @@ -180,7 +180,7 @@ fn _readlinkat_raw<'a>( /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mkdirat.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/mkdirat.html /// [Linux]: https://man7.org/linux/man-pages/man2/mkdirat.2.html #[inline] pub fn mkdirat(dirfd: Fd, path: P, mode: Mode) -> io::Result<()> { @@ -194,7 +194,7 @@ pub fn mkdirat(dirfd: Fd, path: P, mode: Mode) -> io::Re /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/linkat.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/linkat.html /// [Linux]: https://man7.org/linux/man-pages/man2/linkat.2.html #[cfg(not(target_os = "espidf"))] #[inline] @@ -228,7 +228,7 @@ pub fn linkat( /// - [Linux] /// /// [`REMOVEDIR`]: AtFlags::REMOVEDIR -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/unlinkat.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/unlinkat.html /// [Linux]: https://man7.org/linux/man-pages/man2/unlinkat.2.html #[cfg(not(target_os = "espidf"))] #[inline] @@ -243,7 +243,7 @@ pub fn unlinkat(dirfd: Fd, path: P, flags: AtFlags) -> i /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/renameat.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/renameat.html /// [Linux]: https://man7.org/linux/man-pages/man2/renameat.2.html #[inline] pub fn renameat( @@ -300,7 +300,7 @@ pub fn renameat_with( /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/symlinkat.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/symlinkat.html /// [Linux]: https://man7.org/linux/man-pages/man2/symlinkat.2.html #[inline] pub fn symlinkat( @@ -324,7 +324,7 @@ pub fn symlinkat( /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fstatat.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fstatat.html /// [Linux]: https://man7.org/linux/man-pages/man2/fstatat.2.html /// [`Mode::from_raw_mode`]: crate::fs::Mode::from_raw_mode /// [`FileType::from_raw_mode`]: crate::fs::FileType::from_raw_mode @@ -349,7 +349,7 @@ pub fn statat(dirfd: Fd, path: P, flags: AtFlags) -> io: /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/faccessat.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/faccessat.html /// [Linux]: https://man7.org/linux/man-pages/man2/faccessat.2.html #[cfg(not(any(target_os = "espidf", target_os = "vita")))] #[inline] @@ -369,7 +369,7 @@ pub fn accessat( /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/utimensat.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/utimensat.html /// [Linux]: https://man7.org/linux/man-pages/man2/utimensat.2.html #[cfg(not(any(target_os = "espidf", target_os = "vita")))] #[inline] @@ -392,7 +392,7 @@ pub fn utimensat( /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fchmodat.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fchmodat.html /// [Linux]: https://man7.org/linux/man-pages/man2/fchmodat.2.html #[cfg(not(any(target_os = "espidf", target_os = "wasi")))] #[inline] @@ -431,7 +431,7 @@ pub fn fclonefileat( /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mknodat.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/mknodat.html /// [Linux]: https://man7.org/linux/man-pages/man2/mknodat.2.html #[cfg(not(any(apple, target_os = "espidf", target_os = "vita", target_os = "wasi")))] #[inline] @@ -454,7 +454,7 @@ pub fn mknodat( /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fchownat.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fchownat.html /// [Linux]: https://man7.org/linux/man-pages/man2/fchownat.2.html #[cfg(not(any(target_os = "espidf", target_os = "wasi")))] #[inline] diff --git a/src/fs/cwd.rs b/src/fs/cwd.rs index e66360e43..1ebf48d14 100644 --- a/src/fs/cwd.rs +++ b/src/fs/cwd.rs @@ -21,7 +21,7 @@ use backend::fd::{BorrowedFd, RawFd}; /// - [POSIX] /// /// [`openat`]: crate::fs::openat -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/fcntl.h.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/fcntl.h.html // SAFETY: `AT_FDCWD` is a reserved value that is never dynamically // allocated, so it'll remain valid for the duration of `'static`. #[doc(alias = "AT_FDCWD")] diff --git a/src/fs/fadvise.rs b/src/fs/fadvise.rs index a760a186a..fc0cc81d7 100644 --- a/src/fs/fadvise.rs +++ b/src/fs/fadvise.rs @@ -9,7 +9,7 @@ use backend::fs::types::Advice; /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_fadvise.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/posix_fadvise.html /// [Linux]: https://man7.org/linux/man-pages/man2/posix_fadvise.2.html #[inline] #[doc(alias = "posix_fadvise")] diff --git a/src/fs/fcntl.rs b/src/fs/fcntl.rs index f80db849a..f5cd47ddf 100644 --- a/src/fs/fcntl.rs +++ b/src/fs/fcntl.rs @@ -29,7 +29,7 @@ pub use crate::io::{fcntl_getfd, fcntl_setfd}; /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fcntl.html /// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html #[inline] #[doc(alias = "F_GETFL")] @@ -43,7 +43,7 @@ pub fn fcntl_getfl(fd: Fd) -> io::Result { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fcntl.html /// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html #[inline] #[doc(alias = "F_SETFL")] @@ -94,7 +94,7 @@ pub fn fcntl_add_seals(fd: Fd, seals: SealFlags) -> io::Result<()> { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fcntl.html /// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html #[cfg(not(any( target_os = "emscripten", diff --git a/src/fs/fd.rs b/src/fs/fd.rs index 8dc35d1a5..f2fa62f18 100644 --- a/src/fs/fd.rs +++ b/src/fs/fd.rs @@ -91,7 +91,7 @@ pub const NFS_SUPER_MAGIC: FsWord = backend::c::NFS_SUPER_MAGIC as FsWord; /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/lseek.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/lseek.html /// [Linux]: https://man7.org/linux/man-pages/man2/lseek.2.html #[inline] #[doc(alias = "lseek")] @@ -109,7 +109,7 @@ pub fn seek(fd: Fd, pos: SeekFrom) -> io::Result { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/lseek.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/lseek.html /// [Linux]: https://man7.org/linux/man-pages/man2/lseek.2.html #[inline] #[doc(alias = "lseek")] @@ -126,7 +126,7 @@ pub fn tell(fd: Fd) -> io::Result { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fchmod.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fchmod.html /// [Linux]: https://man7.org/linux/man-pages/man2/fchmod.2.html #[cfg(not(target_os = "wasi"))] #[inline] @@ -140,7 +140,7 @@ pub fn fchmod(fd: Fd, mode: Mode) -> io::Result<()> { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fchown.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fchown.html /// [Linux]: https://man7.org/linux/man-pages/man2/fchown.2.html #[cfg(not(target_os = "wasi"))] #[inline] @@ -157,7 +157,7 @@ pub fn fchown(fd: Fd, owner: Option, group: Option) -> io::R /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fstat.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fstat.html /// [Linux]: https://man7.org/linux/man-pages/man2/fstat.2.html /// [`Mode::from_raw_mode`]: Mode::from_raw_mode /// [`FileType::from_raw_mode`]: crate::fs::FileType::from_raw_mode @@ -202,7 +202,7 @@ pub fn fstatfs(fd: Fd) -> io::Result { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fstatvfs.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fstatvfs.html /// [Linux]: https://man7.org/linux/man-pages/man2/fstatvfs.2.html #[cfg(not(any(target_os = "haiku", target_os = "redox", target_os = "wasi")))] #[inline] @@ -216,7 +216,7 @@ pub fn fstatvfs(fd: Fd) -> io::Result { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/futimens.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/futimens.html /// [Linux]: https://man7.org/linux/man-pages/man2/utimensat.2.html #[cfg(not(any(target_os = "espidf", target_os = "vita")))] #[inline] @@ -236,7 +236,7 @@ pub fn futimens(fd: Fd, times: &Timestamps) -> io::Result<()> { /// - [Linux `fallocate`] /// - [Linux `posix_fallocate`] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_fallocate.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/posix_fallocate.html /// [Linux `fallocate`]: https://man7.org/linux/man-pages/man2/fallocate.2.html /// [Linux `posix_fallocate`]: https://man7.org/linux/man-pages/man3/posix_fallocate.3.html #[cfg(not(any( @@ -294,7 +294,7 @@ pub(crate) fn _is_file_read_write(fd: BorrowedFd<'_>) -> io::Result<(bool, bool) /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fsync.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fsync.html /// [Linux]: https://man7.org/linux/man-pages/man2/fsync.2.html /// [`fcntl_fullfsync`]: https://docs.rs/rustix/*/x86_64-apple-darwin/rustix/fs/fn.fcntl_fullfsync.html #[inline] @@ -309,7 +309,7 @@ pub fn fsync(fd: Fd) -> io::Result<()> { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fdatasync.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fdatasync.html /// [Linux]: https://man7.org/linux/man-pages/man2/fdatasync.2.html #[cfg(not(any( apple, @@ -330,7 +330,7 @@ pub fn fdatasync(fd: Fd) -> io::Result<()> { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/ftruncate.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/ftruncate.html /// [Linux]: https://man7.org/linux/man-pages/man2/ftruncate.2.html #[inline] pub fn ftruncate(fd: Fd, length: u64) -> io::Result<()> { diff --git a/src/fs/sync.rs b/src/fs/sync.rs index 3d2d08920..cb5f07049 100644 --- a/src/fs/sync.rs +++ b/src/fs/sync.rs @@ -6,7 +6,7 @@ use crate::backend; /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sync.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/sync.html /// [Linux]: https://man7.org/linux/man-pages/man2/sync.2.html #[inline] pub fn sync() { diff --git a/src/io/close.rs b/src/io/close.rs index b09267f30..c9bb41ae2 100644 --- a/src/io/close.rs +++ b/src/io/close.rs @@ -34,7 +34,7 @@ use backend::fd::RawFd; /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#close-and-shutdownget-outta-my-face -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/close.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/close.html /// [Linux]: https://man7.org/linux/man-pages/man2/close.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/close.2.html#//apple_ref/doc/man/2/close /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-closesocket diff --git a/src/io/dup.rs b/src/io/dup.rs index fab5357db..02c2eecd7 100644 --- a/src/io/dup.rs +++ b/src/io/dup.rs @@ -28,9 +28,9 @@ pub use backend::io::types::DupFlags; /// - [illumos] /// - [glibc] /// -/// [file description]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_258 +/// [file description]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_258 /// [`fcntl_dupfd_cloexec`]: crate::io::fcntl_dupfd_cloexec -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/dup.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/dup.html /// [Linux]: https://man7.org/linux/man-pages/man2/dup.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/dup.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=dup&sektion=2 @@ -70,9 +70,9 @@ pub fn dup(fd: Fd) -> io::Result { /// - [illumos] /// - [glibc] /// -/// [file description]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_258 +/// [file description]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_258 /// [`fcntl_dupfd_cloexec`]: crate::io::fcntl_dupfd_cloexec -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/dup2.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/dup2.html /// [Linux]: https://man7.org/linux/man-pages/man2/dup2.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/dup2.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=dup2&sektion=2 @@ -105,7 +105,7 @@ pub fn dup2(fd: Fd, new: &mut OwnedFd) -> io::Result<()> { /// - [OpenBSD] /// - [DragonFly BSD] /// -/// [file description]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_258 +/// [file description]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_258 /// [Linux]: https://man7.org/linux/man-pages/man2/dup3.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=dup3&sektion=3 /// [NetBSD]: https://man.netbsd.org/dup3.2 diff --git a/src/io/fcntl.rs b/src/io/fcntl.rs index f06b30ffa..9605de6ee 100644 --- a/src/io/fcntl.rs +++ b/src/io/fcntl.rs @@ -26,7 +26,7 @@ pub use backend::io::types::FdFlags; /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fcntl.html /// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=fcntl&sektion=2 @@ -54,7 +54,7 @@ pub fn fcntl_getfd(fd: Fd) -> io::Result { /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fcntl.html /// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=fcntl&sektion=2 @@ -89,7 +89,7 @@ pub fn fcntl_setfd(fd: Fd, flags: FdFlags) -> io::Result<()> { /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fcntl.html /// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=fcntl&sektion=2 @@ -98,7 +98,7 @@ pub fn fcntl_setfd(fd: Fd, flags: FdFlags) -> io::Result<()> { /// [DragonFly BSD]: https://man.dragonflybsd.org/?command=fcntl§ion=2 /// [illumos]: https://illumos.org/man/2/fcntl /// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Control-Operations.html#index-fcntl-function -/// [file description]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_258 +/// [file description]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_258 #[cfg(not(any(target_os = "espidf", target_os = "wasi")))] #[inline] #[doc(alias = "F_DUPFD_CLOEXEC")] @@ -125,7 +125,7 @@ pub fn fcntl_dupfd_cloexec(fd: Fd, min: RawFd) -> io::Result /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fcntl.html /// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=fcntl&sektion=2 @@ -134,7 +134,7 @@ pub fn fcntl_dupfd_cloexec(fd: Fd, min: RawFd) -> io::Result /// [DragonFly BSD]: https://man.dragonflybsd.org/?command=fcntl§ion=2 /// [illumos]: https://illumos.org/man/2/fcntl /// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Control-Operations.html#index-fcntl-function -/// [file description]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_258 +/// [file description]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_258 #[cfg(target_os = "espidf")] #[inline] #[doc(alias = "F_DUPFD")] diff --git a/src/io/read_write.rs b/src/io/read_write.rs index 40948effe..35bd77edd 100644 --- a/src/io/read_write.rs +++ b/src/io/read_write.rs @@ -30,7 +30,7 @@ pub use backend::io::types::ReadWriteFlags; /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/read.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/read.html /// [Linux]: https://man7.org/linux/man-pages/man2/read.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/read.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=read&sektion=2 @@ -76,7 +76,7 @@ pub fn read_uninit( /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/write.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/write.html /// [Linux]: https://man7.org/linux/man-pages/man2/write.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/write.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=write&sektion=2 @@ -105,7 +105,7 @@ pub fn write(fd: Fd, buf: &[u8]) -> io::Result { /// - [DragonFly BSD] /// - [illumos] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/pread.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/pread.html /// [Linux]: https://man7.org/linux/man-pages/man2/pread.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/pread.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=pread&sektion=2 @@ -151,7 +151,7 @@ pub fn pread_uninit( /// - [DragonFly BSD] /// - [illumos] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/pwrite.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/pwrite.html /// [Linux]: https://man7.org/linux/man-pages/man2/pwrite.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/pwrite.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=pwrite&sektion=2 @@ -176,7 +176,7 @@ pub fn pwrite(fd: Fd, buf: &[u8], offset: u64) -> io::Result { /// - [DragonFly BSD] /// - [illumos] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/readv.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/readv.html /// [Linux]: https://man7.org/linux/man-pages/man2/readv.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/readv.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=readv&sektion=2 @@ -202,7 +202,7 @@ pub fn readv(fd: Fd, bufs: &mut [IoSliceMut<'_>]) -> io::Result /// - [DragonFly BSD] /// - [illumos] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/writev.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/writev.html /// [Linux]: https://man7.org/linux/man-pages/man2/writev.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/writev.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=writev&sektion=2 diff --git a/src/io_uring.rs b/src/io_uring.rs index e1b13d3c6..de272188f 100644 --- a/src/io_uring.rs +++ b/src/io_uring.rs @@ -1496,103 +1496,108 @@ impl Default for register_or_sqe_op_or_sqe_flags_union { } } -/// Check that our custom structs and unions have the same layout as the -/// kernel's versions. -#[test] -fn io_uring_layouts() { - use sys as c; - - assert_eq_size!(io_uring_ptr, u64); - - check_renamed_type!(off_or_addr2_union, io_uring_sqe__bindgen_ty_1); - check_renamed_type!(addr_or_splice_off_in_union, io_uring_sqe__bindgen_ty_2); - check_renamed_type!(addr3_or_cmd_union, io_uring_sqe__bindgen_ty_6); - check_renamed_type!(op_flags_union, io_uring_sqe__bindgen_ty_3); - check_renamed_type!(buf_union, io_uring_sqe__bindgen_ty_4); - check_renamed_type!(splice_fd_in_or_file_index_union, io_uring_sqe__bindgen_ty_5); - check_renamed_type!(addr_len_struct, io_uring_sqe__bindgen_ty_5__bindgen_ty_1); - check_renamed_type!( - register_or_sqe_op_or_sqe_flags_union, - io_uring_restriction__bindgen_ty_1 - ); - - check_renamed_type!(addr3_struct, io_uring_sqe__bindgen_ty_6__bindgen_ty_1); - check_renamed_type!(cmd_op_struct, io_uring_sqe__bindgen_ty_1__bindgen_ty_1); - - check_type!(io_uring_sqe); - check_struct_field!(io_uring_sqe, opcode); - check_struct_field!(io_uring_sqe, flags); - check_struct_field!(io_uring_sqe, ioprio); - check_struct_field!(io_uring_sqe, fd); - check_struct_renamed_field!(io_uring_sqe, off_or_addr2, __bindgen_anon_1); - check_struct_renamed_field!(io_uring_sqe, addr_or_splice_off_in, __bindgen_anon_2); - check_struct_field!(io_uring_sqe, len); - check_struct_renamed_field!(io_uring_sqe, op_flags, __bindgen_anon_3); - check_struct_field!(io_uring_sqe, user_data); - check_struct_renamed_field!(io_uring_sqe, buf, __bindgen_anon_4); - check_struct_field!(io_uring_sqe, personality); - check_struct_renamed_field!(io_uring_sqe, splice_fd_in_or_file_index, __bindgen_anon_5); - check_struct_renamed_field!(io_uring_sqe, addr3_or_cmd, __bindgen_anon_6); - - check_type!(io_uring_restriction); - check_struct_field!(io_uring_restriction, opcode); - check_struct_renamed_field!( - io_uring_restriction, - register_or_sqe_op_or_sqe_flags, - __bindgen_anon_1 - ); - check_struct_field!(io_uring_restriction, resv); - check_struct_field!(io_uring_restriction, resv2); - - check_struct!(io_uring_cqe, user_data, res, flags, big_cqe); - check_struct!( - io_uring_params, - sq_entries, - cq_entries, - flags, - sq_thread_cpu, - sq_thread_idle, - features, - wq_fd, - resv, - sq_off, - cq_off - ); - check_struct!( - io_sqring_offsets, - head, - tail, - ring_mask, - ring_entries, - flags, - dropped, - array, - resv1, - resv2 - ); - check_struct!( - io_cqring_offsets, - head, - tail, - ring_mask, - ring_entries, - overflow, - cqes, - flags, - resv1, - resv2 - ); - check_struct!(io_uring_recvmsg_out, namelen, controllen, payloadlen, flags); - check_struct!(io_uring_probe, last_op, ops_len, resv, resv2, ops); - check_struct!(io_uring_probe_op, op, resv, flags, resv2); - check_struct!(io_uring_files_update, offset, resv, fds); - check_struct!(io_uring_rsrc_register, nr, flags, resv2, data, tags); - check_struct!(io_uring_rsrc_update, offset, resv, data); - check_struct!(io_uring_rsrc_update2, offset, resv, data, tags, nr, resv2); - check_struct!(io_uring_getevents_arg, sigmask, sigmask_sz, pad, ts); - check_struct!(iovec, iov_base, iov_len); - check_struct!(open_how, flags, mode, resolve); - check_struct!(io_uring_buf_reg, ring_addr, ring_entries, bgid, pad, resv); - check_struct!(io_uring_buf, addr, len, bid, resv); - check_struct!(io_uring_sync_cancel_reg, addr, fd, flags, timeout, pad); +#[cfg(test)] +mod tests { + use super::*; + + /// Check that our custom structs and unions have the same layout as the + /// kernel's versions. + #[test] + fn io_uring_layouts() { + use sys as c; + + assert_eq_size!(io_uring_ptr, u64); + + check_renamed_type!(off_or_addr2_union, io_uring_sqe__bindgen_ty_1); + check_renamed_type!(addr_or_splice_off_in_union, io_uring_sqe__bindgen_ty_2); + check_renamed_type!(addr3_or_cmd_union, io_uring_sqe__bindgen_ty_6); + check_renamed_type!(op_flags_union, io_uring_sqe__bindgen_ty_3); + check_renamed_type!(buf_union, io_uring_sqe__bindgen_ty_4); + check_renamed_type!(splice_fd_in_or_file_index_union, io_uring_sqe__bindgen_ty_5); + check_renamed_type!(addr_len_struct, io_uring_sqe__bindgen_ty_5__bindgen_ty_1); + check_renamed_type!( + register_or_sqe_op_or_sqe_flags_union, + io_uring_restriction__bindgen_ty_1 + ); + + check_renamed_type!(addr3_struct, io_uring_sqe__bindgen_ty_6__bindgen_ty_1); + check_renamed_type!(cmd_op_struct, io_uring_sqe__bindgen_ty_1__bindgen_ty_1); + + check_type!(io_uring_sqe); + check_struct_field!(io_uring_sqe, opcode); + check_struct_field!(io_uring_sqe, flags); + check_struct_field!(io_uring_sqe, ioprio); + check_struct_field!(io_uring_sqe, fd); + check_struct_renamed_field!(io_uring_sqe, off_or_addr2, __bindgen_anon_1); + check_struct_renamed_field!(io_uring_sqe, addr_or_splice_off_in, __bindgen_anon_2); + check_struct_field!(io_uring_sqe, len); + check_struct_renamed_field!(io_uring_sqe, op_flags, __bindgen_anon_3); + check_struct_field!(io_uring_sqe, user_data); + check_struct_renamed_field!(io_uring_sqe, buf, __bindgen_anon_4); + check_struct_field!(io_uring_sqe, personality); + check_struct_renamed_field!(io_uring_sqe, splice_fd_in_or_file_index, __bindgen_anon_5); + check_struct_renamed_field!(io_uring_sqe, addr3_or_cmd, __bindgen_anon_6); + + check_type!(io_uring_restriction); + check_struct_field!(io_uring_restriction, opcode); + check_struct_renamed_field!( + io_uring_restriction, + register_or_sqe_op_or_sqe_flags, + __bindgen_anon_1 + ); + check_struct_field!(io_uring_restriction, resv); + check_struct_field!(io_uring_restriction, resv2); + + check_struct!(io_uring_cqe, user_data, res, flags, big_cqe); + check_struct!( + io_uring_params, + sq_entries, + cq_entries, + flags, + sq_thread_cpu, + sq_thread_idle, + features, + wq_fd, + resv, + sq_off, + cq_off + ); + check_struct!( + io_sqring_offsets, + head, + tail, + ring_mask, + ring_entries, + flags, + dropped, + array, + resv1, + resv2 + ); + check_struct!( + io_cqring_offsets, + head, + tail, + ring_mask, + ring_entries, + overflow, + cqes, + flags, + resv1, + resv2 + ); + check_struct!(io_uring_recvmsg_out, namelen, controllen, payloadlen, flags); + check_struct!(io_uring_probe, last_op, ops_len, resv, resv2, ops); + check_struct!(io_uring_probe_op, op, resv, flags, resv2); + check_struct!(io_uring_files_update, offset, resv, fds); + check_struct!(io_uring_rsrc_register, nr, flags, resv2, data, tags); + check_struct!(io_uring_rsrc_update, offset, resv, data); + check_struct!(io_uring_rsrc_update2, offset, resv, data, tags, nr, resv2); + check_struct!(io_uring_getevents_arg, sigmask, sigmask_sz, pad, ts); + check_struct!(iovec, iov_base, iov_len); + check_struct!(open_how, flags, mode, resolve); + check_struct!(io_uring_buf_reg, ring_addr, ring_entries, bgid, pad, resv); + check_struct!(io_uring_buf, addr, len, bid, resv); + check_struct!(io_uring_sync_cancel_reg, addr, fd, flags, timeout, pad); + } } diff --git a/src/mm/madvise.rs b/src/mm/madvise.rs index 4015d1284..d0f5519fb 100644 --- a/src/mm/madvise.rs +++ b/src/mm/madvise.rs @@ -32,7 +32,7 @@ pub use backend::mm::types::Advice; /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_madvise.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/posix_madvise.html /// [Linux `madvise`]: https://man7.org/linux/man-pages/man2/madvise.2.html /// [Linux `posix_madvise`]: https://man7.org/linux/man-pages/man3/posix_madvise.3.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/madvise.2.html diff --git a/src/mm/mmap.rs b/src/mm/mmap.rs index 3f6523fde..2510c454e 100644 --- a/src/mm/mmap.rs +++ b/src/mm/mmap.rs @@ -65,7 +65,7 @@ impl MapFlags { /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mmap.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/mmap.html /// [Linux]: https://man7.org/linux/man-pages/man2/mmap.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/mmap.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=mmap&sektion=2 @@ -106,7 +106,7 @@ pub unsafe fn mmap( /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mmap.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/mmap.html /// [Linux]: https://man7.org/linux/man-pages/man2/mmap.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/mmap.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=mmap&sektion=2 @@ -143,7 +143,7 @@ pub unsafe fn mmap_anonymous( /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/munmap.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/munmap.html /// [Linux]: https://man7.org/linux/man-pages/man2/munmap.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/munmap.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=munmap&sektion=2 @@ -226,7 +226,7 @@ pub unsafe fn mremap_fixed( /// - [DragonFly BSD] /// - [illumos] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mprotect.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/mprotect.html /// [Linux]: https://man7.org/linux/man-pages/man2/mprotect.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/mprotect.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=mprotect&sektion=2 @@ -264,7 +264,7 @@ pub unsafe fn mprotect(ptr: *mut c_void, len: usize, flags: MprotectFlags) -> io /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mlock.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/mlock.html /// [Linux]: https://man7.org/linux/man-pages/man2/mlock.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/mlock.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=mlock&sektion=2 @@ -329,7 +329,7 @@ pub unsafe fn mlock_with(ptr: *mut c_void, len: usize, flags: MlockFlags) -> io: /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/munlock.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/munlock.html /// [Linux]: https://man7.org/linux/man-pages/man2/munlock.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/munlock.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=munlock&sektion=2 @@ -361,7 +361,7 @@ pub unsafe fn munlock(ptr: *mut c_void, len: usize) -> io::Result<()> { /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mlockall.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/mlockall.html /// [Linux]: https://man7.org/linux/man-pages/man2/mlockall.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=mlockall&sektion=2 /// [NetBSD]: https://man.netbsd.org/mlockall.2 @@ -394,7 +394,7 @@ pub fn mlockall(flags: MlockAllFlags) -> io::Result<()> { /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/munlockall.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/munlockall.html /// [Linux]: https://man7.org/linux/man-pages/man2/munlockall.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=munlockall&sektion=2 /// [NetBSD]: https://man.netbsd.org/munlockall.2 diff --git a/src/mm/msync.rs b/src/mm/msync.rs index c61d7c379..551d8ad20 100644 --- a/src/mm/msync.rs +++ b/src/mm/msync.rs @@ -31,7 +31,7 @@ pub use backend::mm::types::MsyncFlags; /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/msync.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/msync.html /// [Linux]: https://man7.org/linux/man-pages/man2/msync.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/msync.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=msync&sektion=2 diff --git a/src/net/send_recv/mod.rs b/src/net/send_recv/mod.rs index cf7b7fda2..851b36768 100644 --- a/src/net/send_recv/mod.rs +++ b/src/net/send_recv/mod.rs @@ -52,7 +52,7 @@ pub use msg::*; /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#sendrecv -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/recv.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/recv.html /// [Linux]: https://man7.org/linux/man-pages/man2/recv.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/recv.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-recv @@ -108,7 +108,7 @@ pub fn recv_uninit( /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#sendrecv -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/send.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/send.html /// [Linux]: https://man7.org/linux/man-pages/man2/send.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/send.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-send @@ -143,7 +143,7 @@ pub fn send(fd: Fd, buf: &[u8], flags: SendFlags) -> io::Result /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#sendtorecv -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/recvfrom.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/recvfrom.html /// [Linux]: https://man7.org/linux/man-pages/man2/recvfrom.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/recvfrom.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-recvfrom @@ -212,7 +212,7 @@ pub fn recvfrom_uninit( /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#sendtorecv -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendto.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/sendto.html /// [Linux]: https://man7.org/linux/man-pages/man2/sendto.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendto.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-sendto @@ -260,7 +260,7 @@ fn _sendto( /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#sendtorecv -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendto.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/sendto.html /// [Linux]: https://man7.org/linux/man-pages/man2/sendto.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendto.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-sendto @@ -312,7 +312,7 @@ fn _sendto_any( /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#sendtorecv -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendto.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/sendto.html /// [Linux]: https://man7.org/linux/man-pages/man2/sendto.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendto.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-sendto @@ -350,7 +350,7 @@ pub fn sendto_v4( /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#sendtorecv -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendto.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/sendto.html /// [Linux]: https://man7.org/linux/man-pages/man2/sendto.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendto.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-sendto @@ -388,7 +388,7 @@ pub fn sendto_v6( /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#sendtorecv -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendto.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/sendto.html /// [Linux]: https://man7.org/linux/man-pages/man2/sendto.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendto.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-sendto diff --git a/src/net/send_recv/msg.rs b/src/net/send_recv/msg.rs index 646018ed8..794485d9f 100644 --- a/src/net/send_recv/msg.rs +++ b/src/net/send_recv/msg.rs @@ -603,7 +603,7 @@ impl FusedIterator for AncillaryDrain<'_> {} /// - [DragonFly BSD] /// - [illumos] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendmsg.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/sendmsg.html /// [Linux]: https://man7.org/linux/man-pages/man2/sendmsg.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendmsg.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=sendmsg&sektion=2 @@ -633,7 +633,7 @@ pub fn sendmsg( /// - [DragonFly BSD] /// - [illumos] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendmsg.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/sendmsg.html /// [Linux]: https://man7.org/linux/man-pages/man2/sendmsg.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendmsg.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=sendmsg&sektion=2 @@ -664,7 +664,7 @@ pub fn sendmsg_v4( /// - [DragonFly BSD] /// - [illumos] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendmsg.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/sendmsg.html /// [Linux]: https://man7.org/linux/man-pages/man2/sendmsg.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendmsg.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=sendmsg&sektion=2 @@ -696,7 +696,7 @@ pub fn sendmsg_v6( /// - [DragonFly BSD] /// - [illumos] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendmsg.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/sendmsg.html /// [Linux]: https://man7.org/linux/man-pages/man2/sendmsg.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendmsg.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=sendmsg&sektion=2 @@ -746,7 +746,7 @@ pub fn sendmsg_xdp( /// - [DragonFly BSD] /// - [illumos] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendmsg.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/sendmsg.html /// [Linux]: https://man7.org/linux/man-pages/man2/sendmsg.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendmsg.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=sendmsg&sektion=2 @@ -793,7 +793,7 @@ pub fn sendmsg_any( /// - [DragonFly BSD] /// - [illumos] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/recvmsg.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/recvmsg.html /// [Linux]: https://man7.org/linux/man-pages/man2/recvmsg.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/recvmsg.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=recvmsg&sektion=2 diff --git a/src/net/socket.rs b/src/net/socket.rs index ac40b2672..9f254f21a 100644 --- a/src/net/socket.rs +++ b/src/net/socket.rs @@ -32,7 +32,7 @@ pub use backend::net::addr::SocketAddrUnix; /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#socket -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/socket.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/socket.html /// [Linux]: https://man7.org/linux/man-pages/man2/socket.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/socket.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-socket @@ -75,7 +75,7 @@ pub fn socket( /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#socket -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/socket.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/socket.html /// [Linux]: https://man7.org/linux/man-pages/man2/socket.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/socket.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-socket @@ -112,7 +112,7 @@ pub fn socket_with( /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#bind -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/bind.html /// [Linux]: https://man7.org/linux/man-pages/man2/bind.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/bind.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-bind @@ -149,7 +149,7 @@ fn _bind(sockfd: BorrowedFd<'_>, addr: &SocketAddr) -> io::Result<()> { /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#bind -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/bind.html /// [Linux]: https://man7.org/linux/man-pages/man2/bind.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/bind.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-bind @@ -192,7 +192,7 @@ fn _bind_any(sockfd: BorrowedFd<'_>, addr: &SocketAddrAny) -> io::Result<()> { /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#bind -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/bind.html /// [Linux]: https://man7.org/linux/man-pages/man2/bind.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/bind.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-bind @@ -225,7 +225,7 @@ pub fn bind_v4(sockfd: Fd, addr: &SocketAddrV4) -> io::Result<()> { /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#bind -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/bind.html /// [Linux]: https://man7.org/linux/man-pages/man2/bind.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/bind.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-bind @@ -258,7 +258,7 @@ pub fn bind_v6(sockfd: Fd, addr: &SocketAddrV6) -> io::Result<()> { /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#bind -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/bind.html /// [Linux]: https://man7.org/linux/man-pages/man2/bind.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/bind.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-bind @@ -309,7 +309,7 @@ pub fn bind_xdp(sockfd: Fd, addr: &SocketAddrXdp) -> io::Result<()> { /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#connect -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/connect.html /// [Linux]: https://man7.org/linux/man-pages/man2/connect.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/connect.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-connect @@ -347,7 +347,7 @@ fn _connect(sockfd: BorrowedFd<'_>, addr: &SocketAddr) -> io::Result<()> { /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#connect -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/connect.html /// [Linux]: https://man7.org/linux/man-pages/man2/connect.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/connect.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-connect @@ -390,7 +390,7 @@ fn _connect_any(sockfd: BorrowedFd<'_>, addr: &SocketAddrAny) -> io::Result<()> /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#connect -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/connect.html /// [Linux]: https://man7.org/linux/man-pages/man2/connect.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/connect.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-connect @@ -423,7 +423,7 @@ pub fn connect_v4(sockfd: Fd, addr: &SocketAddrV4) -> io::Result<()> { /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#connect -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/connect.html /// [Linux]: https://man7.org/linux/man-pages/man2/connect.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/connect.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-connect @@ -456,7 +456,7 @@ pub fn connect_v6(sockfd: Fd, addr: &SocketAddrV6) -> io::Result<()> { /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#connect -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/connect.html /// [Linux]: https://man7.org/linux/man-pages/man2/connect.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/connect.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-connect @@ -493,7 +493,7 @@ pub fn connect_unix(sockfd: Fd, addr: &SocketAddrUnix) -> io::Result<( /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#connect -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/connect.html /// [Linux]: https://man7.org/linux/man-pages/man2/connect.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/connect.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-connect @@ -527,7 +527,7 @@ pub fn connect_unspec(sockfd: Fd) -> io::Result<()> { /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#listen -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/listen.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/listen.html /// [Linux]: https://man7.org/linux/man-pages/man2/listen.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/listen.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-listen @@ -564,7 +564,7 @@ pub fn listen(sockfd: Fd, backlog: i32) -> io::Result<()> { /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#acceptthank-you-for-calling-port-3490. -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/accept.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/accept.html /// [Linux]: https://man7.org/linux/man-pages/man2/accept.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/accept.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-accept @@ -630,7 +630,7 @@ pub fn accept_with(sockfd: Fd, flags: SocketFlags) -> io::Result( /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#close-and-shutdownget-outta-my-face -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/shutdown.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/shutdown.html /// [Linux]: https://man7.org/linux/man-pages/man2/shutdown.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/shutdown.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-shutdown @@ -722,7 +722,7 @@ pub fn shutdown(sockfd: Fd, how: Shutdown) -> io::Result<()> { /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockname.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getsockname.html /// [Linux]: https://man7.org/linux/man-pages/man2/getsockname.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getsockname.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockname @@ -754,7 +754,7 @@ pub fn getsockname(sockfd: Fd) -> io::Result { /// - [glibc] /// /// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#getpeernamewho-are-you -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpeername.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getpeername.html /// [Linux]: https://man7.org/linux/man-pages/man2/getpeername.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getpeername.2.html /// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getpeername diff --git a/src/net/socketpair.rs b/src/net/socketpair.rs index 7228e716b..b8b2b6220 100644 --- a/src/net/socketpair.rs +++ b/src/net/socketpair.rs @@ -16,7 +16,7 @@ use crate::{backend, io}; /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/socketpair.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/socketpair.html /// [Linux]: https://man7.org/linux/man-pages/man2/socketpair.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/socketpair.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=socketpair&sektion=2 diff --git a/src/net/sockopt.rs b/src/net/sockopt.rs index 1ed3ce594..68143c9be 100644 --- a/src/net/sockopt.rs +++ b/src/net/sockopt.rs @@ -16,7 +16,7 @@ //! - [illumos `getsockopt`] //! - [glibc `getsockopt`] //! -//! [POSIX `getsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html +//! [POSIX `getsockopt`]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getsockopt.html //! [Linux `getsockopt`]: https://man7.org/linux/man-pages/man2/getsockopt.2.html //! [Winsock `getsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-getsockopt //! [Apple `getsockopt`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getsockopt.2.html @@ -40,7 +40,7 @@ //! - [illumos `setsockopt`] //! - [glibc `setsockopt`] //! -//! [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html +//! [POSIX `setsockopt`]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/setsockopt.html //! [Linux `setsockopt`]: https://man7.org/linux/man-pages/man2/setsockopt.2.html //! [Winsock `setsockopt`]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-setsockopt //! [Apple `setsockopt`]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setsockopt.2.html @@ -60,7 +60,7 @@ //! - [Winsock `SOL_SOCKET` options] //! - [glibc `SOL_SOCKET` Options] //! -//! [POSIX `sys/socket.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html +//! [POSIX `sys/socket.h`]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_socket.h.html //! [Linux `socket`]: https://man7.org/linux/man-pages/man7/socket.7.html //! [Winsock `SOL_SOCKET` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/sol-socket-socket-options //! [glibc `SOL_SOCKET` options]: https://www.gnu.org/software/libc/manual/html_node/Socket_002dLevel-Options.html @@ -79,7 +79,7 @@ //! - [DragonFly BSD `ip`] //! - [illumos `ip`] //! -//! [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html +//! [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/netinet_in.h.html //! [Linux `ip`]: https://man7.org/linux/man-pages/man7/ip.7.html //! [Winsock `IPPROTO_IP` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ip-socket-options //! [Apple `ip`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/ip.4.auto.html @@ -103,7 +103,7 @@ //! - [DragonFly BSD `ip6`] //! - [illumos `ip6`] //! -//! [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html +//! [POSIX `netinet/in.h`]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/netinet_in.h.html //! [Linux `ipv6`]: https://man7.org/linux/man-pages/man7/ipv6.7.html //! [Winsock `IPPROTO_IPV6` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-ipv6-socket-options //! [Apple `ip6`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/ip6.4.auto.html @@ -127,7 +127,7 @@ //! - [DragonFly BSD `tcp`] //! - [illumos `tcp`] //! -//! [POSIX `netinet/tcp.h`]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_tcp.h.html +//! [POSIX `netinet/tcp.h`]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/netinet_tcp.h.html //! [Linux `tcp`]: https://man7.org/linux/man-pages/man7/tcp.7.html //! [Winsock `IPPROTO_TCP` options]: https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-tcp-socket-options //! [Apple `tcp`]: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man4/tcp.4.auto.html @@ -1474,11 +1474,16 @@ pub fn get_xdp_options(fd: Fd) -> io::Result { backend::net::sockopt::get_xdp_options(fd.as_fd()) } -#[test] -fn test_sizes() { - use c::c_int; +#[cfg(test)] +mod tests { + use super::*; - // Backend code needs to cast these to `c_int` so make sure that cast - // isn't lossy. - assert_eq_size!(Timeout, c_int); + #[test] + fn test_sizes() { + use c::c_int; + + // Backend code needs to cast these to `c_int` so make sure that cast + // isn't lossy. + assert_eq_size!(Timeout, c_int); + } } diff --git a/src/param/auxv.rs b/src/param/auxv.rs index 1a25ead47..a88829122 100644 --- a/src/param/auxv.rs +++ b/src/param/auxv.rs @@ -17,7 +17,7 @@ use crate::ffi::CStr; /// - [Linux `sysconf`] /// - [Linux `getpagesize`] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sysconf.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/sysconf.html /// [Linux `sysconf`]: https://man7.org/linux/man-pages/man3/sysconf.3.html /// [Linux `getpagesize`]: https://man7.org/linux/man-pages/man2/getpagesize.2.html #[inline] @@ -34,7 +34,7 @@ pub fn page_size() -> usize { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sysconf.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/sysconf.html /// [Linux]: https://man7.org/linux/man-pages/man3/sysconf.3.html #[cfg(not(any(target_os = "vita", target_os = "wasi")))] #[inline] diff --git a/src/pipe.rs b/src/pipe.rs index b0a978385..2e714c763 100644 --- a/src/pipe.rs +++ b/src/pipe.rs @@ -34,7 +34,7 @@ pub use backend::pipe::types::{IoSliceRaw, SpliceFlags}; /// - [POSIX] /// /// [Linux]: https://man7.org/linux/man-pages/man7/pipe.7.html -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/write.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/write.html #[cfg(not(any( solarish, windows, @@ -63,7 +63,7 @@ pub const PIPE_BUF: usize = c::PIPE_BUF; /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/pipe.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/pipe.html /// [Linux]: https://man7.org/linux/man-pages/man2/pipe.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/pipe.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=pipe&sektion=2 diff --git a/src/process/chdir.rs b/src/process/chdir.rs index 64e06e41e..d38a33fda 100644 --- a/src/process/chdir.rs +++ b/src/process/chdir.rs @@ -17,7 +17,7 @@ use { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/chdir.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/chdir.html /// [Linux]: https://man7.org/linux/man-pages/man2/chdir.2.html #[inline] #[cfg(feature = "fs")] @@ -32,7 +32,7 @@ pub fn chdir(path: P) -> io::Result<()> { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fchdir.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fchdir.html /// [Linux]: https://man7.org/linux/man-pages/man2/fchdir.2.html #[cfg(not(target_os = "fuchsia"))] #[inline] @@ -48,7 +48,7 @@ pub fn fchdir(fd: Fd) -> io::Result<()> { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getcwd.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getcwd.html /// [Linux]: https://man7.org/linux/man-pages/man3/getcwd.3.html #[cfg(all(feature = "alloc", feature = "fs"))] #[cfg(not(target_os = "wasi"))] @@ -80,7 +80,7 @@ fn _getcwd(mut buffer: Vec) -> io::Result { // Thus, there will be a single NUL byte at the end of the // string. // - // [POSIX definition 3.375: String]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_375 + // [POSIX definition 3.375: String]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_375 unsafe { buffer.set_len( CStr::from_ptr(buffer.as_ptr().cast()) diff --git a/src/process/exit.rs b/src/process/exit.rs index 95b78c4a1..f48d5e9b2 100644 --- a/src/process/exit.rs +++ b/src/process/exit.rs @@ -8,7 +8,7 @@ use crate::backend; /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdlib.h.html /// [Linux]: https://man7.org/linux/man-pages/man3/exit.3.html pub const EXIT_SUCCESS: i32 = backend::c::EXIT_SUCCESS; @@ -20,7 +20,7 @@ pub const EXIT_SUCCESS: i32 = backend::c::EXIT_SUCCESS; /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdlib.h.html /// [Linux]: https://man7.org/linux/man-pages/man3/exit.3.html pub const EXIT_FAILURE: i32 = backend::c::EXIT_FAILURE; diff --git a/src/process/id.rs b/src/process/id.rs index 131d5e6db..0df14a8c4 100644 --- a/src/process/id.rs +++ b/src/process/id.rs @@ -47,7 +47,7 @@ impl Cpuid { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getuid.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getuid.html /// [Linux]: https://man7.org/linux/man-pages/man2/getuid.2.html #[inline] #[must_use] @@ -61,7 +61,7 @@ pub fn getuid() -> Uid { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/geteuid.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/geteuid.html /// [Linux]: https://man7.org/linux/man-pages/man2/geteuid.2.html #[inline] #[must_use] @@ -75,7 +75,7 @@ pub fn geteuid() -> Uid { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getgid.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getgid.html /// [Linux]: https://man7.org/linux/man-pages/man2/getgid.2.html #[inline] #[must_use] @@ -89,7 +89,7 @@ pub fn getgid() -> Gid { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getegid.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getegid.html /// [Linux]: https://man7.org/linux/man-pages/man2/getegid.2.html #[inline] #[must_use] @@ -103,7 +103,7 @@ pub fn getegid() -> Gid { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpid.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getpid.html /// [Linux]: https://man7.org/linux/man-pages/man2/getpid.2.html #[inline] #[must_use] @@ -117,7 +117,7 @@ pub fn getpid() -> Pid { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getppid.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getppid.html /// [Linux]: https://man7.org/linux/man-pages/man2/getppid.2.html #[inline] #[must_use] @@ -131,7 +131,7 @@ pub fn getppid() -> Option { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpgid.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getpgid.html /// [Linux]: https://man7.org/linux/man-pages/man2/getpgid.2.html #[inline] pub fn getpgid(pid: Option) -> io::Result { @@ -144,7 +144,7 @@ pub fn getpgid(pid: Option) -> io::Result { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setpgid.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/setpgid.html /// [Linux]: https://man7.org/linux/man-pages/man2/setpgid.2.html #[inline] pub fn setpgid(pid: Option, pgid: Option) -> io::Result<()> { @@ -157,7 +157,7 @@ pub fn setpgid(pid: Option, pgid: Option) -> io::Result<()> { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpgrp.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getpgrp.html /// [Linux]: https://man7.org/linux/man-pages/man2/getpgrp.2.html #[inline] #[must_use] @@ -171,7 +171,7 @@ pub fn getpgrp() -> Pid { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsid.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getsid.html /// [Linux]: https://man7.org/linux/man-pages/man2/getsid.2.html #[cfg(not(target_os = "redox"))] #[inline] @@ -185,7 +185,7 @@ pub fn getsid(pid: Option) -> io::Result { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsid.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/setsid.html /// [Linux]: https://man7.org/linux/man-pages/man2/setsid.2.html #[inline] pub fn setsid() -> io::Result { @@ -198,7 +198,7 @@ pub fn setsid() -> io::Result { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getgroups.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getgroups.html /// [Linux]: https://man7.org/linux/man-pages/man2/getgroups.2.html #[cfg(feature = "alloc")] pub fn getgroups() -> io::Result> { diff --git a/src/process/kill.rs b/src/process/kill.rs index 01d5380f8..2adfbbe37 100644 --- a/src/process/kill.rs +++ b/src/process/kill.rs @@ -9,7 +9,7 @@ pub use crate::signal::Signal; /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/kill.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/kill.html /// [Linux]: https://man7.org/linux/man-pages/man2/kill.2.html #[inline] #[doc(alias = "kill")] @@ -27,7 +27,7 @@ pub fn kill_process(pid: Pid, sig: Signal) -> io::Result<()> { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/kill.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/kill.html /// [Linux]: https://man7.org/linux/man-pages/man2/kill.2.html #[inline] #[doc(alias = "kill")] @@ -42,7 +42,7 @@ pub fn kill_process_group(pid: Pid, sig: Signal) -> io::Result<()> { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/kill.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/kill.html /// [Linux]: https://man7.org/linux/man-pages/man2/kill.2.html #[inline] #[doc(alias = "kill")] @@ -57,7 +57,7 @@ pub fn kill_current_process_group(sig: Signal) -> io::Result<()> { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/kill.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/kill.html /// [Linux]: https://man7.org/linux/man-pages/man2/kill.2.html #[inline] #[doc(alias = "kill")] @@ -72,7 +72,7 @@ pub fn test_kill_process(pid: Pid) -> io::Result<()> { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/kill.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/kill.html /// [Linux]: https://man7.org/linux/man-pages/man2/kill.2.html #[inline] #[doc(alias = "kill")] @@ -88,7 +88,7 @@ pub fn test_kill_process_group(pid: Pid) -> io::Result<()> { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/kill.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/kill.html /// [Linux]: https://man7.org/linux/man-pages/man2/kill.2.html #[inline] #[doc(alias = "kill")] diff --git a/src/process/priority.rs b/src/process/priority.rs index 7c2928408..44ea66150 100644 --- a/src/process/priority.rs +++ b/src/process/priority.rs @@ -8,7 +8,7 @@ use crate::{backend, io}; /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/nice.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/nice.html /// [Linux]: https://man7.org/linux/man-pages/man2/nice.2.html #[inline] pub fn nice(inc: i32) -> io::Result { @@ -23,7 +23,7 @@ pub fn nice(inc: i32) -> io::Result { /// - [Linux] /// - [Apple] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpriority.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getpriority.html /// [Linux]: https://man7.org/linux/man-pages/man2/getpriority.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setpriority.2.html #[cfg(not(target_os = "espidf"))] @@ -43,7 +43,7 @@ pub fn getpriority_user(uid: Uid) -> io::Result { /// - [Linux] /// - [Apple] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpriority.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getpriority.html /// [Linux]: https://man7.org/linux/man-pages/man2/getpriority.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setpriority.2.html #[cfg(not(target_os = "espidf"))] @@ -63,7 +63,7 @@ pub fn getpriority_pgrp(pgid: Option) -> io::Result { /// - [Linux] /// - [Apple] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpriority.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getpriority.html /// [Linux]: https://man7.org/linux/man-pages/man2/getpriority.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setpriority.2.html #[cfg(not(target_os = "espidf"))] @@ -81,7 +81,7 @@ pub fn getpriority_process(pid: Option) -> io::Result { /// - [Linux] /// - [Apple] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setpriority.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/setpriority.html /// [Linux]: https://man7.org/linux/man-pages/man2/setpriority.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setpriority.2.html #[cfg(not(target_os = "espidf"))] @@ -101,7 +101,7 @@ pub fn setpriority_user(uid: Uid, priority: i32) -> io::Result<()> { /// - [Linux] /// - [Apple] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setpriority.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/setpriority.html /// [Linux]: https://man7.org/linux/man-pages/man2/setpriority.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setpriority.2.html #[cfg(not(target_os = "espidf"))] @@ -121,7 +121,7 @@ pub fn setpriority_pgrp(pgid: Option, priority: i32) -> io::Result<()> { /// - [Linux] /// - [Apple] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setpriority.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/setpriority.html /// [Linux]: https://man7.org/linux/man-pages/man2/setpriority.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setpriority.2.html #[cfg(not(target_os = "espidf"))] diff --git a/src/process/rlimit.rs b/src/process/rlimit.rs index 2890449a5..124ca51af 100644 --- a/src/process/rlimit.rs +++ b/src/process/rlimit.rs @@ -20,7 +20,7 @@ pub struct Rlimit { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getrlimit.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getrlimit.html /// [Linux]: https://man7.org/linux/man-pages/man2/getrlimit.2.html #[inline] pub fn getrlimit(resource: Resource) -> Rlimit { @@ -33,7 +33,7 @@ pub fn getrlimit(resource: Resource) -> Rlimit { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setrlimit.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/setrlimit.html /// [Linux]: https://man7.org/linux/man-pages/man2/setrlimit.2.html #[inline] pub fn setrlimit(resource: Resource, new: Rlimit) -> io::Result<()> { diff --git a/src/process/sched_yield.rs b/src/process/sched_yield.rs index 0324f67cb..97b1d99a2 100644 --- a/src/process/sched_yield.rs +++ b/src/process/sched_yield.rs @@ -8,7 +8,7 @@ use crate::backend; /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sched_yield.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/sched_yield.html /// [Linux]: https://man7.org/linux/man-pages/man2/sched_yield.2.html #[inline] pub fn sched_yield() { diff --git a/src/process/umask.rs b/src/process/umask.rs index c8655faef..16bd550a6 100644 --- a/src/process/umask.rs +++ b/src/process/umask.rs @@ -11,7 +11,7 @@ use crate::fs::Mode; /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/umask.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/umask.html /// [Linux]: https://man7.org/linux/man-pages/man2/umask.2.html #[cfg(feature = "fs")] #[cfg_attr(docsrs, doc(cfg(feature = "fs")))] diff --git a/src/process/wait.rs b/src/process/wait.rs index efd3aea55..ab23d2986 100644 --- a/src/process/wait.rs +++ b/src/process/wait.rs @@ -247,7 +247,7 @@ impl WaitidStatus { // SAFETY: POSIX [specifies] that the `siginfo_t` returned by a // `waitid` call always has a valid `si_status` value. // - // [specifies]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html + // [specifies]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html unsafe { self.0.si_status() } } } @@ -306,7 +306,7 @@ pub enum WaitId<'a> { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/wait.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/wait.html /// [Linux]: https://man7.org/linux/man-pages/man2/waitpid.2.html #[cfg(not(target_os = "wasi"))] #[inline] @@ -328,7 +328,7 @@ pub fn waitpid(pid: Option, waitopts: WaitOptions) -> io::Result io::Result for OFlags { /// - [OpenBSD] /// - [illumos] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_openpt.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/posix_openpt.html /// [Linux]: https://man7.org/linux/man-pages/man3/posix_openpt.3.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/posix_openpt.3.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=posix_openpt&sektion=2 @@ -110,7 +110,7 @@ pub fn openpt(flags: OpenptFlags) -> io::Result { /// - [Linux] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/ptsname.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/ptsname.html /// [Linux]: https://man7.org/linux/man-pages/man3/ptsname.3.html /// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Allocation.html#index-ptsname #[cfg(all( @@ -130,7 +130,7 @@ pub fn ptsname>>(fd: Fd, reuse: B) -> io::Result(fd: Fd) -> io::Result<()> { /// - [Linux] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/grantpt.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/grantpt.html /// [Linux]: https://man7.org/linux/man-pages/man3/grantpt.3.html /// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Allocation.html#index-grantpt /// [`Signal::Child`]: crate::process::Signal::Child diff --git a/src/runtime.rs b/src/runtime.rs index bfdc78b61..eab7c1d0e 100644 --- a/src/runtime.rs +++ b/src/runtime.rs @@ -148,7 +148,7 @@ pub unsafe fn exit_thread(status: i32) -> ! { /// - [Linux `exit_group`] /// - [Linux `_Exit`] /// -/// [POSIX `_Exit`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/_Exit.html +/// [POSIX `_Exit`]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/_Exit.html /// [Linux `exit_group`]: https://man7.org/linux/man-pages/man2/exit_group.2.html /// [Linux `_Exit`]: https://man7.org/linux/man-pages/man2/_Exit.2.html #[doc(alias = "_exit")] @@ -164,7 +164,7 @@ pub fn exit_group(status: i32) -> ! { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdlib.h.html /// [Linux]: https://man7.org/linux/man-pages/man3/exit.3.html pub const EXIT_SUCCESS: i32 = backend::c::EXIT_SUCCESS; @@ -174,7 +174,7 @@ pub const EXIT_SUCCESS: i32 = backend::c::EXIT_SUCCESS; /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdlib.h.html /// [Linux]: https://man7.org/linux/man-pages/man3/exit.3.html pub const EXIT_FAILURE: i32 = backend::c::EXIT_FAILURE; @@ -315,12 +315,12 @@ pub use backend::runtime::tls::StartupTlsInfo; /// /// — “Rules”, by Karla Kuskin /// -/// [`MAP_SHARED`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mmap.html +/// [`MAP_SHARED`]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/mmap.html /// [not considered unsafe]: https://doc.rust-lang.org/reference/behavior-not-considered-unsafe.html#deadlocks /// [`memfd_create`]: https://man7.org/linux/man-pages/man2/memfd_create.2.html -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fork.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fork.html /// [Linux]: https://man7.org/linux/man-pages/man2/fork.2.html -/// [async-signal-safe]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_04_03 +/// [async-signal-safe]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/V2_chap02.html#tag_15_04_03 pub unsafe fn fork() -> io::Result { backend::runtime::syscalls::fork() } @@ -392,7 +392,7 @@ pub unsafe fn execve(path: &CStr, argv: *const *const u8, envp: *const *const u8 /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigaction.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/sigaction.html /// [Linux]: https://man7.org/linux/man-pages/man2/sigaction.2.html #[inline] pub unsafe fn sigaction(signal: Signal, new: Option) -> io::Result { @@ -410,7 +410,7 @@ pub unsafe fn sigaction(signal: Signal, new: Option) -> io::Result) -> io::Result { diff --git a/src/shm.rs b/src/shm.rs index 1904dc4f9..ef7b937f7 100644 --- a/src/shm.rs +++ b/src/shm.rs @@ -82,7 +82,7 @@ pub use unlink as shm_unlink; /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/shm_open.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/shm_open.html /// [Linux]: https://man7.org/linux/man-pages/man3/shm_open.3.html #[doc(alias = "shm_open")] #[inline] @@ -96,7 +96,7 @@ pub fn open(name: P, flags: shm::OFlags, mode: Mode) -> io::Result /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/shm_unlink.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/shm_unlink.html /// [Linux]: https://man7.org/linux/man-pages/man3/shm_unlink.3.html #[doc(alias = "shm_unlink")] #[inline] diff --git a/src/stdio.rs b/src/stdio.rs index 528c6cf0f..4d6ce2daa 100644 --- a/src/stdio.rs +++ b/src/stdio.rs @@ -42,7 +42,7 @@ use { /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stdin.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stdin.html /// [Linux]: https://man7.org/linux/man-pages/man3/stdin.3.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdin&sektion=4 /// [NetBSD]: https://man.netbsd.org/stdin.4 @@ -88,7 +88,7 @@ pub const fn stdin() -> BorrowedFd<'static> { /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stdin.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stdin.html /// [Linux]: https://man7.org/linux/man-pages/man3/stdin.3.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdin&sektion=4 /// [NetBSD]: https://man.netbsd.org/stdin.4 @@ -128,7 +128,7 @@ pub const unsafe fn stdin() -> BorrowedFd<'static> { /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stdin.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stdin.html /// [Linux]: https://man7.org/linux/man-pages/man3/stdin.3.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdin&sektion=4 /// [NetBSD]: https://man.netbsd.org/stdin.4 @@ -164,7 +164,7 @@ pub unsafe fn take_stdin() -> OwnedFd { /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stdout.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stdout.html /// [Linux]: https://man7.org/linux/man-pages/man3/stdout.3.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdout&sektion=4 /// [NetBSD]: https://man.netbsd.org/stdout.4 @@ -210,7 +210,7 @@ pub const fn stdout() -> BorrowedFd<'static> { /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stdout.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stdout.html /// [Linux]: https://man7.org/linux/man-pages/man3/stdout.3.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdout&sektion=4 /// [NetBSD]: https://man.netbsd.org/stdout.4 @@ -250,7 +250,7 @@ pub const unsafe fn stdout() -> BorrowedFd<'static> { /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stdout.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stdout.html /// [Linux]: https://man7.org/linux/man-pages/man3/stdout.3.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdout&sektion=4 /// [NetBSD]: https://man.netbsd.org/stdout.4 @@ -280,7 +280,7 @@ pub unsafe fn take_stdout() -> OwnedFd { /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stderr.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stderr.html /// [Linux]: https://man7.org/linux/man-pages/man3/stderr.3.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stderr&sektion=4 /// [NetBSD]: https://man.netbsd.org/stderr.4 @@ -320,7 +320,7 @@ pub const fn stderr() -> BorrowedFd<'static> { /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stderr.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stderr.html /// [Linux]: https://man7.org/linux/man-pages/man3/stderr.3.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stderr&sektion=4 /// [NetBSD]: https://man.netbsd.org/stderr.4 @@ -365,7 +365,7 @@ pub const unsafe fn stderr() -> BorrowedFd<'static> { /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stderr.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stderr.html /// [Linux]: https://man7.org/linux/man-pages/man3/stderr.3.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stderr&sektion=4 /// [NetBSD]: https://man.netbsd.org/stderr.4 @@ -397,7 +397,7 @@ pub unsafe fn take_stderr() -> OwnedFd { /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stdin.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stdin.html /// [Linux]: https://man7.org/linux/man-pages/man3/stdin.3.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdin&sektion=4 /// [NetBSD]: https://man.netbsd.org/stdin.4 @@ -429,7 +429,7 @@ pub const fn raw_stdin() -> RawFd { /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stdout.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stdout.html /// [Linux]: https://man7.org/linux/man-pages/man3/stdout.3.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdout&sektion=4 /// [NetBSD]: https://man.netbsd.org/stdout.4 @@ -461,7 +461,7 @@ pub const fn raw_stdout() -> RawFd { /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/stderr.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stderr.html /// [Linux]: https://man7.org/linux/man-pages/man3/stderr.3.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stderr&sektion=4 /// [NetBSD]: https://man.netbsd.org/stderr.4 diff --git a/src/system.rs b/src/system.rs index 891ff6090..54bee3e3e 100644 --- a/src/system.rs +++ b/src/system.rs @@ -38,7 +38,7 @@ use c::c_int; /// - [illumos] /// - [glibc] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/uname.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/uname.html /// [Linux]: https://man7.org/linux/man-pages/man2/uname.2.html /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/uname.3.html /// [NetBSD]: https://man.netbsd.org/uname.3 diff --git a/src/termios/tc.rs b/src/termios/tc.rs index 2ef171f2a..928691e7c 100644 --- a/src/termios/tc.rs +++ b/src/termios/tc.rs @@ -19,7 +19,7 @@ pub use crate::pid::Pid; /// - [Linux `ioctl_tty`] /// - [Linux `termios`] /// -/// [POSIX `tcgetattr`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcgetattr.html +/// [POSIX `tcgetattr`]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/tcgetattr.html /// [Linux `ioctl_tty`]: https://man7.org/linux/man-pages/man4/tty_ioctl.4.html /// [Linux `termios`]: https://man7.org/linux/man-pages/man3/termios.3.html #[cfg(not(any(windows, target_os = "espidf", target_os = "wasi")))] @@ -59,7 +59,7 @@ pub fn tcgetwinsize(fd: Fd) -> io::Result { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcgetpgrp.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/tcgetpgrp.html /// [Linux]: https://man7.org/linux/man-pages/man3/tcgetpgrp.3.html #[cfg(not(any(windows, target_os = "wasi")))] #[inline] @@ -76,7 +76,7 @@ pub fn tcgetpgrp(fd: Fd) -> io::Result { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcsetpgrp.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/tcsetpgrp.html /// [Linux]: https://man7.org/linux/man-pages/man3/tcsetpgrp.3.html #[cfg(not(any(windows, target_os = "wasi")))] #[inline] @@ -98,7 +98,7 @@ pub fn tcsetpgrp(fd: Fd, pid: Pid) -> io::Result<()> { /// - [Linux `ioctl_tty`] /// - [Linux `termios`] /// -/// [POSIX `tcsetattr`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcsetattr.html +/// [POSIX `tcsetattr`]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/tcsetattr.html /// [Linux `ioctl_tty`]: https://man7.org/linux/man-pages/man4/tty_ioctl.4.html /// [Linux `termios`]: https://man7.org/linux/man-pages/man3/termios.3.html #[cfg(not(target_os = "espidf"))] @@ -129,7 +129,7 @@ pub fn tcsetattr( /// - [Linux `ioctl_tty`] /// - [Linux `termios`] /// -/// [POSIX `tcsendbreak`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcsendbreak.html +/// [POSIX `tcsendbreak`]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/tcsendbreak.html /// [Linux `ioctl_tty`]: https://man7.org/linux/man-pages/man4/tty_ioctl.4.html /// [Linux `termios`]: https://man7.org/linux/man-pages/man3/termios.3.html #[inline] @@ -145,7 +145,7 @@ pub fn tcsendbreak(fd: Fd) -> io::Result<()> { /// - [Linux `ioctl_tty`] /// - [Linux `termios`] /// -/// [POSIX `tcsetattr`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcdrain.html +/// [POSIX `tcsetattr`]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/tcdrain.html /// [Linux `ioctl_tty`]: https://man7.org/linux/man-pages/man4/tty_ioctl.4.html /// [Linux `termios`]: https://man7.org/linux/man-pages/man3/termios.3.html #[cfg(not(target_os = "espidf"))] @@ -162,7 +162,7 @@ pub fn tcdrain(fd: Fd) -> io::Result<()> { /// - [Linux `ioctl_tty`] /// - [Linux `termios`] /// -/// [POSIX `tcflush`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcflush.html +/// [POSIX `tcflush`]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/tcflush.html /// [Linux `ioctl_tty`]: https://man7.org/linux/man-pages/man4/tty_ioctl.4.html /// [Linux `termios`]: https://man7.org/linux/man-pages/man3/termios.3.html #[cfg(not(target_os = "espidf"))] @@ -179,7 +179,7 @@ pub fn tcflush(fd: Fd, queue_selector: QueueSelector) -> io::Result<() /// - [Linux `ioctl_tty`] /// - [Linux `termios`] /// -/// [POSIX `tcflow`]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcflow.html +/// [POSIX `tcflow`]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/tcflow.html /// [Linux `ioctl_tty`]: https://man7.org/linux/man-pages/man4/tty_ioctl.4.html /// [Linux `termios`]: https://man7.org/linux/man-pages/man3/termios.3.html #[cfg(not(target_os = "espidf"))] @@ -196,7 +196,7 @@ pub fn tcflow(fd: Fd, action: Action) -> io::Result<()> { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcgetsid.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/tcgetsid.html /// [Linux]: https://man7.org/linux/man-pages/man3/tcgetsid.3.html #[inline] #[doc(alias = "TIOCGSID")] diff --git a/src/termios/tty.rs b/src/termios/tty.rs index 7d54e60f7..830df0153 100644 --- a/src/termios/tty.rs +++ b/src/termios/tty.rs @@ -15,7 +15,7 @@ use { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/isatty.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/isatty.html /// [Linux]: https://man7.org/linux/man-pages/man3/isatty.3.html #[inline] pub fn isatty(fd: Fd) -> bool { @@ -30,7 +30,7 @@ pub fn isatty(fd: Fd) -> bool { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/ttyname.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/ttyname.html /// [Linux]: https://man7.org/linux/man-pages/man3/ttyname.3.html #[cfg(not(any(target_os = "fuchsia", target_os = "wasi")))] #[cfg(all(feature = "alloc", feature = "procfs"))] @@ -72,8 +72,8 @@ fn _ttyname(dirfd: BorrowedFd<'_>, mut buffer: Vec) -> io::Result { // Thus, there will be a single NUL byte at the end of the // string. // - // [POSIX definition 3.271: Pathname]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_271 - // [POSIX definition 3.375: String]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_375 + // [POSIX definition 3.271: Pathname]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_271 + // [POSIX definition 3.375: String]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_375 unsafe { return Ok(CString::from_vec_with_nul_unchecked(buffer)); } diff --git a/src/thread/clock.rs b/src/thread/clock.rs index 2db7d3ab1..8023f5466 100644 --- a/src/thread/clock.rs +++ b/src/thread/clock.rs @@ -25,7 +25,7 @@ pub use crate::clockid::ClockId; /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_nanosleep.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/clock_nanosleep.html /// [Linux]: https://man7.org/linux/man-pages/man2/clock_nanosleep.2.html #[cfg(not(any( apple, @@ -54,7 +54,7 @@ pub fn clock_nanosleep_relative(id: ClockId, request: &Timespec) -> NanosleepRel /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_nanosleep.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/clock_nanosleep.html /// [Linux]: https://man7.org/linux/man-pages/man2/clock_nanosleep.2.html #[cfg(not(any( apple, @@ -81,7 +81,7 @@ pub fn clock_nanosleep_absolute(id: ClockId, request: &Timespec) -> io::Result<( /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/nanosleep.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/nanosleep.html /// [Linux]: https://man7.org/linux/man-pages/man2/nanosleep.2.html #[inline] pub fn nanosleep(request: &Timespec) -> NanosleepRelativeResult { diff --git a/src/thread/id.rs b/src/thread/id.rs index f6b088680..4cb50a0c1 100644 --- a/src/thread/id.rs +++ b/src/thread/id.rs @@ -35,7 +35,7 @@ pub fn gettid() -> Pid { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setuid.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/setuid.html /// [Linux]: https://man7.org/linux/man-pages/man2/setuid.2.html /// [linux_notes]: https://man7.org/linux/man-pages/man2/setuid.2.html#NOTES #[inline] @@ -83,7 +83,7 @@ pub fn set_thread_res_uid(ruid: Uid, euid: Uid, suid: Uid) -> io::Result<()> { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/setgid.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/setgid.html /// [Linux]: https://man7.org/linux/man-pages/man2/setgid.2.html /// [linux_notes]: https://man7.org/linux/man-pages/man2/setgid.2.html#NOTES #[inline] diff --git a/src/time/clock.rs b/src/time/clock.rs index db585d1cc..bdc2b11c8 100644 --- a/src/time/clock.rs +++ b/src/time/clock.rs @@ -17,7 +17,7 @@ pub use crate::clockid::{ClockId, DynamicClockId}; /// - [DragonFly BSD] /// - [illumos] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_getres.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/clock_getres.html /// [Linux]: https://man7.org/linux/man-pages/man2/clock_getres.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=clock_getres&sektion=2 /// [NetBSD]: https://man.netbsd.org/clock_getres.2 @@ -47,7 +47,7 @@ pub fn clock_getres(id: ClockId) -> Timespec { /// - [DragonFly BSD] /// - [illumos] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_gettime.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/clock_gettime.html /// [Linux]: https://man7.org/linux/man-pages/man2/clock_gettime.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=clock_getres&sektion=2 /// [NetBSD]: https://man.netbsd.org/clock_getres.2 @@ -67,7 +67,7 @@ pub fn clock_gettime(id: ClockId) -> Timespec { /// - [POSIX] /// - [Linux] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_gettime.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/clock_gettime.html /// [Linux]: https://man7.org/linux/man-pages/man2/clock_gettime.2.html #[cfg(not(target_os = "wasi"))] #[inline] @@ -90,7 +90,7 @@ pub fn clock_gettime_dynamic(id: DynamicClockId<'_>) -> io::Result { /// - [DragonFly BSD] /// - [illumos] /// -/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_settime.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/clock_settime.html /// [Linux]: https://man7.org/linux/man-pages/man2/clock_settime.2.html /// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=clock_settime&sektion=2 /// [NetBSD]: https://man.netbsd.org/clock_settime.2