From 4cb656bbbf44413b0aa3c2fb129ebf346ce46418 Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 13 Apr 1997 13:16:20 +0000 Subject: Fixed #include and/or prototype bugs in synopsis. --- lib/libc/gen/crypt.3 | 3 ++- lib/libc/gen/getttyent.3 | 2 +- lib/libc/gen/getusershell.3 | 1 + lib/libc/gen/glob.3 | 2 +- lib/libc/gen/psignal.3 | 2 +- lib/libc/gen/pwcache.3 | 7 +++++-- lib/libc/gen/sigsetops.3 | 7 ++++++- lib/libc/gen/unvis.3 | 4 ++-- lib/libc/gen/vis.3 | 8 ++++---- lib/libc/gmon/moncontrol.3 | 3 +++ 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 .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 .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 .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 +.Fd #include .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 +.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 +.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 .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 .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 +.Ft int .Fn moncontrol "int mode" +.Ft int .Fn monstartup "u_long *lowpc" "u_long *highpc" .Sh DESCRIPTION An executable program compiled using the -- cgit v1.1