summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-04-19 19:00:26 +0000
committerbde <bde@FreeBSD.org>1996-04-19 19:00:26 +0000
commit95fa7f3c1949fa2d96e0978871e37e53e553d250 (patch)
treeb1a00d14006d797c9e77fbe400c4a032fc2169c4 /lib
parentb0b36003dc9c5fa2fedae1dbd8d5a35e9189d823 (diff)
downloadFreeBSD-src-95fa7f3c1949fa2d96e0978871e37e53e553d250.zip
FreeBSD-src-95fa7f3c1949fa2d96e0978871e37e53e553d250.tar.gz
Removed bogus includes of <sys/types.h> from synopses.
This commit covers the man pages for most of the ANSI library functions. A few others such as strtol.3 have to mention <sys/types.h> because they mix ANSI interfaces with less well designed extensions.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/clock.32
-rw-r--r--lib/libc/gen/time.31
-rw-r--r--lib/libc/stdtime/ctime.31
-rw-r--r--lib/libc/stdtime/strftime.32
-rw-r--r--lib/libc/stdtime/time2posix.31
5 files changed, 1 insertions, 6 deletions
diff --git a/lib/libc/gen/clock.3 b/lib/libc/gen/clock.3
index 8f1b78a..0e5ad06 100644
--- a/lib/libc/gen/clock.3
+++ b/lib/libc/gen/clock.3
@@ -42,7 +42,7 @@
.Nm clock
.Nd determine processor time used
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
+.Fd #include <time.h>
.Ft clock_t
.Fn clock void
.Sh DESCRIPTION
diff --git a/lib/libc/gen/time.3 b/lib/libc/gen/time.3
index 6283393..ecf767d 100644
--- a/lib/libc/gen/time.3
+++ b/lib/libc/gen/time.3
@@ -42,7 +42,6 @@
.Nm time
.Nd get time of day
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
.Fd #include <time.h>
.Ft time_t
.Fn time "time_t *tloc"
diff --git a/lib/libc/stdtime/ctime.3 b/lib/libc/stdtime/ctime.3
index 1a6ba5a..eccb664 100644
--- a/lib/libc/stdtime/ctime.3
+++ b/lib/libc/stdtime/ctime.3
@@ -46,7 +46,6 @@
.Nd transform binary date and time value to
.Tn ASCII
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
.Fd #include <time.h>
.Vt extern char *tzname[2];
.Ft char *
diff --git a/lib/libc/stdtime/strftime.3 b/lib/libc/stdtime/strftime.3
index b0647b3..6f4a86b 100644
--- a/lib/libc/stdtime/strftime.3
+++ b/lib/libc/stdtime/strftime.3
@@ -42,9 +42,7 @@
.Nm strftime
.Nd format date and time
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
.Fd #include <time.h>
-.Fd #include <string.h>
.Ft size_t
.Fn strftime "char *buf" "size_t maxsize" "const char *format" "const struct tm *timeptr"
.Sh DESCRIPTION
diff --git a/lib/libc/stdtime/time2posix.3 b/lib/libc/stdtime/time2posix.3
index 740e532..7faa85d 100644
--- a/lib/libc/stdtime/time2posix.3
+++ b/lib/libc/stdtime/time2posix.3
@@ -3,7 +3,6 @@
time2posix, posix2time \- convert seconds since the Epoch
.SH SYNOPSIS
.nf
-.B #include <sys/types.h>
.B #include <time.h>
.PP
.B time_t time2posix(t)
OpenPOWER on IntegriCloud