From af9c7ff296d820ef13b6e62a53ec2e9aeb5aaead Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 10 Sep 2007 02:44:09 +0000 Subject: [PATCH] Add "#include " (to declatre exit(3)) to example program. --- man2/intro.2 | 1 + man2/select.2 | 1 + man3/envz_add.3 | 1 + man3/fmtmsg.3 | 1 + man3/getgrent_r.3 | 1 + man3/rtime.3 | 1 + man3/strptime.3 | 1 + man3/wordexp.3 | 1 + 8 files changed, 8 insertions(+) diff --git a/man2/intro.2 b/man2/intro.2 index f8183c619..07d475601 100644 --- a/man2/intro.2 +++ b/man2/intro.2 @@ -137,6 +137,7 @@ passed by-value or by-pointer (for aggregates like structs). .sp .nf #include +#include #include #include /* for _syscallX macros/related stuff */ #include /* for struct sysinfo */ diff --git a/man2/select.2 b/man2/select.2 index d60a332ac..8d348a657 100644 --- a/man2/select.2 +++ b/man2/select.2 @@ -476,6 +476,7 @@ to a local variable and passing that variable to the system call. .SH EXAMPLE .nf #include +#include #include #include #include diff --git a/man3/envz_add.3 b/man3/envz_add.3 index c7cf73905..c5eb32bec 100644 --- a/man3/envz_add.3 +++ b/man3/envz_add.3 @@ -120,6 +120,7 @@ Handle with care. .sp .nf #include +#include #include int diff --git a/man3/fmtmsg.3 b/man3/fmtmsg.3 index ca1a19a56..a4c36f565 100644 --- a/man3/fmtmsg.3 +++ b/man3/fmtmsg.3 @@ -237,6 +237,7 @@ vpfmt(), lfmt(), and vlfmt()", and will be removed later. .SH EXAMPLE .nf #include +#include #include int diff --git a/man3/getgrent_r.3 b/man3/getgrent_r.3 index 8242f6049..8f7f24807 100644 --- a/man3/getgrent_r.3 +++ b/man3/getgrent_r.3 @@ -143,6 +143,7 @@ in the stream with all other threads. #define _GNU_SOURCE #include #include +#include #define BUFLEN 4096 int diff --git a/man3/rtime.3 b/man3/rtime.3 index 9d0333ae6..f592b427b 100644 --- a/man3/rtime.3 +++ b/man3/rtime.3 @@ -82,6 +82,7 @@ The result is the localtime of the computer 'linux'. .sp .nf #include +#include #include #include #include diff --git a/man3/strptime.3 b/man3/strptime.3 index 8a1feab1a..926378f3d 100644 --- a/man3/strptime.3 +++ b/man3/strptime.3 @@ -384,6 +384,7 @@ and .sp .nf #include +#include #include int diff --git a/man3/wordexp.3 b/man3/wordexp.3 index 7eb9b4c97..d91487c72 100644 --- a/man3/wordexp.3 +++ b/man3/wordexp.3 @@ -86,6 +86,7 @@ The output is approximately that of "ls [a-c]*.c". .LP .nf #include +#include #include int