NetBSD/lib/libc/stdlib
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
..
_rand48.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
_strtoq.c
_strtouq.c
a64l.3 Last of the .Os cleanups. .Os is defined in the tmac.doc-common file, 1999-03-22 19:44:33 +00:00
a64l.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
abort.3
abort.c
abs.3
abs.c
alloca.3 Last of the .Os cleanups. .Os is defined in the tmac.doc-common file, 1999-03-22 19:44:33 +00:00
atexit.3
atexit.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
atexit.h Add 3 additional slots to the statically allocated exit handler array to 1999-03-22 19:09:10 +00:00
atof.3
atof.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
atoi.3
atoi.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
atol.3
atol.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
bsearch.3
bsearch.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
calloc.c
div.3
div.c
drand48.c
erand48.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
exit.3
exit.c
getenv.3
getenv.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
getopt_long.3 getopt long functionality 1999-07-23 03:55:27 +00:00
getopt_long.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
getopt.3 Last of the .Os cleanups. .Os is defined in the tmac.doc-common file, 1999-03-22 19:44:33 +00:00
getopt.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
getsubopt.3
getsubopt.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
heapsort.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
jrand48.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
l64a.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
labs.3
labs.c
lcong48.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
ldiv.3
ldiv.c
Lint_abs.c
Lint_div.c
Lint_labs.c
Lint_ldiv.c
local.h
lrand48.c
Makefile.inc replace malloc(3) with one from freebsd which documents our new malloc.c 1999-08-02 03:18:46 +00:00
malloc.3 Restore the behaviour of not setting errno to ENOMEM when allocating 0 1999-09-10 10:38:06 +00:00
malloc.c Restore the behaviour of not setting errno to ENOMEM when allocating 0 1999-09-10 10:38:06 +00:00
memory.3 Last of the .Os cleanups. .Os is defined in the tmac.doc-common file, 1999-03-22 19:44:33 +00:00
merge.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
mrand48.c
multibyte.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
nrand48.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
putenv.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
qabs.3
qabs.c
qdiv.3
qdiv.c
qsort.3
qsort.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
radixsort.3
radixsort.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
rand48.3
rand48.h
rand_r.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
rand.3
rand.c whitespace knf 1999-09-16 09:43:42 +00:00
random.3 Last of the .Os cleanups. .Os is defined in the tmac.doc-common file, 1999-03-22 19:44:33 +00:00
random.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
seed48.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
setenv.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
srand48.c
strtod.3 Add missing .El lines. 1999-03-09 19:45:09 +00:00
strtod.c Serialize freelist access with a mutex. 1999-02-06 16:01:22 +00:00
strtol.3
strtol.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
strtoq.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
strtoul.3
strtoul.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
strtouq.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
system.3 Fix typo noted by NAKAJIMA Yoshihiro in PR lib/7328. 1999-04-06 19:44:42 +00:00
system.c
tdelete.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
tfind.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
tsearch.3 t{search,find,walk,delete} from OpenBSD via Neil A. Carson 1999-02-22 10:33:15 +00:00
tsearch.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00
twalk.c * use _DIAGASSERT() to check pointer arguments against NULL and file 1999-09-16 11:44:54 +00:00