Fixed various problems: typos, grammer, missing include files

wrong function type declarations, and wrong argument type
declarations.
This commit is contained in:
Mike Pritchard 1996-05-23 01:05:25 +00:00
parent 0a47b48b9f
commit 712dc76e87
19 changed files with 36 additions and 29 deletions

View File

@ -37,6 +37,7 @@
.Nm daemon
.Nd run in the background
.Sh SYNOPSIS
.Fd #include <stdlib.h>
.Fn daemon "int nochdir" "int noclose"
.Sh DESCRIPTION
.Pp

View File

@ -185,7 +185,7 @@ The return value is \-1, and the global variable
.Va errno
will be set to indicate the error.
.Sh FILES
.Bl -tag -width /bin/sh - compact
.Bl -tag -width /bin/sh -compact
.It Pa /bin/sh
The shell.
.El

View File

@ -75,5 +75,5 @@ a block size of 512 bytes.
.Sh HISTORY
The
.Nm getbsize
function call appeared in
function first appeared in
.Bx 4.4 .

View File

@ -73,7 +73,7 @@
.Fn cgetclose "void"
.Sh DESCRIPTION
.Fn Cgetent
extracts the capability rec
extracts the capability
.Fa name
from the database specified by the
.Dv NULL

View File

@ -35,7 +35,8 @@
.Dt GETCWD 3
.Os BSD 4.2
.Sh NAME
.Nm getcwd
.Nm getcwd ,
.Nm getwd
.Nd get working directory pathname
.Sh SYNOPSIS
.Fd #include <unistd.h>

View File

@ -43,7 +43,7 @@
.Nd get file system descriptor file entry
.Sh SYNOPSIS
.Fd #include <fstab.h>
.Ft fstab *
.Ft struct fstab *
.Fn getfsent void
.Ft struct fstab *
.Fn getfsspec "const char *spec"

View File

@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" From: @(#)getgrent.3 8.2 (Berkeley) 4/19/94
.\" $Id: getgrent.3,v 1.2 1994/09/20 22:02:20 wollman Exp $
.\" $Id: getgrent.3,v 1.3 1996/05/01 01:40:01 bde Exp $
.\"
.Dd September 29, 1994
.Dt GETGRENT 3
@ -53,7 +53,7 @@
.Fn getgrnam "const char *name"
.Ft struct group *
.Fn getgrgid "gid_t gid"
.Ft struct group *
.Ft int
.Fn setgroupent "int stayopen"
.\" .Ft void
.\" .Fn setgrfile "const char *name"

View File

@ -64,7 +64,7 @@ turns off character echoing while reading the password.
.Nm Getpass
returns a pointer to the null terminated password.
.Sh FILES
.Bl -tag -width /dev/tty - compact
.Bl -tag -width /dev/tty -compact
.It Pa /dev/tty
.El
.Sh SEE ALSO

View File

@ -73,5 +73,5 @@ is returned.
.Sh STANDARDS
The
.Fn ldexp
function conforms
function conforms to
.St -ansiC .

View File

@ -36,7 +36,7 @@
.Os BSD 4.2
.Sh NAME
.Nm psignal ,
.Nm sys_siglist
.Nm sys_siglist ,
.Nm sys_signame
.Nd system signal messages
.Sh SYNOPSIS

View File

@ -84,7 +84,7 @@ pointer is returned.
.Xr getpwuid 3
.Sh HISTORY
The
.Fn user_from_id
.Fn user_from_uid
and
.Fn group_from_id
.Fn group_from_gid
functions first appeared in 4.4BSD.

View File

