NetBSD/lib/libc/stdio
christos 07c1b4dc67 If the string to be printed is NULL substitute "(null)". Approved by core.
This is a workaround to make gcc's behavior consistent, since gcc can
transform:
    printf("%s\n", s) -> puts(s)
    fprintf(fp, "%s", s) -> fputs(s, fp)
as an optimization.
I've left the _DIAGASSERT's that make sure that s != NULL alone because we
should really still abort in a debugging environment.
2005-06-22 19:45:22 +00:00
..
Makefile.inc vfwprintf.c and vfwscanf.c now compile with -Wuninitialized 2005-06-12 05:49:12 +00:00
_fileno.c Add missing __RCSID() 2005-06-12 05:21:25 +00:00
_fseeko.c Add missing __RCSID() 2005-06-12 05:21:25 +00:00
_ftello.c Add missing __RCSID() 2005-06-12 05:21:25 +00:00
asprintf.c A little libc namespace housekeeping exercise: 2005-02-09 21:35:46 +00:00
clrerr.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fclose.3 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fclose.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fdopen.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
feof.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
ferror.3 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
ferror.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fflush.3 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fflush.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fgetc.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fgetln.3 put back the CAVEATS section 2004-05-10 17:15:28 +00:00
fgetln.c After discussion with christos, turn fgetstr() into an internal function. 2004-05-10 16:47:11 +00:00
fgetpos.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fgets.3 simplify a sentence 2003-12-09 21:40:54 +00:00
fgets.c remove superfluous assignment 2003-12-14 23:56:28 +00:00
fgetstr.c Add the missing wide char support functions from freebsd. 2005-05-14 23:51:02 +00:00
fgetwc.c Add missing __RCSID() 2005-06-12 05:21:25 +00:00
fgetwln.3 Add the missing wide char support functions from freebsd. 2005-05-14 23:51:02 +00:00
fgetwln.c Add the missing wide char support functions from freebsd. 2005-05-14 23:51:02 +00:00
fgetws.3 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fgetws.c add fgetws() and fputws() (lib/20576). 2003-03-07 07:11:35 +00:00
fileext.h Add fields to struct __sfileext to track how many times the lock has been 2003-07-18 21:46:41 +00:00
fileno.c We now need an internal name for fileno(), since when buildling libc 2004-05-09 17:27:53 +00:00
findfp.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
flags.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
floatio.h Add the missing wide char support functions from freebsd. 2005-05-14 23:51:02 +00:00
flockfile.3 Use 2003-04-16 13:34:34 +00:00
flockfile.c Disable cancellation on the first lock, too, not just on internal 2003-07-22 00:56:25 +00:00
fopen.3 Add restrict qualifiers to fopen()/freopen() arguments. 2005-05-25 16:01:24 +00:00
fopen.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fparseln.3 Use 2003-04-16 13:34:34 +00:00
fparseln.c Completely rework how tools/compat is done. Purge all uses/references to 2004-06-20 22:20:14 +00:00
fprintf.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fpurge.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fputc.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fputs.3 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fputs.c If the string to be printed is NULL substitute "(null)". Approved by core. 2005-06-22 19:45:22 +00:00
fputwc.c Add missing __RCSID() 2005-06-12 05:21:25 +00:00
fputws.3 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fputws.c add fgetws() and fputws() (lib/20576). 2003-03-07 07:11:35 +00:00
fread.3 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fread.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
freopen.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fscanf.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fseek.3 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fseek.c Re-implement in terms of fseek0() 2005-03-04 16:25:20 +00:00
fseeko.c de __P 2005-03-04 16:04:58 +00:00
fsetpos.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
ftell.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
ftello.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
funopen.3 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
funopen.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fvwrite.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fvwrite.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fwalk.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fwide.3 Use St -isoC-9X instead of St -isoC9X, to be in sync with groff. 2003-09-08 17:54:31 +00:00
fwide.c Add missing __RCSID() 2005-06-12 05:21:25 +00:00
fwprintf.c Add the missing wide char support functions from freebsd. 2005-05-14 23:51:02 +00:00
fwrite.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
fwscanf.c Add the missing wide char support functions from freebsd. 2005-05-14 23:51:02 +00:00
getc.3 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
getc.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
getchar.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
gets.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
gettemp.c Spaces. 2003-12-05 00:57:36 +00:00
getw.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
getwc.3 Use St -isoC-9X instead of St -isoC9X, to be in sync with groff. 2003-09-08 17:54:31 +00:00
getwc.c Add missing __RCSID() 2005-06-12 05:21:25 +00:00
getwchar.c Add missing __RCSID() 2005-06-12 05:21:25 +00:00
glue.h Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
local.h Add the missing wide char support functions from freebsd. 2005-05-14 23:51:02 +00:00
makebuf.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
mkdtemp.c Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
mkstemp.c A little libc namespace housekeeping exercise: 2005-02-09 21:35:46 +00:00
mktemp.3 Make the plural of `X' `X's instead of `Xs'. 2003-10-15 19:44:51 +00:00
mktemp.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
perror.3 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
perror.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
printf.3 Document that passing NULL to %s prints "(null)". 2005-06-21 18:43:17 +00:00
printf.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
putc.3 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
putc.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
putchar.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
puts.c If the string to be printed is NULL substitute "(null)". Approved by core. 2005-06-22 19:45:22 +00:00
putw.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
putwc.3 Lots of grammar and wording changes from jmc@openbsd, with some 2004-01-24 16:58:54 +00:00
putwc.c Add missing __RCSID() 2005-06-12 05:21:25 +00:00
putwchar.c Add missing __RCSID() 2005-06-12 05:21:25 +00:00
refill.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
remove.3 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
remove.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
rewind.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
rget.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
scanf.3 Use St -isoC-9X instead of St -isoC9X, to be in sync with groff. 2003-09-08 17:54:31 +00:00
scanf.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
setbuf.3 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
setbuf.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
setbuffer.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
setvbuf.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
snprintf.c A little libc namespace housekeeping exercise: 2005-02-09 21:35:46 +00:00
sprintf.c A little libc namespace housekeeping exercise: 2005-02-09 21:35:46 +00:00
sscanf.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
stdio.3 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
stdio.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
swprintf.c Add the missing wide char support functions from freebsd. 2005-05-14 23:51:02 +00:00
swscanf.c Add the missing wide char support functions from freebsd. 2005-05-14 23:51:02 +00:00
tempnam.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
tmpfile.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
tmpnam.3 use "tempnam" instead of "tmpname" 2005-06-18 10:50:25 +00:00
tmpnam.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
ungetc.3 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
ungetc.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
ungetwc.3 Use St -isoC-9X instead of St -isoC9X, to be in sync with groff. 2003-09-08 17:54:31 +00:00
ungetwc.c Add missing __RCSID() 2005-06-12 05:21:25 +00:00
vasprintf.c A little libc namespace housekeeping exercise: 2005-02-09 21:35:46 +00:00
vfprintf.c A little libc namespace housekeeping exercise: 2005-02-09 21:35:46 +00:00
vfscanf.c Add support for scanf "hh" format modifiers - we use it in int_fmtio.h 2003-12-30 22:10:20 +00:00
vfwprintf.c Initialize expsize to appease -Wuninitialized for sh3 and m68000. 2005-06-15 09:31:27 +00:00
vfwscanf.c Appease gcc -Wuninitialized 2005-06-12 05:48:41 +00:00
vprintf.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
vscanf.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
vsnprintf.c A little libc namespace housekeeping exercise: 2005-02-09 21:35:46 +00:00
vsprintf.c A little libc namespace housekeeping exercise: 2005-02-09 21:35:46 +00:00
vsscanf.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
vswprintf.c Add the missing wide char support functions from freebsd. 2005-05-14 23:51:02 +00:00
vswscanf.c Add the missing wide char support functions from freebsd. 2005-05-14 23:51:02 +00:00
vwprintf.c Add the missing wide char support functions from freebsd. 2005-05-14 23:51:02 +00:00
vwscanf.c Add the missing wide char support functions from freebsd. 2005-05-14 23:51:02 +00:00
wbuf.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00
wcio.h Merge the nathanw_sa branch. 2003-01-18 10:52:16 +00:00
wprintf.3 Sort options. 2005-06-03 20:32:20 +00:00
wprintf.c Add the missing wide char support functions from freebsd. 2005-05-14 23:51:02 +00:00
wscanf.3 Add the missing wide char support functions from freebsd. 2005-05-14 23:51:02 +00:00
wscanf.c Add the missing wide char support functions from freebsd. 2005-05-14 23:51:02 +00:00
wsetup.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:42:00 +00:00