]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/: EXAMPLES: Fix includes
authorAlejandro Colomar <alx@kernel.org>
Sun, 3 Nov 2024 14:58:01 +0000 (15:58 +0100)
committerAlejandro Colomar <alx@kernel.org>
Sun, 3 Nov 2024 15:20:19 +0000 (16:20 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man2/clock_getres.2
man/man2/select.2
man/man2const/TIOCMSET.2const
man/man3/pthread_getattr_default_np.3
man/man3/pthread_getcpuclockid.3
man/man3/pthread_setaffinity_np.3

index 114840b3e0fedfc963536857dff9207d55797375..5221532213d853a66bf7a03bf49e954ccec21f97 100644 (file)
@@ -466,6 +466,7 @@ CLOCK_BOOTTIME :      72691.019 (20h 11m 31s)
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <sys/types.h>
 #include <time.h>
 \&
 #define SECS_IN_DAY (24 * 60 * 60)
index d41620c133d621294efe5a6c48ff3951220e45d1..e563dcb8e0b563c68f46df7820fade30fd8def16 100644 (file)
@@ -714,6 +714,7 @@ to a local variable and passing that variable to the system call.
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/select.h>
+#include <sys/time.h>
 \&
 int
 main(void)
index 3f5fe52ad8d9b6f34032342adf2dab4e70225f6b..87e3142b80dac06ff0e9d11de7fc2c57cd0b142a 100644 (file)
@@ -100,6 +100,7 @@ Check the condition of DTR on the serial port.
 .P
 .\" SRC BEGIN (tiocmget.c)
 .EX
+#include <asm/termbits.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <sys/ioctl.h>
index 3b5bbeac69cfcbcbc6fbaeffd079cf5a048ae840..596063593ca5c973804a4584e886d647d68547ae 100644 (file)
@@ -102,8 +102,8 @@ Inherit scheduler:   INHERIT
 .EX
 #define _GNU_SOURCE
 #include <err.h>
-#include <errno.h>
 #include <pthread.h>
+#include <sched.h>
 #include <stdio.h>
 #include <stdlib.h>
 \&
index ef105f617556bde26eee002356b259ba2d9dd7b9..053d95a920aaea638eb91e94b9ecfc73a0a0af7f 100644 (file)
@@ -105,6 +105,7 @@ Subthread CPU time:        0.992
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sys/time.h>
 #include <time.h>
 #include <unistd.h>
 \&
index 93f456b03f7873333b06a8574b8f2ad9d81472a0..eab3344896a09e249a78376814a9005ef0dd5276 100644 (file)
@@ -157,8 +157,8 @@ to check the resulting CPU affinity mask of the thread.
 .EX
 #define _GNU_SOURCE
 #include <err.h>
-#include <errno.h>
 #include <pthread.h>
+#include <sched.h>
 #include <stdio.h>
 #include <stdlib.h>
 \&