summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>1999-05-20 14:50:36 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>1999-05-20 14:50:36 +0000
commitf17c6aed0b68322993421d3f1ba24fc96c159500 (patch)
tree3553ebda7f9dc1ecc1a1f134ae0c5dc5df083d78 /lib/libc
parentc0dd98a67f2c7d9ad9a63e9ebca448ae6377f6ae (diff)
add missing #include's from SYNOPSIS section
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/getusershell.33
-rw-r--r--lib/libc/gen/isinf.33
-rw-r--r--lib/libc/gen/pwcache.35
-rw-r--r--lib/libc/gen/setmode.33
-rw-r--r--lib/libc/gen/timezone.33
5 files changed, 12 insertions, 5 deletions
diff --git a/lib/libc/gen/getusershell.3 b/lib/libc/gen/getusershell.3
index 57f1fc64936..90c3441b9a0 100644
--- a/lib/libc/gen/getusershell.3
+++ b/lib/libc/gen/getusershell.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getusershell.3,v 1.2 1996/08/19 08:24:12 tholo Exp $
+.\" $OpenBSD: getusershell.3,v 1.3 1999/05/20 14:50:35 aaron Exp $
.\"
.\" Copyright (c) 1985, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -40,6 +40,7 @@
.Nm endusershell
.Nd get legal user shells
.Sh SYNOPSIS
+.Fd #include <unistd.h>
.Ft char *
.Fn getusershell void
.Ft void
diff --git a/lib/libc/gen/isinf.3 b/lib/libc/gen/isinf.3
index 6dc3eab10b7..e3652932d09 100644
--- a/lib/libc/gen/isinf.3
+++ b/lib/libc/gen/isinf.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: isinf.3,v 1.2 1996/08/19 08:24:45 tholo Exp $
+.\" $OpenBSD: isinf.3,v 1.3 1999/05/20 14:50:35 aaron Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -39,6 +39,7 @@
.Nm isnan
.Nd test for infinity or not-a-number
.Sh SYNOPSIS
+.Fd #include <math.h>
.Ft int
.Fn isinf double
.Ft int
diff --git a/lib/libc/gen/pwcache.3 b/lib/libc/gen/pwcache.3
index 3f2e7618a7a..5ae01b7ae96 100644
--- a/lib/libc/gen/pwcache.3
+++ b/lib/libc/gen/pwcache.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pwcache.3,v 1.4 1998/06/15 17:54:57 mickey Exp $
+.\" $OpenBSD: pwcache.3,v 1.5 1999/05/20 14:50:35 aaron Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -38,7 +38,10 @@
.Nm pwcache
.Nd cache password and group entries
.Sh SYNOPSIS
+.Fd #include <pwd.h>
+.Ft char *
.Fn user_from_uid "uid_t uid" "int nouser"
+.Ft char *
.Fn group_from_gid "gid_t gid" "int nogroup"
.Sh DESCRIPTION
The
diff --git a/lib/libc/gen/setmode.3 b/lib/libc/gen/setmode.3
index 4d6217816d9..f84c22233a4 100644
--- a/lib/libc/gen/setmode.3
+++ b/lib/libc/gen/setmode.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: setmode.3,v 1.5 1998/09/24 02:49:20 millert Exp $
+.\" $OpenBSD: setmode.3,v 1.6 1999/05/20 14:50:35 aaron Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -39,6 +39,7 @@
.Nm setmode
.Nd modify mode bits
.Sh SYNOPSIS
+.Fd #include <unistd.h>
.Ft mode_t
.Fn getmode "const void *set" "mode_t mode"
.Ft void *
diff --git a/lib/libc/gen/timezone.3 b/lib/libc/gen/timezone.3
index 492aefbd783..dd5bbffd2e3 100644
--- a/lib/libc/gen/timezone.3
+++ b/lib/libc/gen/timezone.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: timezone.3,v 1.5 1999/03/10 02:43:11 pjanzen Exp $
+.\" $OpenBSD: timezone.3,v 1.6 1999/05/20 14:50:35 aaron Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -38,6 +38,7 @@
.Nm timezone
.Nd return the timezone abbreviation
.Sh SYNOPSIS
+.Fd #include <time.h>
.Ft char *
.Fn timezone "int zone" "int dst"
.Sh DESCRIPTION