From: Alejandro Colomar Date: Mon, 2 May 2022 21:25:03 +0000 (+0200) Subject: Various pages: EXAMPLES: Fix includes X-Git-Tag: man-pages-5.19-rc1~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f2bdc79cf19f6e23395570e30f917ff2238cacf7;p=thirdparty%2Fman-pages.git Various pages: EXAMPLES: Fix includes Reported-by: iwyu(1) Signed-off-by: Alejandro Colomar --- diff --git a/man2/close_range.2 b/man2/close_range.2 index 8f3214b439..bfc1aaabac 100644 --- a/man2/close_range.2 +++ b/man2/close_range.2 @@ -201,14 +201,13 @@ result from the calls to .\" SRC BEGIN (close_range.c) .EX #define _GNU_SOURCE +#include #include -#include +#include #include #include #include -#include #include -#include /* Show the contents of the symbolic links in /proc/self/fd */ diff --git a/man2/process_vm_readv.2 b/man2/process_vm_readv.2 index 6e9fb38450..aff2f706ff 100644 --- a/man2/process_vm_readv.2 +++ b/man2/process_vm_readv.2 @@ -289,6 +289,8 @@ and the second 10 bytes into .PP .\" SRC BEGIN (process_vm_readv.c) .EX +#include +#include #include int diff --git a/man2/recvmmsg.2 b/man2/recvmmsg.2 index 8011d5f04b..a087ec4dea 100644 --- a/man2/recvmmsg.2 +++ b/man2/recvmmsg.2 @@ -209,11 +209,13 @@ can give the following output: .\" SRC BEGIN (recvmmsg.c) .EX #define _GNU_SOURCE -#include +#include +#include #include #include #include #include +#include int main(void) diff --git a/man2/seccomp_unotify.2 b/man2/seccomp_unotify.2 index db4597cb2f..5f98b0cf9a 100644 --- a/man2/seccomp_unotify.2 +++ b/man2/seccomp_unotify.2 @@ -1406,13 +1406,14 @@ T: terminating #include #include #include -#include +#include #include #include +#include #include +#include #include #include -#include #include #define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \e diff --git a/man2/sendmmsg.2 b/man2/sendmmsg.2 index 7b8d03c635..3e10065780 100644 --- a/man2/sendmmsg.2 +++ b/man2/sendmmsg.2 @@ -170,12 +170,13 @@ The contents of the first datagram originates from a pair of buffers. .\" SRC BEGIN (sendmmsg.c) .EX #define _GNU_SOURCE -#include +#include +#include #include #include #include -#include #include +#include int main(void) diff --git a/man2/shmop.2 b/man2/shmop.2 index 1bf18968d1..74d56d4be3 100644 --- a/man2/shmop.2 +++ b/man2/shmop.2 @@ -357,6 +357,12 @@ shared memory segment by the "writer". Licensed under GNU General Public License v2 or later. */ +#include +#include +#include +#include +#include + #include "svshm_string.h" int @@ -433,6 +439,12 @@ and then decrements the semaphore value to 0 in order to inform the Licensed under GNU General Public License v2 or later. */ +#include +#include +#include +#include +#include + #include "svshm_string.h" int