/*++ /* NAME /* dict_nis 3 /* SUMMARY /* dictionary manager interface to NIS maps /* SYNOPSIS /* #include <dict_nis.h> /* /* DICT *dict_nis_open(map, open_flags, dict_flags) /* const char *map; /* int open_flags; /* int dict_flags; /* DESCRIPTION /* dict_nis_open() makes the specified NIS map accessible via /* the generic dictionary operations described in dict_open(3). /* SEE ALSO /* dict(3) generic dictionary manager /* DIAGNOSTICS /* Fatal errors: out of memory, attempt to update NIS map. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA
/*--*/
if (yp_get_default_domain(&dict_nis_domain) != 0
|| dict_nis_domain == 0 || *dict_nis_domain == 0
|| strcasecmp(dict_nis_domain, "(none)") == 0) {
dict_nis_domain = dict_nis_disabled;
msg_warn("%s: NIS domain name not set - NIS lookups disabled", myname);
} if (msg_verbose)
msg_info("%s: NIS domain %s", myname, dict_nis_domain);
}
/* dict_nis_strerror - map error number to string */
staticchar *dict_nis_strerror(int err)
{
/* *Grr.Thereshouldbeastandardfunctionforthis.
*/ switch (err) { case YPERR_BADARGS: return ("args to function are bad"); case YPERR_RPC: return ("RPC failure - domain has been unbound"); case YPERR_DOMAIN: return ("can't bind to server on this domain"); case YPERR_MAP: return ("no such map in server's domain"); case YPERR_KEY: return ("no such key in map"); case YPERR_YPERR: return ("internal yp server or client error"); case YPERR_RESRC: return ("resource allocation failure"); case YPERR_NOMORE: return ("no more records in map database"); case YPERR_PMAP: return ("can't communicate with portmapper"); case YPERR_YPBIND: return ("can't communicate with ypbind"); case YPERR_YPSERV: return ("can't communicate with ypserv"); case YPERR_NODOM: return ("local domain name not set"); case YPERR_BADDB: return ("yp database is bad"); case YPERR_VERS: return ("yp version mismatch"); case YPERR_ACCESS: return ("access violation"); case YPERR_BUSY: return ("database busy"); default: return ("unknown NIS lookup error");
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.