freebsd-dev/lib/libc/stdio
Warner Losh e8420087b0 Replace memory leaking instances of realloc with non-leaking reallocf.
In some cases replace if (a == null) a = malloc(x); else a =
realloc(a, x); with simple reallocf(a, x).  Per ANSI-C, this is
guaranteed to be the same thing.

I've been running these on my system here w/o ill effects for some
time.  However, the CTM-express is at part 6 of 34 for the CAM
changes, so I've not been able to do a build world with the CAM in the
tree with these changes.  Shouldn't impact anything, but...
1998-09-16 04:17:47 +00:00
..
_flock_stub.c Remove leading underscores for the functions (weak symbols here) that 1998-05-05 21:56:42 +00:00
asprintf.c Replace memory leaking instances of realloc with non-leaking reallocf. 1998-09-16 04:17:47 +00:00
clrerr.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
fclose.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
fclose.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
fdopen.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
feof.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
ferror.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
ferror.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
fflush.3 Sort cross references. 1997-01-20 23:23:22 +00:00
fflush.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
fgetc.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
fgetln.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
fgetln.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
fgetpos.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
fgets.3 Correct the paramter type of the second argument to fgets. 1996-08-06 22:34:44 +00:00
fgets.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
fileno.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
findfp.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
flags.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
floatio.h BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
fopen.3 Fixed #include and/or prototype bugs in synopsis. 1997-04-13 13:35:33 +00:00
fopen.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
fprintf.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
fpurge.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
fputc.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
fputs.3 Sort cross references. 1997-01-20 23:23:22 +00:00
fputs.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
fread.3 Fixed various problems: typos, grammer, missing include files 1996-05-23 01:05:25 +00:00
fread.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
freopen.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
fscanf.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
fseek.3 Fixed #include and/or prototype bugs in synopsis. 1997-04-13 13:35:33 +00:00
fseek.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
fsetpos.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
ftell.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
funopen.3 Fixed #include and/or prototype bugs in synopsis. 1997-04-13 13:35:33 +00:00
funopen.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
fvwrite.c Replace memory leaking instances of realloc with non-leaking reallocf. 1998-09-16 04:17:47 +00:00
fvwrite.h BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
fwalk.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
fwrite.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
getc.3 Sort cross references. 1997-01-20 23:23:22 +00:00
getc.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
getchar.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
gets.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
getw.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
glue.h BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
local.h Import CSRG 4.4BSD-Lite2 lib/libc onto vendor branch 1997-03-11 11:29:42 +00:00
makebuf.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
Makefile.inc Remote the NetBSD kludge for vfprintf.c 1998-05-08 05:17:11 +00:00
mktemp.3 Many security improvements from OpenBSD: 1998-02-13 02:13:24 +00:00
mktemp.c Fix a nasty flaw as a result of using the arc4random() pre-seeding of 1998-04-14 07:25:05 +00:00
perror.c perror () does not prepend ": " for the non-NULL argument "". close PR 1492 1996-09-30 15:39:18 +00:00
printf.3 Replace my original asprintf() and vasprintf() hacks with something 1998-07-08 00:44:56 +00:00
printf.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
putc.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
putc.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
putchar.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
puts.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
putw.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
refill.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
remove.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
remove.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
rewind.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
rget.c Suggested by: Bruce Evans, Jeffrey Hsu, Gary Palmer 1996-06-22 10:34:15 +00:00
scanf.3 Add 64 bit int support to scanf() 1997-07-01 17:46:39 +00:00
scanf.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
setbuf.3 Fixed #include and/or prototype bugs in synopsis. 1997-04-13 13:35:33 +00:00
setbuf.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
setbuffer.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
setvbuf.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
snprintf.c 1. EOF was returned when the buffer size was larger than INT_MAX. This 1998-01-01 20:15:58 +00:00
sprintf.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
sscanf.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
stdio.3 Fixed a few ancient typos, added a little missing stuff, and updated 1998-03-08 15:15:33 +00:00
stdio.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
tempnam.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
tmpfile.c Added #include <string.h> to get prototypes. 1998-03-09 06:51:23 +00:00
tmpnam.3 Added missing section numbers to a bunch of .Xr macros, or 1996-03-27 20:49:07 +00:00
tmpnam.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
ungetc.3 Sort cross references. 1997-01-20 23:23:22 +00:00
ungetc.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
vasprintf.c Replace memory leaking instances of realloc with non-leaking reallocf. 1998-09-16 04:17:47 +00:00
vfprintf.c Replace memory leaking instances of realloc with non-leaking reallocf. 1998-09-16 04:17:47 +00:00
vfscanf.c Fixed long double formats. They were mostly not implemented except 1997-11-23 06:02:47 +00:00
vprintf.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
vscanf.c Add FILE locking stubs for libc. 1998-04-11 07:40:47 +00:00
vsnprintf.c 1. EOF was returned when the buffer size was larger than INT_MAX. This 1998-01-01 20:15:58 +00:00
vsprintf.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
vsscanf.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
wbuf.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
wsetup.c Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00