Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ endnetgrent(3C) — HP-UX 8.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

netgroup(4)

getnetgrent(3C)

Requires Optional NFS Services Software

NAME

getnetgrent, setnetgrent, endnetgrent, innetgr − get network group entry

SYNOPSIS

int innetgr(
char *netgroup,
char *machine,
char *user,
char *domain
);

int setnetgrent(char *netgroup);

int endnetgrent();

int getnetgrent(
char **machinep,
char **userp,
char **domainp
);

DESCRIPTION

innetgr returns 1 or 0, depending on whether netgroup contains the machine, user, and domain triple as a member.  Any of the three strings (machine, user, or domain) can be NULL to signify a wild card. 

getnetgrent returns the next member of a network group.  After the call, machinep contains a pointer to a string containing the name of the machine part of the network group member.  Pointers userp and domainp behave in a manner similar to machinep .  If any of these pointers are returned with a NULL value, they are interpreted as wild cards.  getnetgrent allocates space for the names.  This space is released when an endnetgrent call is made.  getnetgrent returns 1 if it succeeded in obtaining another network group member, 0 if it reached the end of the group. 

setnetgrent establishes the network group from which getnetgrent obtains members, and also restarts calls to getnetgrent from the beginning of the list.  If the previous setnetgrent call was to a different network group, a endnetgrent call is implied.  The endnetgrent call frees the space allocated during the getnetgrent calls. 

AUTHOR

getnetgrent was developed by Sun Microsystems, Inc. 

FILES

/etc/netgroup

SEE ALSO

netgroup(4). 

INTERNATIONAL SUPPORT

8-bit data, 16-bit data, messages

Hewlett-Packard Company  —  HP-UX Release 8.05: June 1991

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026