freebsd-skq/contrib/bind/lib/irs
2002-07-01 01:07:56 +00:00
..
dns_gr.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
dns_ho.c Import of ISC BIND version 8.3.3 2002-07-01 01:07:56 +00:00
dns_nw.c Import of ISC BIND version 8.3.3 2002-07-01 01:07:56 +00:00
dns_p.h Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
dns_pr.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
dns_pw.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
dns_sv.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
dns.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
gai_strerror.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
gen_gr.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
gen_ho.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
gen_ng.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
gen_nw.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
gen_p.h Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
gen_pr.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
gen_pw.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
gen_sv.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
gen.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
getaddrinfo.c Import of ISC BIND 8.3.2-T1B. 2002-05-13 19:31:58 +00:00
getgrent_r.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
getgrent.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
gethostent_r.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
gethostent.c Import of ISC BIND version 8.3.3 2002-07-01 01:07:56 +00:00
getnameinfo.c Import of ISC BIND 8.3.2-T1B. 2002-05-13 19:31:58 +00:00
getnetent_r.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
getnetent.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
getnetgrent_r.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
getnetgrent.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
getprotoent_r.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
getprotoent.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
getpwent_r.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
getpwent.c Virgin import of BIND v8.2.3-T5B 2000-05-26 07:17:19 +00:00
getservent_r.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
getservent.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
hesiod_p.h Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
hesiod.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
irp_gr.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
irp_ho.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
irp_ng.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
irp_nw.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
irp_p.h Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
irp_pr.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
irp_pw.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
irp_sv.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
irp.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
irpmarshall.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
irs_data.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
irs_data.h Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
irs_p.h Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
lcl_gr.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
lcl_ho.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
lcl_ng.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
lcl_nw.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
lcl_p.h Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
lcl_pr.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
lcl_pw.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
lcl_sv.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
lcl.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
Makefile Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
Makefile.BSD Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
nis_gr.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
nis_ho.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
nis_ng.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
nis_nw.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
nis_p.h Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
nis_pr.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
nis_pw.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
nis_sv.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
nis.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
nul_ng.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00
pathnames.h Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
README Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
util.c Import of ISC BIND 8.3.1-REL. 2002-02-04 19:12:46 +00:00

/*
 * 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.