From ba6f97d58c95b3d1f96b5fd78025f24c36025134 Mon Sep 17 00:00:00 2001 From: mpp Date: Thu, 23 May 1996 01:05:25 +0000 Subject: Fixed various problems: typos, grammer, missing include files wrong function type declarations, and wrong argument type declarations. --- lib/libc/gen/daemon.3 | 1 + lib/libc/gen/exec.3 | 2 +- lib/libc/gen/getbsize.3 | 2 +- lib/libc/gen/getcap.3 | 2 +- lib/libc/gen/getcwd.3 | 3 ++- lib/libc/gen/getfsent.3 | 2 +- lib/libc/gen/getgrent.3 | 4 ++-- lib/libc/gen/getpass.3 | 2 +- lib/libc/gen/ldexp.3 | 2 +- lib/libc/gen/psignal.3 | 2 +- lib/libc/gen/pwcache.3 | 4 ++-- lib/libc/gen/syslog.3 | 10 ++++++++-- lib/libc/stdio/fread.3 | 4 ++-- lib/libc/stdio/stdio.3 | 6 +++--- lib/libc/stdlib/ldiv.3 | 2 +- lib/libc/sys/brk.2 | 2 +- lib/libc/sys/execve.2 | 2 +- lib/libc/sys/getdirentries.2 | 6 +++--- lib/libc/sys/listen.2 | 7 +++---- 19 files changed, 36 insertions(+), 29 deletions(-) diff --git a/lib/libc/gen/daemon.3 b/lib/libc/gen/daemon.3 index 1905923..97646d7 100644 --- a/lib/libc/gen/daemon.3 +++ b/lib/libc/gen/daemon.3 @@ -37,6 +37,7 @@ .Nm daemon .Nd run in the background .Sh SYNOPSIS +.Fd #include .Fn daemon "int nochdir" "int noclose" .Sh DESCRIPTION .Pp diff --git a/lib/libc/gen/exec.3 b/lib/libc/gen/exec.3 index bda6e9e..367d71a 100644 --- a/lib/libc/gen/exec.3 +++ b/lib/libc/gen/exec.3 @@ -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 diff --git a/lib/libc/gen/getbsize.3 b/lib/libc/gen/getbsize.3 index 0455573..b439039 100644 --- a/lib/libc/gen/getbsize.3 +++ b/lib/libc/gen/getbsize.3 @@ -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 . diff --git a/lib/libc/gen/getcap.3 b/lib/libc/gen/getcap.3 index c423a98..e29437f 100644 --- a/lib/libc/gen/getcap.3 +++ b/lib/libc/gen/getcap.3 @@ -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 diff --git a/lib/libc/gen/getcwd.3 b/lib/libc/gen/getcwd.3 index 8740a75..8b385be 100644 --- a/lib/libc/gen/getcwd.3 +++ b/lib/libc/gen/getcwd.3 @@ -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 diff --git a/lib/libc/gen/getfsent.3 b/lib/libc/gen/getfsent.3 index 1051837..1cc90bf 100644 --- a/lib/libc/gen/getfsent.3 +++ b/lib/libc/gen/getfsent.3 @@ -43,7 +43,7 @@ .Nd get file system descriptor file entry .Sh SYNOPSIS .Fd #include -.Ft fstab * +.Ft struct fstab * .Fn getfsent void .Ft struct fstab * .Fn getfsspec "const char *spec" diff --git a/lib/libc/gen/getgrent.3 b/lib/libc/gen/getgrent.3 index 995caaa..fe73884 100644 --- a/lib/libc/gen/getgrent.3 +++ b/lib/libc/gen/getgrent.3 @@ -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" diff --git a/lib/libc/gen/getpass.3 b/lib/libc/gen/getpass.3 index f312d42..6582ddd 100644 --- a/lib/libc/gen/getpass.3 +++ b/lib/libc/gen/getpass.3 @@ -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 diff --git a/lib/libc/gen/ldexp.3 b/lib/libc/gen/ldexp.3 index bffcacf..a19b329 100644 --- a/lib/libc/gen/ldexp.3 +++ b/lib/libc/gen/ldexp.3 @@ -73,5 +73,5 @@ is returned. .Sh STANDARDS The .Fn ldexp -function conforms +function conforms to .St -ansiC . diff --git a/lib/libc/gen/psignal.3 b/lib/libc/gen/psignal.3 index 2be7833..0f66f52 100644 --- a/lib/libc/gen/psignal.3 +++ b/lib/libc/gen/psignal.3 @@ -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 diff --git a/lib/libc/gen/pwcache.3 b/lib/libc/gen/pwcache.3 index 74afa74..2e69a04 100644 --- a/lib/libc/gen/pwcache.3 +++ b/lib/libc/gen/pwcache.3 @@ -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. diff --git a/lib/libc/gen/syslog.3 b/lib/libc/gen/syslog.3 index 832fd9c..ab1bd9d 100644 --- a/lib/libc/gen/syslog.3 +++ b/lib/libc/gen/syslog.3 @@ -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"); diff --git a/lib/libc/stdio/fread.3 b/lib/libc/stdio/fread.3 index 03a9141..c3e591a 100644 --- a/lib/libc/stdio/fread.3 +++ b/lib/libc/stdio/fread.3 @@ -44,9 +44,9 @@ .Nd binary stream input/output .Sh SYNOPSIS .Fd #include -.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 diff --git a/lib/libc/stdio/stdio.3 b/lib/libc/stdio/stdio.3 index 7ebc782..3bde13c 100644 --- a/lib/libc/stdio/stdio.3 +++ b/lib/libc/stdio/stdio.3 @@ -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 diff --git a/lib/libc/stdlib/ldiv.3 b/lib/libc/stdlib/ldiv.3 index a68952f..2b61499 100644 --- a/lib/libc/stdlib/ldiv.3 +++ b/lib/libc/stdlib/ldiv.3 @@ -44,7 +44,7 @@ .Sh SYNOPSIS .Fd #include .Ft ldiv_t -.Fn ldiv "int num" "int denom" +.Fn ldiv "long num" "long denom" .Sh DESCRIPTION The .Fn ldiv diff --git a/lib/libc/sys/brk.2 b/lib/libc/sys/brk.2 index 0cfca78..0e34e4f 100644 --- a/lib/libc/sys/brk.2 +++ b/lib/libc/sys/brk.2 @@ -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. diff --git a/lib/libc/sys/execve.2 b/lib/libc/sys/execve.2 index 8375d68..4db2618 100644 --- a/lib/libc/sys/execve.2 +++ b/lib/libc/sys/execve.2 @@ -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. diff --git a/lib/libc/sys/getdirentries.2 b/lib/libc/sys/getdirentries.2 index 9e6dc50..b0ecd92 100644 --- a/lib/libc/sys/getdirentries.2 +++ b/lib/libc/sys/getdirentries.2 @@ -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. diff --git a/lib/libc/sys/listen.2 b/lib/libc/sys/listen.2 index d9b31ec..d4b600c 100644 --- a/lib/libc/sys/listen.2 +++ b/lib/libc/sys/listen.2 @@ -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 . -- cgit v1.1