Commit Graph

15 Commits

Author SHA1 Message Date
lukem
5994f053ec * Improve the comments in <nsswitch.h>
* Provide some more useful default ns_src arrays.
2004-11-10 07:23:32 +00:00
lukem
25d91a60fb * Re-number NS_FORCEALL from 1<<7 to 1<<8, moving it out of the "public"
bitrange for nsdispatch(3) return values.
* Tweak documentation comments in nsswitch.h
* Ensure the result from the back-end method is masked with
  NS_STATUSMASK before nsdispatch(3) returns it.
2004-10-04 04:02:27 +00:00
lukem
e775b9e35a Implement NS_FORCEALL, which may be set in defaults[0].flags by a caller of
nsdispatch(3) to indicate that all available database methods for a source
will be invoked.  This is useful for functions such as endgrent(3).
2004-09-29 02:47:32 +00:00
thorpej
43d6d8d887 Add support for dynamically loading nsswitch modules on ELF platforms.
Adapted from FreeBSD.  Maintains full backward API / ABI compatbility
with built-in-only nsdispatch().

While here, also make nsdispatch() itself thread-safe.
2004-07-24 18:42:51 +00:00
kristerw
a7c803af07 Remove variable names from prototypes. 2003-07-09 01:59:34 +00:00
christos
0891c39b57 remove declaration of _nsyylineno from here. 2000-12-20 20:47:55 +00:00
scw
56af058870 Declare _nsyylineno as extern since it belongs in the data section
(due to being initialised in nslexer.[cy]).
2000-12-13 21:58:56 +00:00
simonb
3f935d014c Remove 'extern' from function declarations. 2000-06-13 01:21:52 +00:00
lukem
338f7d21c4 change retval of _nsdbtaddsrc and _nsdbtput 1999-11-28 05:51:46 +00:00
lukem
6b9774ba41 use _BSD_VA_LIST_ from <machine/ansi.h> instead of using va_list from
<[stdarg,varargs}.h>. as recommended by Klaus Klein.
1999-04-18 01:53:15 +00:00
lukem
8dacb36581 always add compat functions in NS_COMPAT_CB; make it the responsibility of
the methods to check that yp/hesiod is supported.
1999-01-26 01:04:07 +00:00
lukem
ecaf658368 * support extra two arguments to nsdispatch():
const char *method		/* method name for dynamic linking */
	const ns_src defaults[]		/* list of defaults */
* bring ns_src into the public arena for above
* make NS_xxx_CB() expand to nothing instead of { src, NULL } - makes
  the tables smaller
* convert 'typedef struct xyz { ... } xyz' -> 'typedef struct { ... } xyz'
  (which is how it used to be before i experimented with (and ditched) TAILQs)
1999-01-19 07:55:14 +00:00
lukem
b02776f64f actually set the cb_data field to the (,C) arg in NS_*_CB() 1999-01-18 01:01:27 +00:00
lukem
a54769033a remove NSSRC_NISPLUS for now, NSDB_NETWORKS is now implemented 1999-01-16 02:58:28 +00:00
lukem
f649503d99 merge nsswitch into main branch 1999-01-15 12:21:16 +00:00