aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2025-09-09 21:59:56 +0200
committerAlejandro Colomar <alx@kernel.org>2025-09-09 22:00:32 +0200
commit1d0de88ebe324b704c8584b8ea9472bb3027478c (patch)
treebb0acfb8b5b45e3c49a3cd1b46e0d765e2b6fda9
parent17fa7e849eb524eeda51beadc9924527358722bb (diff)
downloadman-pages-1d0de88ebe324b704c8584b8ea9472bb3027478c.tar.gz
man/: EXAMPLES: Fix includes
Reported-by: iwyu(1) Fixes: 0e7a39804a3c (2025-08-20; "man/: EXAMPLES: Use err(3) and errc(3bsd) instead of similar macros") Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man/man2/bind.21
-rw-r--r--man/man2/shmop.22
-rw-r--r--man/man3/pthread_cancel.31
-rw-r--r--man/man3/pthread_create.31
4 files changed, 2 insertions, 3 deletions
diff --git a/man/man2/bind.2 b/man/man2/bind.2
index 309f6d9d7c..fa269f8df4 100644
--- a/man/man2/bind.2
+++ b/man/man2/bind.2
@@ -210,7 +210,6 @@ domain, and accept connections:
.\" SRC BEGIN (bind.c)
.EX
#include <err.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
diff --git a/man/man2/shmop.2 b/man/man2/shmop.2
index bdabd6dce5..a0e512c90c 100644
--- a/man/man2/shmop.2
+++ b/man/man2/shmop.2
@@ -348,6 +348,7 @@ shared memory segment by the "writer".
\&
Licensed under GNU General Public License v2 or later.
*/
+#include <err.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ipc.h>
@@ -430,6 +431,7 @@ and then decrements the semaphore value to 0 in order to inform the
\&
Licensed under GNU General Public License v2 or later.
*/
+#include <err.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/man/man3/pthread_cancel.3 b/man/man3/pthread_cancel.3
index c89c8ca483..474b3daa77 100644
--- a/man/man3/pthread_cancel.3
+++ b/man/man3/pthread_cancel.3
@@ -149,7 +149,6 @@ main(): thread was canceled
.\" SRC BEGIN (pthread_cancel.c)
.EX
#include <err.h>
-#include <errno.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/man/man3/pthread_create.3 b/man/man3/pthread_create.3
index 8c9f58edd1..7a940c10a4 100644
--- a/man/man3/pthread_create.3
+++ b/man/man3/pthread_create.3
@@ -252,7 +252,6 @@ Joined with thread 3; returned value was SERVUS
.EX
#include <ctype.h>
#include <err.h>
-#include <errno.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>