Commit Graph

12 Commits

Author SHA1 Message Date
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