diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 1999-06-06 06:57:54 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 1999-06-06 06:57:54 +0000 |
commit | 34dcd878d6f2e9072d89cd10ade4f31fb744dba1 (patch) | |
tree | 62561a74dd74f3958895eb7c0d686ee178a59baf /lib/libc/gen | |
parent | 44ded7ffda21f64846aeae3dc7e72bb6584b1428 (diff) |
Grammatical, spelling, and format fixes
Diffstat (limited to 'lib/libc/gen')
-rw-r--r-- | lib/libc/gen/getnetgrent.3 | 14 | ||||
-rw-r--r-- | lib/libc/gen/setjmp.3 | 17 | ||||
-rw-r--r-- | lib/libc/gen/syslog.3 | 6 |
3 files changed, 20 insertions, 17 deletions
diff --git a/lib/libc/gen/getnetgrent.3 b/lib/libc/gen/getnetgrent.3 index c722c3f9908..d4868fa5e7c 100644 --- a/lib/libc/gen/getnetgrent.3 +++ b/lib/libc/gen/getnetgrent.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getnetgrent.3,v 1.8 1999/05/29 19:11:11 aaron Exp $ +.\" $OpenBSD: getnetgrent.3,v 1.9 1999/06/06 06:57:45 pjanzen Exp $ .\" .\" Copyright (c) 1992, 1993 .\" The Regents of the University of California. All rights reserved. @@ -57,13 +57,13 @@ which is described in .Xr netgroup 5 . If that file does not exist, and the system supports YP, -then the netgroup YP databased are used instead. +then the netgroup YP databases are used instead. The database defines a set of netgroups, each made up of one or more triples: .Bd -literal -offset indent (host, user, domain) .Ed .Pp -that defines a combination of host, user and domain. +that defines a combination of host, user, and domain. Any of the three fields may be specified as .Dq wildcards that match any string. @@ -73,8 +73,8 @@ The function sets the three pointer arguments to the strings of the next member of the current netgroup. If any of the string pointers are -.Fa (char *)0 -that field is considered a wildcard. +.Fa (char *)0 , +those fields are considered wildcards. .Pp The functions .Fn setnetgrent @@ -98,7 +98,7 @@ If any of the or .Ar domain arguments are -.Fa (char *)0 +.Fa (char *)0 , those fields will match any string value in the netgroup member. .Sh RETURN VALUES The function @@ -125,7 +125,7 @@ netgroup database file The function .Fn getnetgrent returns pointers to dynamically allocated data areas that are -.Xr free Ns 'd when +.Xr free 3 Ns 'd when the function .Fn endnetgrent is called. diff --git a/lib/libc/gen/setjmp.3 b/lib/libc/gen/setjmp.3 index c94fb6a3cde..5cf0403a319 100644 --- a/lib/libc/gen/setjmp.3 +++ b/lib/libc/gen/setjmp.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: setjmp.3,v 1.7 1999/06/05 03:44:54 aaron Exp $ +.\" $OpenBSD: setjmp.3,v 1.8 1999/06/06 06:57:45 pjanzen Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -71,13 +71,12 @@ and .Fn _setjmp functions save their calling environment in .Fa env . -Each of these functions return 0. +Each of these functions returns 0. .Pp The corresponding .Fn longjmp -functions restore the environment saved by their most recent respective -invocations -of the +functions restore the environment saved by the most recent +invocation of the respective .Fn setjmp function. They then return so that program execution continues as if the corresponding @@ -87,7 +86,7 @@ call had just returned the value specified by .Fa val , instead of 0. .Pp -Pairs of calls may be intermixed, i.e., both +Pairs of calls may be intermixed; i.e., both .Fn sigsetjmp and .Fn siglongjmp @@ -96,7 +95,7 @@ as well as and .Fn longjmp combinations may be used in the same program. However, individual -calls may not, e.g., the +calls may not \(em e.g., the .Fa env argument to .Fn setjmp @@ -132,11 +131,11 @@ The function pairs save and restore the signal mask if the argument .Fa savemask -is non-zero, otherwise only the register set and the stack are saved. +is non-zero. Otherwise, only the register set and the stack are saved. .Sh ERRORS If the contents of the .Fa env -are corrupted, or correspond to an environment that has already returned, +are corrupted or correspond to an environment that has already returned, the .Fn longjmp routine calls the routine diff --git a/lib/libc/gen/syslog.3 b/lib/libc/gen/syslog.3 index 6cc56e5c710..68a12813529 100644 --- a/lib/libc/gen/syslog.3 +++ b/lib/libc/gen/syslog.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: syslog.3,v 1.5 1999/06/05 03:44:54 aaron Exp $ +.\" $OpenBSD: syslog.3,v 1.6 1999/06/06 06:57:45 pjanzen Exp $ .\" .\" Copyright (c) 1985, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -253,9 +253,13 @@ always returns the previous log mask level. .Sh EXAMPLES .Bd -literal -offset indent -compact syslog(LOG_ALERT, "who: internal error 23"); + 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"); .Ed .Sh SEE ALSO |