NetBSD/lib/libc/stdio
kristerw a505fc7826 Fix two bugs:
1. snprintf(foo, 0. "XXX") is guaranteed not to write in foo by the
   standard (ISO/IEC 9899 7.19.6.5) but our implementation handles this
   as if the buffer has a size of (size_t)-1.

2. snprintf(NULL, 0, "XXX") leaks memory since cantwrite() allocates
   memory if _bf._base == NULL, and this buffer is never freed
   (PR 16483).
2003-01-05 11:05:47 +00:00
..
Makefile.inc - Migrate fparseln(3) from libutil to libc, where it should have been in 2002-11-30 03:04:44 +00:00
_fseeko.c
_ftello.c
asprintf.c __STDC__ is always defined on NetBSD. 2002-05-26 14:43:59 +00:00
clrerr.c
fclose.3 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
fclose.c - make FILE structure extensible without breaking binary-compatibility. 2001-12-07 11:47:40 +00:00
fdopen.c
feof.c
ferror.3 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
ferror.c
fflush.3 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
fflush.c
fgetc.c
fgetln.3 import CAVEATS sections from OpenBSD. 2002-07-10 14:37:12 +00:00
fgetln.c
fgetpos.c
fgets.3 Correct wrong comparison in example. 2002-07-21 19:04:03 +00:00
fgets.c - make FILE structure extensible without breaking binary-compatibility. 2001-12-07 11:47:40 +00:00
fgetwc.c - make FILE structure extensible without breaking binary-compatibility. 2001-12-07 11:47:40 +00:00
fileext.h add files forgotten in my previous commit. 2001-12-07 12:02:07 +00:00
fileno.c
findfp.c fully initialize the structure to avoid gcc complaints. 2002-03-12 22:56:16 +00:00
flags.c
floatio.h
fopen.3 New sentence, new line. From Robert Elz. 2002-10-01 17:22:00 +00:00
fopen.c
fparseln.3 - Migrate fparseln(3) from libutil to libc, where it should have been in 2002-11-30 03:04:44 +00:00
fparseln.c - Migrate fparseln(3) from libutil to libc, where it should have been in 2002-11-30 03:04:44 +00:00
fprintf.c __STDC__ is always defined on NetBSD. 2002-05-26 14:43:59 +00:00
fpurge.c - make FILE structure extensible without breaking binary-compatibility. 2001-12-07 11:47:40 +00:00
fputc.c
fputs.3 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
fputs.c - make FILE structure extensible without breaking binary-compatibility. 2001-12-07 11:47:40 +00:00
fputwc.c - make FILE structure extensible without breaking binary-compatibility. 2001-12-07 11:47:40 +00:00
fread.3 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
fread.c
freopen.c - make FILE structure extensible without breaking binary-compatibility. 2001-12-07 11:47:40 +00:00
fscanf.c __STDC__ is always defined on NetBSD. 2002-05-26 14:43:59 +00:00
fseek.3 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
fseek.c
fseeko.c
fsetpos.c
ftell.c
ftello.c
funopen.3 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
funopen.c
fvwrite.c
fvwrite.h __STDC__ is always defined on NetBSD. 2002-05-26 14:43:59 +00:00
fwalk.c
fwide.3 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
fwide.c - make FILE structure extensible without breaking binary-compatibility. 2001-12-07 11:47:40 +00:00
fwrite.c
getc.3 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
getc.c
getchar.c
gets.c
gettemp.c Allow mktemp to be built as a host tool. 2002-09-14 04:26:23 +00:00
getw.c
getwc.3 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
getwc.c - make FILE structure extensible without breaking binary-compatibility. 2001-12-07 11:47:40 +00:00
getwchar.c - make FILE structure extensible without breaking binary-compatibility. 2001-12-07 11:47:40 +00:00
glue.h
local.h * Move the prototype of __svfscanf from <stdio.h> to libc/stdio/local.h. 2002-05-24 22:17:20 +00:00
makebuf.c
mkdtemp.c Allow mktemp to be built as a host tool. 2002-09-14 04:26:23 +00:00
mkstemp.c Allow mktemp to be built as a host tool. 2002-09-14 04:26:23 +00:00
mktemp.3 New sentence, new line. From Robert Elz. 2002-10-01 17:22:00 +00:00
mktemp.c
perror.3 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
perror.c
printf.3 Fix typos (from PR 19650) 2003-01-03 21:41:28 +00:00
printf.c __STDC__ is always defined on NetBSD. 2002-05-26 14:43:59 +00:00
putc.3 New sentence, new line. From Robert Elz. 2002-10-01 17:22:00 +00:00
putc.c
putchar.c
puts.c
putw.c
putwc.3 New sentence, new line. From Robert Elz. 2002-10-01 17:22:00 +00:00
putwc.c putwc and putwchar's argument is wchar_t, not wint_t. 2002-03-14 21:21:00 +00:00
putwchar.c putwc and putwchar's argument is wchar_t, not wint_t. 2002-03-14 21:21:00 +00:00
refill.c
remove.3 if the path is directory, remove(3) behaves as rmdir instead of unlink. 2002-08-10 09:42:23 +00:00
remove.c
rewind.c
rget.c - make FILE structure extensible without breaking binary-compatibility. 2001-12-07 11:47:40 +00:00
scanf.3 New sentence, new line. From Robert Elz. 2002-10-01 17:22:00 +00:00
scanf.c __STDC__ is always defined on NetBSD. 2002-05-26 14:43:59 +00:00
setbuf.3 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
setbuf.c
setbuffer.c
setvbuf.c - make FILE structure extensible without breaking binary-compatibility. 2001-12-07 11:47:40 +00:00
snprintf.c Fix two bugs: 2003-01-05 11:05:47 +00:00
sprintf.c __STDC__ is always defined on NetBSD. 2002-05-26 14:43:59 +00:00
sscanf.c __STDC__ is always defined on NetBSD. 2002-05-26 14:43:59 +00:00
stdio.3 New sentence, new line. From Robert Elz. 2002-10-01 17:22:00 +00:00
stdio.c
tempnam.c use more Xs for filename templates. 2002-08-10 16:28:51 +00:00
tmpfile.c use more Xs for filename templates. 2002-08-10 16:28:51 +00:00
tmpnam.3 Drop superfluous Ns and fix a formatting glitch. 2002-08-20 16:10:01 +00:00
tmpnam.c use more Xs for filename templates. 2002-08-10 16:28:51 +00:00
ungetc.3 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
ungetc.c - make FILE structure extensible without breaking binary-compatibility. 2001-12-07 11:47:40 +00:00
ungetwc.3 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
ungetwc.c - make FILE structure extensible without breaking binary-compatibility. 2001-12-07 11:47:40 +00:00
vasprintf.c - make FILE structure extensible without breaking binary-compatibility. 2001-12-07 11:47:40 +00:00
vfprintf.c __STDC__ is always defined on NetBSD. 2002-05-26 14:43:59 +00:00
vfscanf.c __STDC__ is always defined on NetBSD. 2002-05-26 14:43:59 +00:00
vprintf.c
vscanf.c * Move the prototype of __svfscanf from <stdio.h> to libc/stdio/local.h. 2002-05-24 22:17:20 +00:00
vsnprintf.c Fix two bugs: 2003-01-05 11:05:47 +00:00
vsprintf.c - make FILE structure extensible without breaking binary-compatibility. 2001-12-07 11:47:40 +00:00
vsscanf.c - make FILE structure extensible without breaking binary-compatibility. 2001-12-07 11:47:40 +00:00
wbuf.c - make FILE structure extensible without breaking binary-compatibility. 2001-12-07 11:47:40 +00:00
wcio.h g/c #if 0. 2001-12-07 12:18:53 +00:00
wsetup.c