Fixed #include and/or prototype bugs in synopsis.

This commit is contained in:
bde 1997-04-13 13:16:20 +00:00
parent 438e103bba
commit 89fd9a1ca7
10 changed files with 26 additions and 13 deletions

View File

@ -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

View File

@ -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

View File

@ -40,6 +40,7 @@
.Nm endusershell
.Nd get legal user shells
.Sh SYNOPSIS
.Fd #include <unistd.h>
.Ft char *
.Fn getusershell void
.Ft void

View File

@ -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

View File

@ -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[];

View File

@ -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

View File

@ -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 .

View File

@ -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

View File

@ -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

View File

@ -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