Commit Graph

25 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 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 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 8b132ea145 - (void) casts.
- fix off-by-one bug in fgets()
- don't make the file unbuffered.
1998-11-24 22:19:01 +00:00
christos 38676913cd delint 1998-11-15 17:39:20 +00:00
christos 2c89343c25 delint 1998-11-13 15:46:52 +00:00
kleink 0b11c41974 Since these files are shared with parts of the BIND-4 userland (outside libc),
do the internal symbol renaming dance only if inside the libc build environment.
1998-10-14 19:33:49 +00:00
kleink 886f927ec6 Need internal names for res_init(), res_mkquery(), res_query() and res_search(). 1998-10-14 19:13:01 +00:00
perry 198f98faf0 $Id: -> Id: (to make hunting down other bad Ids easier). 1998-01-06 05:01:16 +00:00
jtc 43fa6fe319 If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore.  The library will use those
names internally.  Weak aliases are used to provide the original names
to the API.

This is only the first part of this change.  It is most of the functions
which are implemented in C for all NetBSD ports.  Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
1997-07-21 14:06:24 +00:00
mrg 38bfb6cd0a merge bind 4.9.6 resolver. still need to fix <resolv.h> 1997-07-20 13:33:17 +00:00
christos 8d36d3405e Fix RCSID's
Fix gcc warnings
Add missing prototypes
Use "namespace.h"
1997-07-13 19:57:30 +00:00
mrg 2d2ae90504 note possible security concerns. 1997-04-22 12:33:17 +00:00
mrg 023690d8db merge in the bind 4.9.5-P1 resolver. we are now _mostly_ the
same as this, with our changes also included (resolv.conf and
other minor differences).
1997-04-13 10:30:29 +00:00
mrg 9cd5492c02 - convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
1997-01-23 14:01:45 +00:00
mrg 237baea38a merge with the resolver in bind 4.9.3-P1. 1996-02-02 15:22:14 +00:00
cgd 83b55061cc oops; fix the cleanup. 1995-02-25 06:58:58 +00:00
cgd ef0582f1e7 clean up import. also convert everything to new Id format. 1995-02-25 06:20:26 +00:00
cgd f546ad9c8a casts for happiness. 1994-10-19 03:21:15 +00:00
pk fc016a129a Fix last bug correctly 1994-06-03 15:02:21 +00:00
pk 1429552f6e Defend against empty names. 1994-06-01 19:54:07 +00:00
deraadt bc93d2c77e new resolver. changes from 4.9.2 by <paul@vix.com>, as well as a number
of features and optimizations by myself.
1994-04-07 06:58:29 +00:00
jtc 9c20f740a3 Declare rcsid strings so they are stored in text segment. 1993-08-26 00:43:03 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00