08d2a7f10e
symbol conflict. |
||
---|---|---|
.. | ||
dns_gr.c | ||
dns_ho.c | ||
dns_nw.c | ||
dns_p.h | ||
dns_pr.c | ||
dns_pw.c | ||
dns_sv.c | ||
dns.c | ||
gai_strerror.c | ||
gen_gr.c | ||
gen_ho.c | ||
gen_ng.c | ||
gen_nw.c | ||
gen_p.h | ||
gen_pr.c | ||
gen_pw.c | ||
gen_sv.c | ||
gen.c | ||
getaddrinfo.c | ||
getgrent_r.c | ||
getgrent.c | ||
gethostent_r.c | ||
gethostent.c | ||
getnameinfo.c | ||
getnetent_r.c | ||
getnetent.c | ||
getnetgrent_r.c | ||
getnetgrent.c | ||
getprotoent_r.c | ||
getprotoent.c | ||
getpwent_r.c | ||
getpwent.c | ||
getservent_r.c | ||
getservent.c | ||
hesiod_p.h | ||
hesiod.c | ||
irp_gr.c | ||
irp_ho.c | ||
irp_ng.c | ||
irp_nw.c | ||
irp_p.h | ||
irp_pr.c | ||
irp_pw.c | ||
irp_sv.c | ||
irp.c | ||
irpmarshall.c | ||
irs_data.c | ||
irs_data.h | ||
irs_p.h | ||
lcl_gr.c | ||
lcl_ho.c | ||
lcl_ng.c | ||
lcl_nw.c | ||
lcl_p.h | ||
lcl_pr.c | ||
lcl_pw.c | ||
lcl_sv.c | ||
lcl.c | ||
Makefile.BSD | ||
nis_gr.c | ||
nis_ho.c | ||
nis_ng.c | ||
nis_nw.c | ||
nis_p.h | ||
nis_pr.c | ||
nis_pw.c | ||
nis_sv.c | ||
nis.c | ||
nul_ng.c | ||
pathnames.h | ||
README | ||
util.c |
/* * Copyright (c) 1996,1999 by Internet Software Consortium. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS * SOFTWARE. */ This is the Information Retrieval Service (IRS). Designed by Paul Vixie (ISC) and Ted T'so (MIT), 1995. Written by Paul Vixie, Ted T'so and Sam Stoller, 1996. Id: README,v 1.5 1999/01/08 19:23:52 vixie Exp Introduction: The /etc/irs.conf file defines access methods (like DNS or NIS or LOCAL) for each map (like PASSWD or GROUP or HOSTS). One of the access methods is "generic" in that it uses the rules from /etc/irs.conf to decide which of potentially several different access methods to use for any given map. Stubs have been written for all of the system getXbyY() functions so that old programs can get this new "multiple access method" capability without any source code changes. Thread Safety: It is possible for a thread safe program to be altered to call the underlying interface (rather than the standard getXbyY() stubs) and get some reentrance capabilities. Note that the underlying libraries (which we call) are not all thread-safe, for example, the YP and DNS resolvers. A lot more work will need to be done before we have full thread safety. But we believe that the native API for this system does not impose any reentrancy problems. We don't use global or static variables anywhere except in the getXbyY() stubs. Apologies: We did cheap object orientation without using C++. This stuff is standard C, and it suffers from some of the defects shared by all object systems implemented in C. Even so, this is the smallest design we could think of that would be extensible to more access methods, more map types, and more map operations (like BYNAME or BYGID or whatever) in the future. There's a fair amount of duplicated code between the different access methods for a given map. For example, the code that parses the passwd entries is almost identical between the DNS and NIS map objects. To clean this up, the almost-identical functions need to be split into similar and dissimilar parts, and some parts of the "struct pvt"'s need to be made shared via substructures.