freebsd-nq/lib/libc/stdlib
Warner Losh 94ad719cf4 Add reallocf to the library. This function is simliar to realloc, but
when it returns NULL to indicate failure, it will also free the memory
that was passed to it, if that was non-null.

This does not change the semantics of realloc.

A second commit will be done to commit the conversion of those places in
the code that can safely use this to avoid memory leaks when confronted
with low memory situations.

Beaten-to-death-but-finally-approved-in: -current
1998-09-14 20:34:34 +00:00
..
abort.3 Note that streams are now flushed on abort. 1996-10-26 18:14:44 +00:00
abort.c Use signal() in both the threaded and non-threaded cases. 1998-04-29 09:06:13 +00:00
abs.3 Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
abs.c
alloca.3
atexit.3
atexit.c Merge Lite2 changes 1997-03-11 11:39:58 +00:00
atexit.h Import CSRG 4.4BSD-Lite2 lib/libc onto vendor branch 1997-03-11 11:29:42 +00:00
atof.3 Remove a nolonger implented "BUGS" description. 1998-04-11 07:37:44 +00:00
atof.c
atoi.3
atoi.c
atol.3
atol.c
bsearch.3 Sort cross references. 1997-01-20 23:23:22 +00:00
bsearch.c
calloc.c malloc_sysv used before initialized, reported in PR4002 by 1997-07-01 18:39:38 +00:00
div.3
div.c
exit.3 Sort cross references. 1997-01-20 23:23:22 +00:00
exit.c Reference an external variable in threaded programs so that the 1998-04-29 09:08:43 +00:00
getenv.3
getenv.c
getopt.3 Fix a few nits in quoted code fragments and elsewhere. 1998-05-04 23:16:50 +00:00
getopt.c Import CSRG 4.4BSD-Lite2 lib/libc onto vendor branch 1997-03-11 11:29:42 +00:00
getsubopt.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
getsubopt.c
heapsort.c
labs.3 Sort cross references. 1997-01-20 23:23:22 +00:00
labs.c
ldiv.3
ldiv.c
Makefile.inc Add reallocf to the library. This function is simliar to realloc, but 1998-09-14 20:34:34 +00:00
malloc.3 Add reallocf to the library. This function is simliar to realloc, but 1998-09-14 20:34:34 +00:00
malloc.c preserve errno across the readlink() calls. There is no value in trashing 1998-06-18 09:13:16 +00:00
memory.3 Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
merge.c
netbsd_strtod.c This is a hack to workaround source that is coded to use long variables 1998-05-08 05:41:57 +00:00
putenv.c
qsort.3
qsort.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
radixsort.3 Fixed #include and/or prototype bugs in synopsis. 1997-04-19 15:57:20 +00:00
radixsort.c Merge Lite2 changes 1997-03-11 11:39:58 +00:00
rand.3
rand.c
random.3 .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq 1998-03-19 07:34:22 +00:00
random.c srandomdev: use stack junk value in the fallback code too 1997-06-15 18:23:19 +00:00
reallocf.c Add reallocf to the library. This function is simliar to realloc, but 1998-09-14 20:34:34 +00:00
realpath.3 Show the real revision date and not the date that this 1997-06-23 04:03:49 +00:00
realpath.c realpath() should break on looped symlinks. 1997-07-16 11:25:48 +00:00
setenv.c
strhash.c
strtod.3 .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq 1998-03-19 07:34:22 +00:00
strtod.c
strtol.3 Fixed missing consts in synopsis. 1997-04-13 13:37:56 +00:00
strtol.c
strtoll.c Get rid of integer overflow warning. 1997-08-23 23:51:12 +00:00
strtoq.c Get rid of integer overflow warning. 1997-08-23 23:51:12 +00:00
strtoul.3
strtoul.c
strtoull.c
strtouq.c
system.3
system.c