Skip to content

Commit de8aff1

Browse files
committed
Fix URL formatting in comments.
1 parent 813ec1f commit de8aff1

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/imp/libc/fs/syscalls.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -865,11 +865,11 @@ pub(crate) fn getpath(fd: BorrowedFd<'_>) -> io::Result<ZString> {
865865
// instead.
866866
let mut buf = vec![0; c::PATH_MAX as usize];
867867

868-
// From the macOS `fcntl` man page:
868+
// From the [macOS `fcntl` man page]:
869869
// `F_GETPATH` - Get the path of the file descriptor `Fildes`. The argument
870870
// must be a buffer of size `MAXPATHLEN` or greater.
871871
//
872-
// https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html
872+
// [macOS `fcntl` man page]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html
873873
unsafe {
874874
ret(c::fcntl(borrowed_fd(fd), c::F_GETPATH, buf.as_mut_ptr()))?;
875875
}
@@ -886,7 +886,7 @@ pub(crate) fn getpath(fd: BorrowedFd<'_>) -> io::Result<ZString> {
886886

887887
#[cfg(any(target_os = "ios", target_os = "macos"))]
888888
pub(crate) fn fcntl_rdadvise(fd: BorrowedFd<'_>, offset: u64, len: u64) -> io::Result<()> {
889-
// From the macOS `fcntl` man page:
889+
// From the [macOS `fcntl` man page]:
890890
// `F_RDADVISE` - Issue an advisory read async with no copy to user.
891891
//
892892
// The `F_RDADVISE` command operates on the following structure which holds
@@ -899,7 +899,7 @@ pub(crate) fn fcntl_rdadvise(fd: BorrowedFd<'_>, offset: u64, len: u64) -> io::R
899899
// };
900900
// ```
901901
//
902-
// https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html
902+
// [macOS `fcntl` man page]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html
903903
let ra_offset = match offset.try_into() {
904904
Ok(len) => len,
905905
// If this conversion fails, the user is providing an offset outside

src/imp/libc/io/syscalls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ pub(crate) fn isatty(fd: BorrowedFd<'_>) -> bool {
378378
c::ENOTTY => false,
379379

380380
// Old Linux versions reportedly return `EINVAL`.
381-
// https://man7.org/linux/man-pages/man3/isatty.3.html#ERRORS
381+
// <https://man7.org/linux/man-pages/man3/isatty.3.html#ERRORS>
382382
#[cfg(any(target_os = "android", target_os = "linux"))]
383383
c::ENOTTY | c::EINVAL => false,
384384

src/imp/linux_raw/fs/syscalls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ pub(crate) fn tell(fd: BorrowedFd<'_>) -> io::Result<u64> {
317317

318318
#[inline]
319319
pub(crate) fn ftruncate(fd: BorrowedFd<'_>, length: u64) -> io::Result<()> {
320-
// https://github.com/torvalds/linux/blob/fcadab740480e0e0e9fa9bd272acd409884d431a/arch/arm64/kernel/sys32.c#L81-L83
320+
// <https://github.com/torvalds/linux/blob/fcadab740480e0e0e9fa9bd272acd409884d431a/arch/arm64/kernel/sys32.c#L81-L83>
321321
#[cfg(all(target_pointer_width = "32", target_arch = "arm"))]
322322
unsafe {
323323
ret(syscall4_readonly(

src/imp/linux_raw/io/syscalls.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pub(crate) fn read(fd: BorrowedFd<'_>, buf: &mut [u8]) -> io::Result<usize> {
8383
pub(crate) fn pread(fd: BorrowedFd<'_>, buf: &mut [u8], pos: u64) -> io::Result<usize> {
8484
let (buf_addr_mut, buf_len) = slice_mut(buf);
8585

86-
// https://github.com/torvalds/linux/blob/fcadab740480e0e0e9fa9bd272acd409884d431a/arch/arm64/kernel/sys32.c#L75
86+
// <https://github.com/torvalds/linux/blob/fcadab740480e0e0e9fa9bd272acd409884d431a/arch/arm64/kernel/sys32.c#L75>
8787
#[cfg(all(target_pointer_width = "32", target_arch = "arm"))]
8888
unsafe {
8989
ret_usize(syscall6(
@@ -213,7 +213,7 @@ pub(crate) fn write(fd: BorrowedFd<'_>, buf: &[u8]) -> io::Result<usize> {
213213
pub(crate) fn pwrite(fd: BorrowedFd<'_>, buf: &[u8], pos: u64) -> io::Result<usize> {
214214
let (buf_addr, buf_len) = slice(buf);
215215

216-
// https://github.com/torvalds/linux/blob/fcadab740480e0e0e9fa9bd272acd409884d431a/arch/arm64/kernel/sys32.c#L81-L83
216+
// <https://github.com/torvalds/linux/blob/fcadab740480e0e0e9fa9bd272acd409884d431a/arch/arm64/kernel/sys32.c#L81-L83>
217217
#[cfg(all(target_pointer_width = "32", target_arch = "arm"))]
218218
unsafe {
219219
ret_usize(syscall6_readonly(

0 commit comments

Comments
 (0)