aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man2/intro.21
-rw-r--r--man2/select.21
-rw-r--r--man3/envz_add.31
-rw-r--r--man3/fmtmsg.31
-rw-r--r--man3/getgrent_r.31
-rw-r--r--man3/rtime.31
-rw-r--r--man3/strptime.31
-rw-r--r--man3/wordexp.31
8 files changed, 8 insertions, 0 deletions
diff --git a/man2/intro.2 b/man2/intro.2
index f8183c619a..07d475601f 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 <stdio.h>
+#include <stdlib.h>
#include <errno.h>
#include <linux/unistd.h> /* for _syscallX macros/related stuff */
#include <linux/kernel.h> /* for struct sysinfo */
diff --git a/man2/select.2 b/man2/select.2
index d60a332ac4..8d348a657b 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 <stdio.h>
+#include <stdlib.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
diff --git a/man3/envz_add.3 b/man3/envz_add.3
index c7cf739057..c5eb32bece 100644
--- a/man3/envz_add.3
+++ b/man3/envz_add.3
@@ -120,6 +120,7 @@ Handle with care.
.sp
.nf
#include <stdio.h>
+#include <stdlib.h>
#include <envz.h>
int
diff --git a/man3/fmtmsg.3 b/man3/fmtmsg.3
index ca1a19a569..a4c36f565b 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 <stdio.h>
+#include <stdlib.h>
#include <fmtmsg.h>
int
diff --git a/man3/getgrent_r.3 b/man3/getgrent_r.3
index 8242f6049a..8f7f248076 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 <grp.h>
#include <stdio.h>
+#include <stdlib.h>
#define BUFLEN 4096
int
diff --git a/man3/rtime.3 b/man3/rtime.3
index 9d0333ae6f..f592b427b6 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 <stdio.h>
+#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <time.h>
diff --git a/man3/strptime.3 b/man3/strptime.3
index 8a1feab1a7..926378f3d9 100644
--- a/man3/strptime.3
+++ b/man3/strptime.3
@@ -384,6 +384,7 @@ and
.sp
.nf
#include <stdio.h>
+#include <stdlib.h>
#include <time.h>
int
diff --git a/man3/wordexp.3 b/man3/wordexp.3
index 7eb9b4c97f..d91487c726 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 <stdio.h>
+#include <stdlib.h>
#include <wordexp.h>
int