diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-05-29 19:11:12 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-05-29 19:11:12 +0000 |
commit | b2a110ce8991f3cd33c033c6958e5eddfc745d25 (patch) | |
tree | ff5df48915789b9684e897566ab951b011c428d7 /lib/libc/gen/getnetgrent.3 | |
parent | 289bd574ed697e90163fa7f9ceaeff389a7a4dd1 (diff) |
repairs
Diffstat (limited to 'lib/libc/gen/getnetgrent.3')
-rw-r--r-- | lib/libc/gen/getnetgrent.3 | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/lib/libc/gen/getnetgrent.3 b/lib/libc/gen/getnetgrent.3 index 02fa35a5ff0..c722c3f9908 100644 --- a/lib/libc/gen/getnetgrent.3 +++ b/lib/libc/gen/getnetgrent.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getnetgrent.3,v 1.7 1999/02/27 21:55:08 deraadt Exp $ +.\" $OpenBSD: getnetgrent.3,v 1.8 1999/05/29 19:11:11 aaron Exp $ .\" .\" Copyright (c) 1992, 1993 .\" The Regents of the University of California. All rights reserved. @@ -56,27 +56,24 @@ These functions operate on the netgroup database file which is described in .Xr netgroup 5 . -If that file does not exist, and the system supports -.Sy YP , -then the -.Sy netgroup -.Sy YP -databases are used instead. +If that file does not exist, and the system supports YP, +then the netgroup YP databased 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. -Any of the three fields may be specified as ``wildcards'' that match any -string. +Any of the three fields may be specified as +.Dq wildcards +that match any string. .Pp The function .Fn getnetgrent sets the three pointer arguments to the strings of the next member of the current netgroup. If any of the string pointers are -.Sy (char *)0 +.Fa (char *)0 that field is considered a wildcard. .Pp The functions @@ -96,28 +93,30 @@ The function .Fn innetgr searches for a match of all fields within the specified group. If any of the -.Sy host , -.Sy user , +.Ar host , +.Ar user , or -.Sy domain +.Ar domain arguments are -.Sy (char *)0 +.Fa (char *)0 those fields will match any string value in the netgroup member. .Sh RETURN VALUES The function .Fn getnetgrent -returns 0 for ``no more netgroup members'' and 1 otherwise. +returns 0 for +.Dq no more netgroup members +or 1 otherwise. The function .Fn innetgr -returns 1 for a successful match and 0 otherwise. +returns 1 for a successful match or 0 otherwise. The functions .Fn setnetgrent and .Fn endnetgrent have no return value. .Sh FILES -.Bl -tag -width /etc/netgroup -compact -.It Pa /etc/netgroup +.Bl -tag -width /etc/netgroup.db -compact +.It Pa /etc/netgroup.db netgroup database file .El .Sh SEE ALSO @@ -125,7 +124,8 @@ netgroup database file .Sh BUGS The function .Fn getnetgrent -returns pointers to dynamically allocated data areas that are free'd when +returns pointers to dynamically allocated data areas that are +.Xr free Ns 'd when the function .Fn endnetgrent is called. |