freebsd-nq/lib/libc/stdio
Jilles Tjoelker ef70de180c libc/stdio: Allow fopen/freopen modes in any order (except initial r/w/a).
Austin Group issue #411 requires 'e' to be accepted before and after 'x',
and encourages accepting the characters in any order, except the initial
'r', 'w' or 'a'.

Given that glibc accepts the characters after r/w/a in any order and that
diagnosing this problem may be hard, change our libc to behave that way as
well.
2013-09-06 13:47:16 +00:00
..
_flock_stub.c
asprintf.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
clrerr.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
dprintf.c Add dprintf() and vdprintf() from POSIX.1-2008. Like getline(), 2009-03-04 03:38:51 +00:00
fclose.3
fclose.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
fcloseall.c
fdopen.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
feof.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
ferror.3
ferror.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
fflush.3
fflush.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
fgetc.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
fgetln.3 - Add getdelim(), getline(), stpncpy(), strnlen(), wcsnlen(), 2009-02-28 06:00:58 +00:00
fgetln.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
fgetpos.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
fgets.3 Remove reference to non-existent FreeBSD Security Architecture 2012-05-09 17:27:49 +00:00
fgets.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
fgetwc.c Previously, vfscanf()'s wide character processing functions were 2012-04-29 16:28:39 +00:00
fgetwln.3
fgetwln.c Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
fgetws.3
fgetws.c Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
fileno.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
findfp.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
flags.c libc/stdio: Allow fopen/freopen modes in any order (except initial r/w/a). 2013-09-06 13:47:16 +00:00
floatio.h
flockfile.3
fmemopen.c - Fix more style(9)-related issues (copyright header, spaces after function 2013-02-01 13:04:06 +00:00
fopen.3 mdoc: Remove EOL whitespace. 2013-02-09 07:01:05 +00:00
fopen.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
fprintf.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
fpurge.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
fputc.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
fputs.3
fputs.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
fputwc.c Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
fputws.3
fputws.c As noted by Peter Jeremy, r234528 only partially fixed the infinite 2012-04-21 07:31:27 +00:00
fread.3
fread.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
freopen.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
fscanf.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
fseek.3
fseek.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
fsetpos.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
ftell.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
funopen.3
funopen.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
fvwrite.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
fvwrite.h
fwalk.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
fwide.3
fwide.c
fwprintf.c Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
fwrite.c Typo corrected. 2013-07-12 17:37:05 +00:00
fwscanf.c Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
getc.3 Remove unnecessary quoting and markup, add missing punctuation. 2010-01-08 22:02:42 +00:00
getc.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
getchar.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
getdelim.c Better glibc compatibility for getline/getdelim: 2009-10-04 19:43:36 +00:00
getline.3 The getline function returns the number of characters read, not 2012-12-01 15:25:41 +00:00
getline.c - Add getdelim(), getline(), stpncpy(), strnlen(), wcsnlen(), 2009-02-28 06:00:58 +00:00
gets.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
getw.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
getwc.3
getwc.c Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
getwchar.c Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
glue.h
local.h Previously, vfscanf()'s wide character processing functions were 2012-04-29 16:28:39 +00:00
makebuf.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
Makefile.inc Add mkostemp() and mkostemps(). 2013-08-09 17:24:23 +00:00
mktemp.3 Add mkostemp() and mkostemps(). 2013-08-09 17:24:23 +00:00
mktemp.c Add mkostemp() and mkostemps(). 2013-08-09 17:24:23 +00:00
open_memstream.3 mdoc: add missing El. 2013-02-27 20:09:25 +00:00
open_memstream.c Add an implementation of open_memstream() and open_wmemstream(). These 2013-02-27 19:50:46 +00:00
open_wmemstream.c Add an implementation of open_memstream() and open_wmemstream(). These 2013-02-27 19:50:46 +00:00
perror.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
printf_l.3 Add two new locale-specific man pages: 2012-05-23 17:13:30 +00:00
printf-pos.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
printf.3 Clarify that the ' flag is an apostrophe. 2012-11-08 02:01:04 +00:00
printf.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
printfcommon.h Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
printflocal.h The argument corresponding to %zn is supposed to be an ssize_t *, not 2009-03-02 04:07:58 +00:00
putc.3
putc.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
putchar.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
puts.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
putw.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
putwc.3
putwc.c Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
putwchar.c Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
refill.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
remove.3
remove.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
rewind.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
rget.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
scanf_l.3 Correct double "the the" 2012-09-14 21:28:56 +00:00
scanf.3 Minor mdoc nits. 2012-05-12 20:27:13 +00:00
scanf.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
setbuf.3 setbuf(3): Restore a BUGS section about setbuf(). 2013-02-18 22:47:59 +00:00
setbuf.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
setbuffer.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
setvbuf.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
snprintf.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
sprintf.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
sscanf.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
stdio.3 Add dprintf() and vdprintf() from POSIX.1-2008. Like getline(), 2009-03-04 03:38:51 +00:00
stdio.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
swprintf.c Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
swscanf.c Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
Symbol.map Add mkostemp() and mkostemps(). 2013-08-09 17:24:23 +00:00
tempnam.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
tmpfile.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
tmpnam.3 mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the 2010-05-13 12:07:55 +00:00
tmpnam.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
ungetc.3
ungetc.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
ungetwc.3
ungetwc.c Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
vasprintf.c Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
vdprintf.c Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
vfprintf.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
vfscanf.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
vfwprintf.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
vfwscanf.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
vprintf.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
vscanf.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
vsnprintf.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
vsprintf.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
vsscanf.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
vswprintf.c If the size passed to {,v}s{w,n}printf is larger than INT_MAX+1 2012-04-21 06:10:18 +00:00
vswscanf.c Renumber clauses to reduce diffs to other versions 2013-04-23 13:33:13 +00:00
vwprintf.c Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
vwscanf.c Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
wbuf.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
wprintf.3 mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the 2010-05-13 12:07:55 +00:00
wprintf.c Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
wscanf.3 Minor mdoc nits. 2012-05-12 20:27:13 +00:00
wscanf.c Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
wsetup.c Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
xprintf_errno.c libc: Always use our own copy of sys_errlist and sys_nerr (.so only). 2013-08-31 22:32:42 +00:00
xprintf_float.c
xprintf_hexdump.c
xprintf_int.c
xprintf_quote.c
xprintf_str.c
xprintf_time.c Because we call __printf_out() with a on-stack buffer, also call 2011-03-06 19:47:46 +00:00
xprintf_vis.c
xprintf.c The register_printf_render_std() function expects regular string. 2012-07-04 17:35:07 +00:00