summaryrefslogtreecommitdiff
path: root/man3
diff options
context:
space:
mode:
Diffstat (limited to 'man3')
-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
6 files changed, 6 insertions, 0 deletions
diff --git a/man3/envz_add.3 b/man3/envz_add.3
index c7cf7390..c5eb32be 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 ca1a19a5..a4c36f56 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 8242f604..8f7f2480 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 9d0333ae..f592b427 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 8a1feab1..926378f3 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 7eb9b4c9..d91487c7 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