|
Data Structures
|
struct |
_ns_dtab |
struct |
_ns_src |
struct |
_ns_mtab |
Defines
|
#define |
_NSSWITCH_H 1
|
#define |
NSS_MODULE_INTERFACE_VERSION 1
|
#define |
_PATH_NS_CONF "/etc/nsswitch.conf"
|
#define |
NS_ACTION_CONTINUE 0
|
#define |
NS_ACTION_RETURN 1
|
#define |
NS_SUCCESS (1<<0)
|
#define |
NS_UNAVAIL (1<<1)
|
#define |
NS_NOTFOUND (1<<2)
|
#define |
NS_TRYAGAIN (1<<3)
|
#define |
NS_RETURN (1<<4)
|
#define |
NS_TERMINATE (NS_SUCCESS|NS_RETURN)
|
#define |
NS_STATUSMASK 0x000000ff
|
#define |
NSSRC_FILES "files"
|
#define |
NSSRC_DNS "dns"
|
#define |
NSSRC_NIS "nis"
|
#define |
NSSRC_COMPAT "compat"
|
#define |
NSDB_HOSTS "hosts"
|
#define |
NSDB_GROUP "group"
|
#define |
NSDB_GROUP_COMPAT "group_compat"
|
#define |
NSDB_NETGROUP "netgroup"
|
#define |
NSDB_NETWORKS "networks"
|
#define |
NSDB_PASSWD "passwd"
|
#define |
NSDB_PASSWD_COMPAT "passwd_compat"
|
#define |
NSDB_SHELLS "shells"
|
#define |
NSDB_ALIASES "aliases"
|
#define |
NSDB_AUTH "auth"
|
#define |
NSDB_AUTOMOUNT "automount"
|
#define |
NSDB_BOOTPARAMS "bootparams"
|
#define |
NSDB_ETHERS "ethers"
|
#define |
NSDB_EXPORTS "exports"
|
#define |
NSDB_NETMASKS "netmasks"
|
#define |
NSDB_PHONES "phones"
|
#define |
NSDB_PRINTCAP "printcap"
|
#define |
NSDB_PROTOCOLS "protocols"
|
#define |
NSDB_REMOTE "remote"
|
#define |
NSDB_RPC "rpc"
|
#define |
NSDB_SENDMAILVARS "sendmailvars"
|
#define |
NSDB_SERVICES "services"
|
#define |
NSDB_TERMCAP "termcap"
|
#define |
NSDB_TTYS "ttys"
|
#define |
NSS_METHOD_PROTOTYPE(method) int method(void *, void *, va_list)
|
#define |
NS_FILES_CB(F, C) { NSSRC_FILES, F, C },
|
#define |
NS_COMPAT_CB(F, C) { NSSRC_COMPAT, F, C },
|
#define |
NS_DNS_CB(F, C)
|
#define |
NS_NIS_CB(F, C)
|
Typedefs
|
typedef int(* |
nss_method )(void *_retval, void *_mdata, va_list _ap)
|
typedef _ns_dtab
|
ns_dtab |
typedef _ns_src
|
ns_src |
typedef _ns_mtab
|
ns_mtab |
typedef void(* |
nss_module_unregister_fn )(ns_mtab *, unsigned int)
|
typedef ns_mtab *(*
|
nss_module_register_fn )(const char *, unsigned int *, nss_module_unregister_fn *)
|
Enumerations
|
enum |
nss_lookup_type { nss_lt_name = 1,
nss_lt_id = 2,
nss_lt_all = 3
}
|
Variables
|
const ns_src
|
__nsdefaultsrc []
|