nis-util
1.0.D108
|
#include <netgroup.h>
Public Member Functions | |
bool | host_any (void) const |
bool | host_ignore (void) const |
bool | host_indexing (void) const |
bool | user_any (void) const |
bool | user_ignore (void) const |
bool | user_indexing (void) const |
rcstring | representation (void) const |
bool | operator== (const entry_t &) const |
Data Fields | |
rcstring | reference_to_netgroup |
rcstring | host |
rcstring | user |
rcstring | domain |
The entry struct is used to represent a netgroup entry.
Entries have two basic forms. They are either the name of another netgroup, or they are a (host,user,domain) tripple.
If the reference_to_netgroup instance variable is the null string, then the (host, use, domain) instance variables represent the group. If the reference_to_netgroup instance variable is not the empty string, then it is the name of another netgroup.
Definition at line 66 of file netgroup.h.
bool space_netgroup::entry_t::host_any | ( | void | ) | const |
The host_any method is used to determine if the host has been set to the "wildcard" value (the empty string).
Definition at line 250 of file netgroup.cc.
bool space_netgroup::entry_t::host_ignore | ( | void | ) | const |
The host_ignore method is used to determine if the host has been set to the "no valid value" value (the string "-").
Definition at line 258 of file netgroup.cc.
bool space_netgroup::entry_t::host_indexing | ( | void | ) | const |
The host_indexing method return true if this host should be indexed, for an inverted host index.
Definition at line 266 of file netgroup.cc.
bool space_netgroup::entry_t::operator== | ( | const entry_t & | arg | ) | const |
The equality operator.
Definition at line 340 of file netgroup.cc.
rcstring space_netgroup::entry_t::representation | ( | void | ) | const |
The representation method is used to generate a string which represents the entry_t, suitable for inserting into a netgroup file or netgroup map. (There is no newline on the end.)
Definition at line 276 of file netgroup.cc.
bool space_netgroup::entry_t::user_any | ( | void | ) | const |
The user_any method is used to determine if the user has been set to the "wildcard" value (the empty string).
Definition at line 224 of file netgroup.cc.
bool space_netgroup::entry_t::user_ignore | ( | void | ) | const |
The user_ignore method is used to determine if the user has been set to the "no valid value" value (the string "-").
Definition at line 232 of file netgroup.cc.
bool space_netgroup::entry_t::user_indexing | ( | void | ) | const |
The user_indexing method return true if this user should be indexed, for an inverted user index.
Definition at line 240 of file netgroup.cc.
The user instance variable is used to remember the user referenced by the group. The empty string means "wildcard", and is the only useful value. See netgroup(5) for an explanation of why this is so.
Definition at line 94 of file netgroup.h.
The host instance variable is used to remember the host referenced by the group. The empty string means "wildcard".
Definition at line 79 of file netgroup.h.
The reference_to_netgroup instance variable is used to remember the name of another netgroup.
Definition at line 72 of file netgroup.h.
The user instance variable is used to remember the user referenced by the group. The empty string means "wildcard".
Definition at line 86 of file netgroup.h.