]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Fix mmap/ioctl(3p) references in manual
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Fri, 7 Apr 2023 14:48:06 +0000 (16:48 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 11 Apr 2023 10:56:13 +0000 (12:56 +0200)
mmap(3p) is passable, inasmuch as it does actually describe mmap(2).

ioctl(3p), on the other hand, describes XSI STREAMS, which bear no
relation to ioctl(2) under Linux, much less ioctl_console(2).

Both live in the non-free manpages-posix-dev.

sys-utils/setarch.8.adoc
term-utils/setterm.1.adoc

index 7c290889bbf2dbbe9377462026d35d24d82a639b..7c64aed7ce929df1a33091b0f98916de9b810271 100644 (file)
@@ -70,10 +70,10 @@ Obsolete bug emulation flag. Turns on *WHOLE_SECONDS*.
 This makes *select*(2), *pselect*(2), and *ppoll*(2) system calls preserve the timeout value instead of modifying it to reflect the amount of time not slept when interrupted by a signal handler. Use when _program_ depends on this behavior. For more details see the timeout description in *select*(2) manual page. Turns on *STICKY_TIMEOUTS*.
 
 *-X*, *--read-implies-exec*::
-If this is set then *mmap*(3p) *PROT_READ* will also add the *PROT_EXEC* bit - as expected by legacy x86 binaries. Notice that the ELF loader will automatically set this bit when it encounters a legacy binary. Turns on *READ_IMPLIES_EXEC*.
+If this is set then *mmap*(2) *PROT_READ* will also add the *PROT_EXEC* bit - as expected by legacy x86 binaries. Notice that the ELF loader will automatically set this bit when it encounters a legacy binary. Turns on *READ_IMPLIES_EXEC*.
 
 *-Z*, *--mmap-page-zero*::
-SVr4 bug emulation that will set *mmap*(3p) page zero as read-only. Use when _program_ depends on this behavior, and the source code is not available to be fixed. Turns on *MMAP_PAGE_ZERO*.
+SVr4 bug emulation that will set *mmap*(2) page zero as read-only. Use when _program_ depends on this behavior, and the source code is not available to be fixed. Turns on *MMAP_PAGE_ZERO*.
 
 include::man-common/help-version.adoc[]
 
index 9e00005b1106a18fcd88bb078f72ddb26af688f4..880fe10d631bd13e7c4b4c2919a57ae17fdcb12f 100644 (file)
@@ -134,7 +134,7 @@ Turns keyboard repeat on or off. Virtual consoles only.
 Displays the terminal reset string, which typically resets the terminal to its power-on state.
 
 *--resize*::
-Reset terminal size by assessing maximum row and column. This is useful when actual geometry and kernel terminal driver are not in sync. Most notable use case is with serial consoles, that do not use *ioctl*(3p) but just byte streams and breaks.
+Reset terminal size by assessing maximum row and column. This is useful when actual geometry and kernel terminal driver are not in sync. Most notable use case is with serial consoles, that do not use *ioctl*(2) but just byte streams and breaks.
 
 *--reverse* on|off::
 Turns reverse video mode on or off. Except on a virtual console, *--reverse off* turns off all attributes (bold, half-brightness, blink, reverse).