diff options
| author | Alejandro Colomar <alx@kernel.org> | 2024-11-03 15:58:01 +0100 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2024-11-03 16:20:19 +0100 |
| commit | fd45cccc4f6edcb8659a6e367bd374fd1d8465ac (patch) | |
| tree | a47d94856110303abfc79cdf8b8c3ac35500ee6d | |
| parent | 3cbd1d9476395fb49a03b037c7b725a8b6110a10 (diff) | |
| download | man-pages-fd45cccc4f6edcb8659a6e367bd374fd1d8465ac.tar.gz | |
man/: EXAMPLES: Fix includes
Signed-off-by: Alejandro Colomar <alx@kernel.org>
| -rw-r--r-- | man/man2/clock_getres.2 | 1 | ||||
| -rw-r--r-- | man/man2/select.2 | 1 | ||||
| -rw-r--r-- | man/man2const/TIOCMSET.2const | 1 | ||||
| -rw-r--r-- | man/man3/pthread_getattr_default_np.3 | 2 | ||||
| -rw-r--r-- | man/man3/pthread_getcpuclockid.3 | 1 | ||||
| -rw-r--r-- | man/man3/pthread_setaffinity_np.3 | 2 |
6 files changed, 6 insertions, 2 deletions
diff --git a/man/man2/clock_getres.2 b/man/man2/clock_getres.2 index 114840b3e0..5221532213 100644 --- a/man/man2/clock_getres.2 +++ b/man/man2/clock_getres.2 @@ -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) diff --git a/man/man2/select.2 b/man/man2/select.2 index d41620c133..e563dcb8e0 100644 --- a/man/man2/select.2 +++ b/man/man2/select.2 @@ -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) diff --git a/man/man2const/TIOCMSET.2const b/man/man2const/TIOCMSET.2const index 3f5fe52ad8..87e3142b80 100644 --- a/man/man2const/TIOCMSET.2const +++ b/man/man2const/TIOCMSET.2const @@ -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> diff --git a/man/man3/pthread_getattr_default_np.3 b/man/man3/pthread_getattr_default_np.3 index 3b5bbeac69..596063593c 100644 --- a/man/man3/pthread_getattr_default_np.3 +++ b/man/man3/pthread_getattr_default_np.3 @@ -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> \& diff --git a/man/man3/pthread_getcpuclockid.3 b/man/man3/pthread_getcpuclockid.3 index ef105f6175..053d95a920 100644 --- a/man/man3/pthread_getcpuclockid.3 +++ b/man/man3/pthread_getcpuclockid.3 @@ -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> \& diff --git a/man/man3/pthread_setaffinity_np.3 b/man/man3/pthread_setaffinity_np.3 index 93f456b03f..eab3344896 100644 --- a/man/man3/pthread_setaffinity_np.3 +++ b/man/man3/pthread_setaffinity_np.3 @@ -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> \& |
