mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 19:30:10 +00:00
874aa52349
__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.
96 lines
4.3 KiB
Plaintext
96 lines
4.3 KiB
Plaintext
%include <nldbl-abi.h>
|
|
%ifndef NLDBL_VERSION
|
|
% error "nldbl-abi.h must define NLDBL_VERSION"
|
|
%endif
|
|
|
|
libc {
|
|
NLDBL_VERSION {
|
|
# IEEE quad long double functions (older symver is for
|
|
# IEEE double long double).
|
|
ldexpl; copysignl; finitel; frexpl; isinfl; isnanl; modfl;
|
|
__isinfl; __isnanl; __finitel; __signbitl;
|
|
scalbnl;
|
|
qecvt; qfcvt; qgcvt; qecvt_r; qfcvt_r;
|
|
|
|
strtold; __strtold_internal; wcstold; __wcstold_internal;
|
|
__strtold_l; strtold_l; __wcstold_l; wcstold_l;
|
|
|
|
strfmon; __strfmon_l; strfmon_l;
|
|
__nldbl_strfmon; __nldbl___strfmon_l; __nldbl_strfmon_l;
|
|
__nldbl___vstrfmon; __nldbl___vstrfmon_l;
|
|
|
|
syslog; vsyslog;
|
|
__nldbl_syslog; __nldbl_vsyslog;
|
|
__nldbl___syslog_chk; __nldbl___vsyslog_chk;
|
|
|
|
# *printf* family, using IEEE quad long double
|
|
__asprintf; asprintf; dprintf; fprintf; fwprintf; _IO_fprintf;
|
|
_IO_printf; _IO_sprintf; _IO_vfprintf; _IO_vsprintf; obstack_printf;
|
|
obstack_vprintf; printf; __printf_fp; printf_size; snprintf; sprintf;
|
|
swprintf; vasprintf; vdprintf; vfprintf; vfwprintf; vprintf; vsnprintf;
|
|
__vsnprintf; vsprintf; vswprintf; vwprintf; wprintf;
|
|
|
|
# *printf* family, using IEEE double as long double
|
|
# The standard functions are __REDIRECTed to these if -mlong-double-64
|
|
__nldbl___asprintf; __nldbl_asprintf; __nldbl_dprintf; __nldbl_fprintf;
|
|
__nldbl_fwprintf; __nldbl__IO_fprintf; __nldbl__IO_printf;
|
|
__nldbl__IO_sprintf; __nldbl__IO_vfprintf; __nldbl__IO_vsprintf;
|
|
__nldbl_obstack_printf; __nldbl_obstack_vprintf; __nldbl_printf;
|
|
__nldbl___printf_fp; __nldbl_printf_size; __nldbl_snprintf;
|
|
__nldbl_sprintf; __nldbl_swprintf; __nldbl_vasprintf; __nldbl_vdprintf;
|
|
__nldbl_vfprintf; __nldbl_vfwprintf; __nldbl_vprintf; __nldbl_vsnprintf;
|
|
__nldbl___vsnprintf; __nldbl_vsprintf; __nldbl_vswprintf;
|
|
__nldbl_vwprintf; __nldbl_wprintf;
|
|
|
|
# *scanf family, using IEEE quad long double
|
|
_IO_sscanf; _IO_vfscanf; __vfscanf; __vsscanf; fscanf; fwscanf; scanf;
|
|
sscanf; swscanf; vfscanf; vfwscanf; vscanf; vsscanf; vswscanf; vwscanf;
|
|
wscanf;
|
|
|
|
# *scanf family, using IEEE double as long double
|
|
__nldbl__IO_sscanf; __nldbl__IO_vfscanf; __nldbl___vfscanf;
|
|
__nldbl___vsscanf; __nldbl_fscanf; __nldbl_fwscanf; __nldbl_scanf;
|
|
__nldbl_sscanf; __nldbl_swscanf; __nldbl_vfscanf; __nldbl_vfwscanf;
|
|
__nldbl_vscanf; __nldbl_vsscanf; __nldbl_vswscanf; __nldbl_vwscanf;
|
|
__nldbl_wscanf;
|
|
|
|
# checking versions, using IEEE quad long double
|
|
__sprintf_chk; __vsprintf_chk; __snprintf_chk; __vsnprintf_chk;
|
|
__printf_chk; __fprintf_chk; __vprintf_chk; __vfprintf_chk;
|
|
|
|
# checking versions, using IEEE double as long double
|
|
__nldbl___sprintf_chk; __nldbl___vsprintf_chk; __nldbl___snprintf_chk;
|
|
__nldbl___vsnprintf_chk; __nldbl___printf_chk; __nldbl___fprintf_chk;
|
|
__nldbl___vprintf_chk; __nldbl___vfprintf_chk;
|
|
__nldbl___swprintf_chk; __nldbl___vswprintf_chk; __nldbl___fwprintf_chk;
|
|
__nldbl___wprintf_chk; __nldbl___vfwprintf_chk; __nldbl___vwprintf_chk;
|
|
}
|
|
GLIBC_2.7 {
|
|
__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;
|
|
}
|
|
}
|
|
libm {
|
|
NLDBL_VERSION {
|
|
# IEEE quad long double functions (older symver is for
|
|
# IEEE double as long double).
|
|
cabsl; cargl; cimagl; conjl; creall; cacosl; cacoshl; casinl;
|
|
catanl; catanhl; ccosl; ccoshl; casinhl; cexpl; clogl; __clog10l;
|
|
clog10l; cpowl; cprojl; csinl; csinhl; csqrtl; ctanl; ctanhl;
|
|
fdiml; fmal; fmaxl; fminl; ldexpl; nanl; nextafterl; nexttowardl;
|
|
significandl; acosl; acoshl; asinl; atan2l; atanhl; coshl; dreml;
|
|
exp10l; pow10l; exp2l; fmodl; hypotl; j0l; y0l; j1l; y1l; jnl; ynl;
|
|
lgammal; gammal; lgammal_r; logl; log10l; log2l; powl; remainderl;
|
|
scalbl; sinhl; sqrtl; tgammal; asinhl; atanl; cbrtl; ceill; copysignl;
|
|
erfl; erfcl; expm1l; fabsl; finitel; floorl; frexpl; ilogbl;
|
|
llrintl; llroundl; log1pl; logbl; lrintl; lroundl; modfl;
|
|
nearbyintl; remquol; rintl; roundl; scalblnl; scalbnl; sinl; cosl;
|
|
sincosl; tanl; tanhl; truncl; expl; __finitel; __signbitl;
|
|
__fpclassifyl; nexttowardf; nexttoward; __nldbl_nexttowardf;
|
|
}
|
|
}
|