@ -173,11 +173,15 @@ The same as
but logged to a file readable only by
selected individuals.
.It Dv LOG_CRON
The clock daemon.
The cron daemon:
.Xr cron 8 .
.It Dv LOG_DAEMON
System daemons, such as
.Xr routed 8 ,
that are not provided for explicitly by other facilities.
.It Dv LOG_FTP
The file transfer protocol daemon:
.Xr ftpd 8 .
.It Dv LOG_KERN
Messages generated by the kernel.
These cannot be generated by any user processes.
@ -248,8 +252,10 @@ always returns the previous log mask level.
.Bd -literal -offset indent -compact
syslog(LOG_ALERT, "who: internal error 23");
openlog("ftpd", LOG_PID, LOG_DAEMON);
openlog("ftpd", LOG_PID | LOG_NDELAY, LOG_FTP);
setlogmask(LOG_UPTO(LOG_ERR));
syslog(LOG_INFO, "Connection from host %d", CallingHost);
syslog(LOG_INFO|LOG_LOCAL2, "foobar error: %m");

View File

@ -44,9 +44,9 @@
.Nd binary stream input/output
.Sh SYNOPSIS
.Fd #include <stdio.h>
.Ft int
.Ft size_t
.Fn fread "void *ptr" "size_t size" "size_t nmemb" "FILE *stream"
.Ft int
.Ft size_t
.Fn fwrite "const void *ptr" "size_t size" "size_t nmemb" "FILE *stream"
.Sh DESCRIPTION
The function

View File

@ -63,7 +63,7 @@ If a file can support positioning requests (such as a disk file, as opposed
to a terminal) then a
.Em file position indicator
associated with the stream is positioned at the start of the file (byte
zero), unless the file is opened with appended mode. If append mode
zero), unless the file is opened with append mode. If append mode
is used, the position indicator will be placed the end-of-file.
The position indicator is maintained by subsequent reads, writes
and positioning requests. All input occurs as if the characters
@ -111,7 +111,7 @@ opened explicitly:
(for reading conventional input),
.It
.Em standard output
(for writing conventional input), and
(for writing conventional output), and
.It
.Em standard error
(for writing diagnostic output).
@ -229,7 +229,7 @@ feof check and reset stream status
ferror check and reset stream status
fflush flush a stream
fgetc get next character or word from input stream
fgetline get a line from a stream
fgetln get a line from a stream
fgetpos reposition a stream
fgets get a line from a stream
fileno check and reset stream status

View File

@ -44,7 +44,7 @@
.Sh SYNOPSIS
.Fd #include <stdlib.h>
.Ft ldiv_t
.Fn ldiv "int num" "int denom"
.Fn ldiv "long num" "long denom"
.Sh DESCRIPTION
The
.Fn ldiv

View File

@ -109,7 +109,7 @@ otherwise -1 with
set to indicate why the allocation failed.
The
.Nm sbrk
returns a pointer to the base of the new storage if successful;
function returns a pointer to the base of the new storage if successful;
otherwise -1 with
.Va errno
set to indicate why the allocation failed.

View File

@ -244,7 +244,7 @@ is larger than the system-imposed limit.
The limit in the system as released is 20480 bytes
.Pf ( Dv NCARGS
in
.Ao Pa sys/param.h Ac .
.Ao Pa sys/param.h Ac ) .
.It Bq Er EFAULT
The new process file is not as long as indicated by
the size values in its header.

View File

@ -151,16 +151,16 @@ is set to indicate the error.
.Fn Getdirentries
will fail if:
.Bl -tag -width [EFAULT]
.It EBADF
.It Bq Er EBADF
.Fa fd
is not a valid file descriptor open for reading.
.It EFAULT
.It Bq Er EFAULT
Either
.Fa buf
or
.Fa basep
point outside the allocated address space.
.It EIO
.It Bq Er EIO
An
.Tn I/O
error occurred while reading from or writing to the file system.

View File

@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" From: @(#)listen.2 8.2 (Berkeley) 12/11/93
.\" $Id: listen.2,v 1.4 1996/01/22 00:02:02 julian Exp $
.\" $Id: listen.2,v 1.5 1996/02/11 22:34:24 mpp Exp $
.\"
.Dd November 3, 1995
.Dt LISTEN 2
@ -137,6 +137,5 @@ The ability to configure the maximum
.Fa backlog
at run-time, and to use a negative
.Fa backlog
to request the maximum allowable value, was introduced in
.Tn FreeBSD
2.2.
to request the maximum allowable value, was introduced in
.Fx 2.2 .