glibc/stdio-common
Ulrich Drepper 874aa52349 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
__isoc99_sscanf, __isoc99_vscanf): New prototypes.
	(__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
	libc_hidden_proto.
	* include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
	__isoc99_swscanf, __isoc99_vwscanf): New prototypes.
	(__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
	add libc_hidden_proto.
	* libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
	vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
	conformance requested.
	* wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
	vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
	conformance requested.
	* libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
	vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
	conformance requested.
	* wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
	vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
	ISO C99 or POSIX conformance requested.
	* stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
	__isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
	__isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
	and __isoc99_vsscanf@@GLIBC_2.7.
	* stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
	isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
	(tests): Add scanf14.
	(CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
	CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
	CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
	CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
	CFLAGS-isoc99_scanf.c): Add $(exceptions).
	(CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
	from using internal headers.
	* wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
	__isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
	__isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
	and __isoc99_vswscanf@@GLIBC_2.7.
	* wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
	isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
	(CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
	CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
	(CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
	* stdio-common/isoc99_scanf.c: New file.
	* stdio-common/isoc99_vsscanf.c: New file.
	* stdio-common/isoc99_vscanf.c: New file.
	* stdio-common/isoc99_vfscanf.c: New file.
	* stdio-common/isoc99_fscanf.c: New file.
	* stdio-common/isoc99_sscanf.c: New file.
	* wcsmbs/isoc99_fwscanf.c: New file.
	* wcsmbs/isoc99_vswscanf.c: New file.
	* wcsmbs/isoc99_swscanf.c: New file.
	* wcsmbs/isoc99_wscanf.c: New file.
	* wcsmbs/isoc99_vwscanf.c: New file.
	* wcsmbs/isoc99_vfwscanf.c: New file.
	* libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
	* libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
	clear _IO_FLAGS2_SCANF_STD bit from _flags2.
	* stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
	handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
	* stdio-common/scanf14.c: New test.
	* stdio-common/scanf15.c: New test.
	* sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
	isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
	isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
	isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
	isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
	* sysdeps/ieee754/ldbl-opt/Versions (libc): Export
	__nldbl___isoc99_scanf@@GLIBC_2.7,
	__nldbl___isoc99_fscanf@@GLIBC_2.7,
	__nldbl___isoc99_sscanf@@GLIBC_2.7,
	__nldbl___isoc99_vscanf@@GLIBC_2.7,
	__nldbl___isoc99_vfscanf@@GLIBC_2.7,
	__nldbl___isoc99_vsscanf@@GLIBC_2.7,
	__nldbl___isoc99_wscanf@@GLIBC_2.7,
	__nldbl___isoc99_fwscanf@@GLIBC_2.7,
	__nldbl___isoc99_swscanf@@GLIBC_2.7,
	__nldbl___isoc99_vwscanf@@GLIBC_2.7,
	__nldbl___isoc99_vfwscanf@@GLIBC_2.7
	and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
	* sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
	__isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
	__isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
	__isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
	__isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
	* sysdeps/ieee754/ldbl-opt/nldbl-compat.c
	(__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
	__nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
	__nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
	__nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
	__nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
	__nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
	functions.
	* sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
	* sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
	* sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
	* sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
	* sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
	* sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
	* sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
	* sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
	* sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
	* sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
	* sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
	* sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.

	* stdio-common/Makefile (tests): Add scanf13.
	(scanf13-ENV): New.
	* stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
	m modifier followed by l.
	(STRING_ARG): Add width argument.
	(_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
	<case L_('C')>: Handle %mlc and %mC.
	<case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
	arguments.
	* stdio-common/scanf13.c: New test.

	* libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
	the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.

	type and __THROW marker of splice, vmsplice, and tee.
2007-09-18 19:04:01 +00:00
..
bits * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
_i18n_number.h (_i18n_number_rewrite): Few more changes to make the code smaller. 2004-02-10 21:57:59 +00:00
_itoa.c * stdio-common/_itoa.c: Include <limits.h>. 2007-01-23 16:39:34 +00:00
_itoa.h * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms. 2007-01-25 00:45:00 +00:00
_itowa.c * stdio-common/_itoa.c: Include <limits.h>. 2007-01-23 16:39:34 +00:00
_itowa.h Update. 2003-06-11 23:22:36 +00:00
.cvsignore
asprintf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
bug1.c Update. 1999-07-17 23:56:47 +00:00
bug1.input
bug2.c
bug3.c
bug4.c
bug5.c
bug6.c
bug6.input
bug7.c
bug8.c
bug9.c
bug10.c
bug11.c
bug12.c
bug13.c Update. 2000-07-29 06:45:51 +00:00
bug14.c Update. 2003-01-28 07:32:19 +00:00
bug15.c Update. 2003-01-30 20:26:38 +00:00
bug16.c * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab, 2006-08-08 15:51:48 +00:00
bug17.c [BZ #3902] 2007-01-22 16:18:03 +00:00
bug18.c * libio/wstrops.c (_IO_wstr_underflow): Clear errno before 2007-07-07 21:38:43 +00:00
bug18a.c * libio/wstrops.c (_IO_wstr_underflow): Clear errno before 2007-07-07 21:38:43 +00:00
bug19.c * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF 2007-07-08 04:41:34 +00:00
bug19a.c * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF 2007-07-08 04:41:34 +00:00
ctermid.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
cuserid.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
Depend Update. 2000-07-29 06:45:51 +00:00
dprintf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
errlist.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
errnobug.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
flockfile.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fprintf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
fscanf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
ftrylockfile.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
funlockfile.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fxprintf.c * stdio-common/fxprintf.c: Include libioP.h. 2005-08-08 20:06:29 +00:00
getline.c Update. 2004-03-19 00:37:59 +00:00
getw.c Update. 2004-03-19 00:37:59 +00:00
isoc99_fscanf.c * include/stdio.h (__isoc99_fscanf, __isoc99_scanf, 2007-09-18 19:04:01 +00:00
isoc99_scanf.c * include/stdio.h (__isoc99_fscanf, __isoc99_scanf, 2007-09-18 19:04:01 +00:00
isoc99_sscanf.c * include/stdio.h (__isoc99_fscanf, __isoc99_scanf, 2007-09-18 19:04:01 +00:00
isoc99_vfscanf.c * include/stdio.h (__isoc99_fscanf, __isoc99_scanf, 2007-09-18 19:04:01 +00:00
isoc99_vscanf.c * include/stdio.h (__isoc99_fscanf, __isoc99_scanf, 2007-09-18 19:04:01 +00:00
isoc99_vsscanf.c * include/stdio.h (__isoc99_fscanf, __isoc99_scanf, 2007-09-18 19:04:01 +00:00
itoa-digits.c Update. 2002-03-12 20:04:56 +00:00
itoa-udigits.c Update. 2002-03-12 20:04:56 +00:00
itowa-digits.c Update. 2002-03-13 02:17:12 +00:00
Makefile * include/stdio.h (__isoc99_fscanf, __isoc99_scanf, 2007-09-18 19:04:01 +00:00
perror.c * include/stdio.h (__fxprintf): Remove wfmt argument. 2005-07-20 17:51:14 +00:00
printf_fp.c [BZ 4858] 2007-07-29 00:26:28 +00:00
printf_fphex.c * grp/initgroups.c (internal_getgrouplist): Remove unnecessary 2006-08-03 15:26:02 +00:00
printf_size.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
printf-parse.h Update. 2003-06-11 23:22:36 +00:00
printf-parsemb.c * stdio-common/tst-fmemopen2.c (do_test): Add a cast. 2006-01-08 08:24:11 +00:00
printf-parsewc.c Update. 2003-06-11 23:22:36 +00:00
printf-prs.c * wcsmbs/wctob.c (wctob): Make buf array of unsigned char. 2005-03-06 04:51:37 +00:00
printf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
printf.h * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
psignal.c * configure.in: Remove gnu_ld definition and everything using it. 2005-11-06 02:06:06 +00:00
putw.c Update. 2004-03-19 00:37:59 +00:00
reg-printf.c Update. 2004-09-14 04:41:35 +00:00
remove.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
rename.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
renameat.c [BZ #2611] 2006-04-27 14:32:13 +00:00
scanf1.c
scanf2.c
scanf3.c
scanf4.c * tst-trans.c: Include <stdlib.h> and <string.h>. 2000-06-21 12:39:22 +00:00
scanf5.c * tst-trans.c: Include <stdlib.h> and <string.h>. 2000-06-21 12:39:22 +00:00
scanf7.c
scanf8.c
scanf9.c Update. 2000-12-15 16:03:57 +00:00
scanf10.c
scanf11.c Update. 2001-11-27 08:33:32 +00:00
scanf12.c Update. 2000-07-22 07:26:13 +00:00
scanf12.input
scanf13.c * include/stdio.h (__isoc99_fscanf, __isoc99_scanf, 2007-09-18 19:04:01 +00:00
scanf14.c * include/stdio.h (__isoc99_fscanf, __isoc99_scanf, 2007-09-18 19:04:01 +00:00
scanf15.c * include/stdio.h (__isoc99_fscanf, __isoc99_scanf, 2007-09-18 19:04:01 +00:00
scanf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
siglist.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
snprintf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
sprintf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
sscanf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
stdio_ext.h Update. 2003-09-12 22:37:19 +00:00
stdio_lim.h.in Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
tempnam.c [BZ #4588] 2007-08-22 06:49:40 +00:00
tempname.c * nscd/connections.c: Use O_CLOEXEC is possible. Use mkostemp 2007-08-11 02:48:28 +00:00
temptest.c * malloc/memusagestat.c (main): Use return instead of exit to 2000-12-31 10:52:32 +00:00
test_rdwr.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
test-fseek.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
test-fwrite.c
test-popen.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
test-vfprintf.c * stdio-common/test-vfprintf.c (main): Add test for large 2007-05-01 18:35:44 +00:00
tfformat.c * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests. 2007-07-31 12:32:17 +00:00
tiformat.c Update. 2000-06-17 19:22:43 +00:00
tllformat.c
tmpfile64.c * nscd/connections.c: Use O_CLOEXEC is possible. Use mkostemp 2007-08-11 02:48:28 +00:00
tmpfile.c * nscd/connections.c: Use O_CLOEXEC is possible. Use mkostemp 2007-08-11 02:48:28 +00:00
tmpnam_r.c * nscd/connections.c: Use O_CLOEXEC is possible. Use mkostemp 2007-08-11 02:48:28 +00:00
tmpnam.c * nscd/connections.c: Use O_CLOEXEC is possible. Use mkostemp 2007-08-11 02:48:28 +00:00
tst-cookie.c Update. 2000-03-23 20:42:34 +00:00
tst-fdopen.c Update. 2002-12-17 10:34:02 +00:00
tst-ferror.c
tst-ferror.input
tst-fgets.c * posix/tst-execle1.c (do_test): Add a const. 2005-12-27 22:50:12 +00:00
tst-fileno.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
tst-fmemopen2.c * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t 2007-08-01 03:44:35 +00:00
tst-fmemopen.c (do_release_all): Add __libc_freeres_fn_section. 2004-08-04 21:58:10 +00:00
tst-fphex.c * posix/tst-nanosleep.c: Include <time.h> for nanosleep 2003-06-25 11:14:37 +00:00
tst-fseek.c * locale/programs/ld-ctype.c (ctype_read): When given a repertoire 2002-08-26 11:39:12 +00:00
tst-fwrite.c [BZ #1078] 2005-09-27 19:40:49 +00:00
tst-gets.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
tst-gets.input Update. 2001-02-15 19:57:43 +00:00
tst-obprintf.c Update. 2000-03-27 18:36:21 +00:00
tst-perror.c Update. 2001-08-16 05:23:52 +00:00
tst-popen2.c * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end 2007-07-19 17:03:08 +00:00
tst-popen.c * sysdeps/ieee754/dbl-64/mpa.c: Include <sys/param.h>. 2004-08-11 18:54:46 +00:00
tst-printf.c [BZ #2509] 2006-05-02 20:28:05 +00:00
tst-printf.sh [BZ #2509] 2006-05-05 13:37:35 +00:00
tst-printfsz.c * tst-trans.c: Include <stdlib.h> and <string.h>. 2000-06-21 12:39:22 +00:00
tst-put-error.c * configure.in: Compile source test file with -fPIC for -shared. 2005-09-06 01:18:13 +00:00
tst-rndseek.c 2002-10-12 Roland McGrath <roland@redhat.com> 2002-10-12 18:45:26 +00:00
tst-sprintf2.c * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to 2007-07-28 20:36:21 +00:00
tst-sprintf.c [BZ #4514] 2007-05-21 18:23:50 +00:00
tst-sscanf.c * stdio-common/vfscanf.c: Fix problems in width accounting. 2007-02-18 19:03:30 +00:00
tst-swprintf.c Update. 2002-08-27 06:41:29 +00:00
tst-swscanf.c * stdio-common/Makefile (tests): Add tst-swscanf. 2007-02-18 09:21:24 +00:00
tst-tmpnam.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
tst-unbputc.c Update. 2000-07-03 21:40:46 +00:00
tst-unbputc.sh Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
tst-ungetc.c Update. 2002-12-19 09:18:01 +00:00
tst-unlockedio.c [BZ #316] 2004-08-10 18:01:40 +00:00
tst-wc-printf.c Update. 2003-07-31 19:26:38 +00:00
tstdiomisc.c * stdio-common/tstdiomisc.c (F): Use NAN to get NaN value. 2006-01-07 22:04:22 +00:00
tstgetln.c Update. 2004-03-19 00:37:59 +00:00
tstgetln.input
tstscanf.c [BZ #4342] 2007-04-27 19:29:06 +00:00
tstscanf.input
Versions * include/stdio.h (__isoc99_fscanf, __isoc99_scanf, 2007-09-18 19:04:01 +00:00
vfprintf.c * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to 2007-07-28 20:36:21 +00:00
vfscanf.c * include/stdio.h (__isoc99_fscanf, __isoc99_scanf, 2007-09-18 19:04:01 +00:00
vfwprintf.c Update. 1999-06-16 22:55:47 +00:00
vfwscanf.c Update. 2000-06-29 04:12:28 +00:00
vprintf.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
xbug.c