summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1996-05-23 01:05:25 +0000
committermpp <mpp@FreeBSD.org>1996-05-23 01:05:25 +0000
commitba6f97d58c95b3d1f96b5fd78025f24c36025134 (patch)
tree20c0191307a05862d54f0d7211d2ee3ad63fa87a /lib/libc/gen
parent509f02d4a3034d089f3b708293f367e91cdc784b (diff)
downloadFreeBSD-src-ba6f97d58c95b3d1f96b5fd78025f24c36025134.zip
FreeBSD-src-ba6f97d58c95b3d1f96b5fd78025f24c36025134.tar.gz
Fixed various problems: typos, grammer, missing include files
wrong function type declarations, and wrong argument type declarations.
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/daemon.31
-rw-r--r--lib/libc/gen/exec.32
-rw-r--r--lib/libc/gen/getbsize.32
-rw-r--r--lib/libc/gen/getcap.32
-rw-r--r--lib/libc/gen/getcwd.33
-rw-r--r--lib/libc/gen/getfsent.32
-rw-r--r--lib/libc/gen/getgrent.34
-rw-r--r--lib/libc/gen/getpass.32
-rw-r--r--lib/libc/gen/ldexp.32
-rw-r--r--lib/libc/gen/psignal.32
-rw-r--r--lib/libc/gen/pwcache.34
-rw-r--r--lib/libc/gen/syslog.310
12 files changed, 22 insertions, 14 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 <stdlib.h>
.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 <unistd.h>
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 <fstab.h>
-.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");
OpenPOWER on IntegriCloud