|
NAMEgetnetgrent , innetgr ,
setnetgrent , endnetgrent
—
netgroup database operations
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <netdb.h>
int
int
int
void
void
DESCRIPTIONThese functions operate on the netgroup database file /etc/netgroup which is described in netgroup(5). The database defines a set of netgroups, each made up of one or more triples:(host, user, domain) The function The functions The function RETURN VALUESThe functiongetnetgrent () returns 0 for ``no more
netgroup members'' and 1 otherwise. The function
innetgr () returns 1 for a successful match and 0
otherwise. The functions setnetgrent () and
endnetgrent () have no return value.
FILES
COMPATIBILITYThe netgroup members have three string fields to maintain compatibility with other vendor implementations, however it is not obvious what use the domain string has within BSD.SEE ALSOnetgroup(5)BUGSThe functiongetnetgrent () returns pointers to
dynamically allocated data areas that are freed when the function
endnetgrent () is called.
Visit the GSP FreeBSD Man Page Interface. |