freebsd-skq/contrib/bind/lib/irs
2001-01-28 23:00:22 +00:00
..
dns_gr.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
dns_ho.c Virgin import of BIND v8.2.3-T5B 2000-05-26 07:17:19 +00:00
dns_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
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 bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
dns_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
dns_sv.c Virgin import of BIND v8.2.3-T5B 2000-05-26 07:17:19 +00:00
dns.c Virgin import of BIND v8.2.3-T5B 2000-05-26 07:17:19 +00:00
gai_strerror.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_gr.c Virgin import of BIND v8.2.3-T6B 2000-10-31 12:35:45 +00:00
gen_ho.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_ng.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_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 bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +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 bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
getaddrinfo.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
getgrent_r.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
getgrent.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
gethostent_r.c Virgin import of BIND v8.2.3-T6B 2000-10-31 12:35:45 +00:00
gethostent.c Virgin import of BIND v8.2.3-T5B 2000-05-26 07:17:19 +00:00
getnameinfo.c Virgin import of BIND v8.2.3-REL 2001-01-28 23:00:22 +00:00
getnetent_r.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
getnetent.c Virgin import of BIND v8.2.3-REL 2001-01-28 23:00:22 +00:00
getnetgrent_r.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
getnetgrent.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
getprotoent_r.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
getprotoent.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
getpwent_r.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
getpwent.c Virgin import of BIND v8.2.3-T5B 2000-05-26 07:17:19 +00:00
getservent_r.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
getservent.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +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 Virgin import of BIND v8.2.3-T5B 2000-05-26 07:17:19 +00:00
irp_gr.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_ho.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_ng.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_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 bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +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 bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +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 Virgin import of BIND v8.2.3-T5B 2000-05-26 07:17:19 +00:00
irpmarshall.c Virgin import of BIND v8.2.3-REL 2001-01-28 23:00:22 +00:00
irs_data.c Virgin import of BIND v8.2.3-REL 2001-01-28 23:00:22 +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 bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
lcl_ho.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_ng.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_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
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 bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
lcl_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
lcl.c Virgin import of BIND v8.2.3-T5B 2000-05-26 07:17:19 +00:00
Makefile Virgin import of BIND v8.2.3-REL 2001-01-28 23:00:22 +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 bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
nis_ho.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
nis_ng.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
nis_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
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 bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +00:00
nis_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
nis_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
nis.c Virgin import of BIND v8.2.3-T5B 2000-05-26 07:17:19 +00:00
nul_ng.c Import bind v8.2.2.p5, minus the crypto for the time being. The bind 1999-11-30 02:43:11 +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 Virgin import of BIND v8.2.3-T5B 2000-05-26 07:17:19 +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.