]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/: EXAMPLES: Fix includes
authorAlejandro Colomar <alx@kernel.org>
Tue, 9 Sep 2025 19:59:56 +0000 (21:59 +0200)
committerAlejandro Colomar <alx@kernel.org>
Tue, 9 Sep 2025 20:00:32 +0000 (22:00 +0200)
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>
man/man2/bind.2
man/man2/shmop.2
man/man3/pthread_cancel.3
man/man3/pthread_create.3

index 309f6d9d7c19dad64ae65d54dc5f4f9ef7569272..fa269f8df4b29ec248c8952b3afa4243796648c3 100644 (file)
@@ -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>
index bdabd6dce54f095f0648f1b64f8896b8cf08ada7..a0e512c90c9ddb936c0067c2206c817c9bda9f47 100644 (file)
@@ -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>
index c89c8ca483c0628dfdcdf09715c9531e65f0e43a..474b3daa77b857ba12a64d7d05d072dc286b3cc2 100644 (file)
@@ -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>
index 8c9f58edd138b9f2e3232e27ebd7ddddb6e03825..7a940c10a4a3175f09d071388cbaceff5ae79981 100644 (file)
@@ -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>