summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-04-13 13:16:20 +0000
committerbde <bde@FreeBSD.org>1997-04-13 13:16:20 +0000
commit4cb656bbbf44413b0aa3c2fb129ebf346ce46418 (patch)
tree2b0d897f9a1b99a9d6b8473183bc86f2f7631dd6
parente39250c28c1759d0a06f9e7dddf01ee1511770bd (diff)
downloadFreeBSD-src-4cb656bbbf44413b0aa3c2fb129ebf346ce46418.zip
FreeBSD-src-4cb656bbbf44413b0aa3c2fb129ebf346ce46418.tar.gz
Fixed #include and/or prototype bugs in synopsis.
-rw-r--r--lib/libc/gen/crypt.33
-rw-r--r--lib/libc/gen/getttyent.32
-rw-r--r--lib/libc/gen/getusershell.31
-rw-r--r--lib/libc/gen/glob.32
-rw-r--r--lib/libc/gen/psignal.32
-rw-r--r--lib/libc/gen/pwcache.37
-rw-r--r--lib/libc/gen/sigsetops.37
-rw-r--r--lib/libc/gen/unvis.34
-rw-r--r--lib/libc/gen/vis.38
-rw-r--r--lib/libc/gmon/moncontrol.33
10 files changed, 26 insertions, 13 deletions
diff --git a/lib/libc/gen/crypt.3 b/lib/libc/gen/crypt.3
index 8c09ce4..0f97a70 100644
--- a/lib/libc/gen/crypt.3
+++ b/lib/libc/gen/crypt.3
@@ -42,10 +42,11 @@
.Nm des_cipher
.Nd DES encryption
.Sh SYNOPSIS
+.Fd #include <unistd.h>
.Ft char *
.Fn crypt "const char *key" "const char *setting"
.Ft int
-.Fn setkey "char *key"
+.Fn setkey "const char *key"
.Ft int
.Fn encrypt "char *block" "int flag"
.Ft int
diff --git a/lib/libc/gen/getttyent.3 b/lib/libc/gen/getttyent.3
index 3884b30..06b1e94 100644
--- a/lib/libc/gen/getttyent.3
+++ b/lib/libc/gen/getttyent.3
@@ -45,7 +45,7 @@
.Ft struct ttyent *
.Fn getttyent
.Ft struct ttyent *
-.Fn getttynam "char *name"
+.Fn getttynam "const char *name"
.Ft int
.Fn setttyent void
.Ft int
diff --git a/lib/libc/gen/getusershell.3 b/lib/libc/gen/getusershell.3
index 48aa859..223caef 100644
--- a/lib/libc/gen/getusershell.3
+++ b/lib/libc/gen/getusershell.3
@@ -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/glob.3 b/lib/libc/gen/glob.3
index 815fb15..50fd91a 100644
--- a/lib/libc/gen/glob.3
+++ b/lib/libc/gen/glob.3
@@ -43,7 +43,7 @@
.Sh SYNOPSIS
.Fd #include <glob.h>
.Ft int
-.Fn glob "const char *pattern" "int flags" "const int (*errfunc)(const char *, int)" "glob_t *pglob"
+.Fn glob "const char *pattern" "int flags" "int (*errfunc)(const char *, int)" "glob_t *pglob"
.Ft void
.Fn globfree "glob_t *pglob"
.Sh DESCRIPTION
diff --git a/lib/libc/gen/psignal.3 b/lib/libc/gen/psignal.3
index a0d4737..773759c 100644
--- a/lib/libc/gen/psignal.3
+++ b/lib/libc/gen/psignal.3
@@ -40,7 +40,7 @@
.Nm sys_signame
.Nd system signal messages
.Sh SYNOPSIS
-.Fd #include <sys/signal.h>
+.Fd #include <signal.h>
.Ft void
.Fn psignal "unsigned sig" "const char *s"
.Vt extern const char * const sys_siglist[];
diff --git a/lib/libc/gen/pwcache.3 b/lib/libc/gen/pwcache.3
index 98fb1c4..e44b5ef 100644
--- a/lib/libc/gen/pwcache.3
+++ b/lib/libc/gen/pwcache.3
@@ -38,8 +38,11 @@
.Nm pwcache
.Nd cache password and group entries
.Sh SYNOPSIS
-.Fn user_from_uid "uid_t uid" "int nouser"
-.Fn group_from_gid "gid_t gid" "int nogroup"
+.Fd #include <stdlib.h>
+.Ft char *
+.Fn user_from_uid "unsigned long uid" "int nouser"
+.Ft char *
+.Fn group_from_gid "unsigned long gid" "int nogroup"
.Sh DESCRIPTION
.Pp
The
diff --git a/lib/libc/gen/sigsetops.3 b/lib/libc/gen/sigsetops.3
index b62253e..97b3316 100644
--- a/lib/libc/gen/sigsetops.3
+++ b/lib/libc/gen/sigsetops.3
@@ -43,11 +43,16 @@
.Nd manipulate signal sets
.Sh SYNOPSIS
.Fd #include <signal.h>
+.Ft int
.Fn sigemptyset "sigset_t *set"
+.Ft int
.Fn sigfillset "sigset_t *set"
+.Ft int
.Fn sigaddset "sigset_t *set" "int signo"
+.Ft int
.Fn sigdelset "sigset_t *set" "int signo"
-.Fn sigismember "sigset_t *set" "int signo"
+.Ft int
+.Fn sigismember "const sigset_t *set" "int signo"
.Sh DESCRIPTION
These functions manipulate signal sets stored in a
.Fa sigset_t .
diff --git a/lib/libc/gen/unvis.3 b/lib/libc/gen/unvis.3
index fcce561..833e13c 100644
--- a/lib/libc/gen/unvis.3
+++ b/lib/libc/gen/unvis.3
@@ -41,9 +41,9 @@
.Sh SYNOPSIS
.Fd #include <vis.h>
.Ft int
-.Fn unvis "u_char *cp" "u_char c" "int *astate" "int flag"
+.Fn unvis "char *cp" "int c" "int *astate" "int flag"
.Ft int
-.Fn strunvis "char *dst" "char *src"
+.Fn strunvis "char *dst" "const char *src"
.Sh DESCRIPTION
The
.Fn unvis
diff --git a/lib/libc/gen/vis.3 b/lib/libc/gen/vis.3
index edb664e..f749573 100644
--- a/lib/libc/gen/vis.3
+++ b/lib/libc/gen/vis.3
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" From: @(#)vis.3 8.1 (Berkeley) 6/9/93
-.\" $Id$
+.\" $Id: vis.3,v 1.6 1997/02/22 14:58:21 peter Exp $
.\"
.Dd July 25, 1996
.Dt VIS 3
@@ -41,11 +41,11 @@
.Sh SYNOPSIS
.Fd #include <vis.h>
.Ft char *
-.Fn vis "char *dst" "char c" "int flag" "char nextc"
+.Fn vis "char *dst" "int c" "int flag" "int nextc"
.Ft int
-.Fn strvis "char *dst" "char *src" "int flag"
+.Fn strvis "char *dst" "const char *src" "int flag"
.Ft int
-.Fn strvisx "char *dst" "char *src" "int len" "int flag"
+.Fn strvisx "char *dst" "const char *src" "size_t len" "int flag"
.Sh DESCRIPTION
The
.Fn vis
diff --git a/lib/libc/gmon/moncontrol.3 b/lib/libc/gmon/moncontrol.3
index 1413bf5..92993cd 100644
--- a/lib/libc/gmon/moncontrol.3
+++ b/lib/libc/gmon/moncontrol.3
@@ -39,7 +39,10 @@
.Nm monstartup
.Nd control execution profile
.Sh SYNOPSIS
+.Fd #include <sys/types.h>
+.Ft int
.Fn moncontrol "int mode"
+.Ft int
.Fn monstartup "u_long *lowpc" "u_long *highpc"
.Sh DESCRIPTION
An executable program compiled using the
OpenPOWER on IntegriCloud