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 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
alloca.3 Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
atexit.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
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 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
atoi.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
atoi.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
atol.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
atol.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
bsearch.3 Sort cross references. 1997-01-20 23:23:22 +00:00
bsearch.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
calloc.c malloc_sysv used before initialized, reported in PR4002 by 1997-07-01 18:39:38 +00:00
div.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
div.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
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 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getenv.c Doubled the performance of getenv()/__findenv() by rewriting it to not 1995-10-17 21:37:41 +00:00
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 General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
heapsort.c Don't include <sys/types.h> when it isn't used. 1996-04-19 18:40:25 +00:00
labs.3 Sort cross references. 1997-01-20 23:23:22 +00:00
labs.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
ldiv.3 Fixed various problems: typos, grammer, missing include files 1996-05-23 01:05:25 +00:00
ldiv.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
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 Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
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 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
qsort.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
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 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
rand.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
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 General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
strhash.c Return pointer to new hash node when search inserts it (e.g. there 1996-01-13 14:25:04 +00:00
strtod.3 .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq 1998-03-19 07:34:22 +00:00
strtod.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
strtol.3 Fixed missing consts in synopsis. 1997-04-13 13:37:56 +00:00
strtol.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
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 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
strtoul.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
strtoull.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
strtouq.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
system.3 Submitted by: (based on code in "Advanced Programming in the Unix Environment" 1996-06-05 00:08:54 +00:00
system.c Oops, replace a rather important line that was lost in transit 8-( 1996-06-08 15:28:11 +00:00