Commit Graph

15 Commits

Author SHA1 Message Date
mycroft 605490369c Delint.
Remove trailing ; from uses of __weak_alias().  The macro inserts this if
needed.
2000-01-22 22:19:07 +00:00
lukem 2468bbbf42 don't use err(); instead pass an error condition back to a higher
layer to warn() about.
1999-11-28 05:46:15 +00:00
lukem d896261208 back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
1999-09-20 04:38:56 +00:00
lukem 2393f50e9e return NS_UNAVAIL if args are dodgy 1999-09-16 23:43:52 +00:00
lukem b48252f365 * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
  and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

		_DIAGASSERT(path != NULL)
	#ifdef _DIAGNOSTIC
		if (path == NULL) {
			errno = EFAULT;
			return (-1);
		}
	#endif
1999-09-16 11:44:54 +00:00
christos 8fe3352a10 sprinkle argsused till lint smiles at you. 1999-05-03 15:17:13 +00:00
lukem 257ec2e899 specifically include stdarg/varargs.h 1999-04-18 02:27:53 +00:00
lukem 645b10c9c4 add rcsids 1999-01-25 00:16:17 +00:00
lukem 0da2aba208 minor knf; don't exceed 80 columns ;) 1999-01-20 23:31:02 +00:00
christos 4e07a5c03b - add ARGSUSED
- remove unnecessary casts
- const poisoning
1999-01-20 13:05:29 +00:00
lukem c8851d63a0 weak_alias nsdispatch 1999-01-20 11:49:33 +00:00
lukem 37df672063 * support extra two arguments to nsdispatch():
const char *method		/* method name for dynamic linking */
	const ns_src defaults[]		/* list of defaults */
* document above, and expand other docco.
1999-01-19 07:58:05 +00:00
lukem 29f39a2ca1 fix thinko introduced in last rototilling of nsdispatch; _nsdbtget()
would always return the entry for the first entry looked up.  noted by
andrew gillham (manifesting itself as ftp failing to lookup names).
1999-01-17 04:49:04 +00:00
lukem 6c5df78e61 remove debugging override of _PATH_NS_CONF 1999-01-16 01:21:01 +00:00
lukem de3b78d72a merge nsswitch into main branch 1999-01-15 12:48:41 +00:00