mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-04 00:31:09 +00:00
9964a14579
This patch mechanically removes all remaining uses, and the definitions, of the following libio name aliases: name replaced with ---- ------------- _IO_FILE FILE _IO_fpos_t __fpos_t _IO_fpos64_t __fpos64_t _IO_size_t size_t _IO_ssize_t ssize_t or __ssize_t _IO_off_t off_t _IO_off64_t off64_t _IO_pid_t pid_t _IO_uid_t uid_t _IO_wint_t wint_t _IO_va_list va_list or __gnuc_va_list _IO_BUFSIZ BUFSIZ _IO_cookie_io_functions_t cookie_io_functions_t __io_read_fn cookie_read_function_t __io_write_fn cookie_write_function_t __io_seek_fn cookie_seek_function_t __io_close_fn cookie_close_function_t I used __fpos_t and __fpos64_t instead of fpos_t and fpos64_t because the definitions of fpos_t and fpos64_t depend on the largefile mode. I used __ssize_t and __gnuc_va_list in a handful of headers where namespace cleanliness might be relevant even though they're internal-use-only. In all other cases, I used the public-namespace name. There are a tiny handful of places where I left a use of 'struct _IO_FILE' alone, because it was being used together with 'struct _IO_FILE_plus' or 'struct _IO_FILE_complete' in the same arithmetic expression. Because this patch was almost entirely done with search and replace, I may have introduced indentation botches. I did proofread the diff, but I may have missed something. The ChangeLog below calls out all of the places where this was not a pure search-and-replace change. Installed stripped libraries and executables are unchanged by this patch, except that some assertions in vfscanf.c change line numbers. * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE. (_IO_fpos_t): Delete; all uses changed to __fpos_t. (_IO_fpos64_t): Delete; all uses changed to __fpos64_t. (_IO_size_t): Delete; all uses changed to size_t. (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t. (_IO_off_t): Delete; all uses changed to off_t. (_IO_off64_t): Delete; all uses changed to off64_t. (_IO_pid_t): Delete; all uses changed to pid_t. (_IO_uid_t): Delete; all uses changed to uid_t. (_IO_wint_t): Delete; all uses changed to wint_t. (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list. (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ. (_IO_cookie_io_functions_t): Delete; all uses changed to cookie_io_functions_t. (__io_read_fn): Delete; all uses changed to cookie_read_function_t. (__io_write_fn): Delete; all uses changed to cookie_write_function_t. (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t. (__io_close_fn): Delete: all uses changed to cookie_close_function_t. * libio/iofopncook.c: Remove unnecessary forward declarations. * libio/iolibio.h: Correct outdated commentary. * malloc/malloc.c (__malloc_stats): Remove unnecessary casts. * stdio-common/fxprintf.c (__fxprintf_nocancel): Remove unnecessary casts. * stdio-common/getline.c: Use _IO_getdelim directly. Don't redefine ssize_t. * stdio-common/printf_fp.c, stdio_common/printf_fphex.c * stdio-common/printf_size.c: Don't redefine size_t or FILE. Remove outdated comments. * stdio-common/vfscanf.c: Don't redefine va_list. |
||
---|---|---|
.. | ||
bits | ||
configure | ||
configure.ac | ||
libm-alias-double.h | ||
libm-alias-ldouble.h | ||
Makefile | ||
math_ldbl_opt.c | ||
math_ldbl_opt.h | ||
nldbl-acos.c | ||
nldbl-acosh.c | ||
nldbl-asin.c | ||
nldbl-asinh.c | ||
nldbl-asprintf_chk.c | ||
nldbl-asprintf.c | ||
nldbl-atan2.c | ||
nldbl-atan.c | ||
nldbl-atanh.c | ||
nldbl-cabs.c | ||
nldbl-cacos.c | ||
nldbl-cacosh.c | ||
nldbl-canonicalize.c | ||
nldbl-carg.c | ||
nldbl-casin.c | ||
nldbl-casinh.c | ||
nldbl-catan.c | ||
nldbl-catanh.c | ||
nldbl-cbrt.c | ||
nldbl-ccos.c | ||
nldbl-ccosh.c | ||
nldbl-ceil.c | ||
nldbl-cexp.c | ||
nldbl-cimag.c | ||
nldbl-clog10.c | ||
nldbl-clog.c | ||
nldbl-compat.c | ||
nldbl-compat.h | ||
nldbl-conj.c | ||
nldbl-copysign.c | ||
nldbl-cos.c | ||
nldbl-cosh.c | ||
nldbl-cpow.c | ||
nldbl-cproj.c | ||
nldbl-creal.c | ||
nldbl-csin.c | ||
nldbl-csinh.c | ||
nldbl-csqrt.c | ||
nldbl-ctan.c | ||
nldbl-ctanh.c | ||
nldbl-dadd.c | ||
nldbl-dprintf_chk.c | ||
nldbl-dprintf.c | ||
nldbl-erf.c | ||
nldbl-erfc.c | ||
nldbl-exp2.c | ||
nldbl-exp10.c | ||
nldbl-exp.c | ||
nldbl-expm1.c | ||
nldbl-fabs.c | ||
nldbl-fadd.c | ||
nldbl-fdim.c | ||
nldbl-finite.c | ||
nldbl-floor.c | ||
nldbl-fma.c | ||
nldbl-fmax.c | ||
nldbl-fmaxmag.c | ||
nldbl-fmin.c | ||
nldbl-fminmag.c | ||
nldbl-fmod.c | ||
nldbl-fprintf_chk.c | ||
nldbl-fprintf.c | ||
nldbl-frexp.c | ||
nldbl-fromfp.c | ||
nldbl-fromfpx.c | ||
nldbl-fscanf.c | ||
nldbl-fwprintf_chk.c | ||
nldbl-fwprintf.c | ||
nldbl-fwscanf.c | ||
nldbl-gamma.c | ||
nldbl-getpayload.c | ||
nldbl-hypot.c | ||
nldbl-ilogb.c | ||
nldbl-iovfscanf.c | ||
nldbl-isinf.c | ||
nldbl-isnan.c | ||
nldbl-isoc99_fscanf.c | ||
nldbl-isoc99_fwscanf.c | ||
nldbl-isoc99_scanf.c | ||
nldbl-isoc99_sscanf.c | ||
nldbl-isoc99_swscanf.c | ||
nldbl-isoc99_vfscanf.c | ||
nldbl-isoc99_vfwscanf.c | ||
nldbl-isoc99_vscanf.c | ||
nldbl-isoc99_vsscanf.c | ||
nldbl-isoc99_vswscanf.c | ||
nldbl-isoc99_vwscanf.c | ||
nldbl-isoc99_wscanf.c | ||
nldbl-j0.c | ||
nldbl-j1.c | ||
nldbl-jn.c | ||
nldbl-ldexp.c | ||
nldbl-lgamma_r.c | ||
nldbl-lgamma.c | ||
nldbl-llogb.c | ||
nldbl-llrint.c | ||
nldbl-llround.c | ||
nldbl-log1p.c | ||
nldbl-log2.c | ||
nldbl-log10.c | ||
nldbl-log.c | ||
nldbl-logb.c | ||
nldbl-lrint.c | ||
nldbl-lround.c | ||
nldbl-modf.c | ||
nldbl-nan.c | ||
nldbl-nearbyint.c | ||
nldbl-nextafter.c | ||
nldbl-nextdown.c | ||
nldbl-nexttoward.c | ||
nldbl-nexttowardf.c | ||
nldbl-nextup.c | ||
nldbl-obstack_printf_chk.c | ||
nldbl-obstack_printf.c | ||
nldbl-obstack_vprintf_chk.c | ||
nldbl-obstack_vprintf.c | ||
nldbl-pow.c | ||
nldbl-printf_chk.c | ||
nldbl-printf_fp.c | ||
nldbl-printf_size.c | ||
nldbl-printf.c | ||
nldbl-qecvt_r.c | ||
nldbl-qecvt.c | ||
nldbl-qfcvt_r.c | ||
nldbl-qfcvt.c | ||
nldbl-qgcvt.c | ||
nldbl-remainder.c | ||
nldbl-remquo.c | ||
nldbl-rint.c | ||
nldbl-round.c | ||
nldbl-roundeven.c | ||
nldbl-scalb.c | ||
nldbl-scalbln.c | ||
nldbl-scalbn.c | ||
nldbl-scanf.c | ||
nldbl-setpayload.c | ||
nldbl-setpayloadsig.c | ||
nldbl-signbit.c | ||
nldbl-significand.c | ||
nldbl-sin.c | ||
nldbl-sincos.c | ||
nldbl-sinh.c | ||
nldbl-snprintf_chk.c | ||
nldbl-snprintf.c | ||
nldbl-sprintf_chk.c | ||
nldbl-sprintf.c | ||
nldbl-sqrt.c | ||
nldbl-sscanf.c | ||
nldbl-strfmon_l.c | ||
nldbl-strfmon.c | ||
nldbl-strfroml.c | ||
nldbl-strtold_l.c | ||
nldbl-strtold.c | ||
nldbl-strtoldint.c | ||
nldbl-swprintf_chk.c | ||
nldbl-swprintf.c | ||
nldbl-swscanf.c | ||
nldbl-syslog_chk.c | ||
nldbl-syslog.c | ||
nldbl-tan.c | ||
nldbl-tanh.c | ||
nldbl-tgamma.c | ||
nldbl-totalorder.c | ||
nldbl-totalordermag.c | ||
nldbl-trunc.c | ||
nldbl-ufromfp.c | ||
nldbl-ufromfpx.c | ||
nldbl-vasprintf_chk.c | ||
nldbl-vasprintf.c | ||
nldbl-vdprintf_chk.c | ||
nldbl-vdprintf.c | ||
nldbl-vfprintf_chk.c | ||
nldbl-vfprintf.c | ||
nldbl-vfscanf.c | ||
nldbl-vfwprintf_chk.c | ||
nldbl-vfwprintf.c | ||
nldbl-vfwscanf.c | ||
nldbl-vprintf_chk.c | ||
nldbl-vprintf.c | ||
nldbl-vscanf.c | ||
nldbl-vsnprintf_chk.c | ||
nldbl-vsnprintf.c | ||
nldbl-vsprintf_chk.c | ||
nldbl-vsprintf.c | ||
nldbl-vsscanf.c | ||
nldbl-vswprintf_chk.c | ||
nldbl-vswprintf.c | ||
nldbl-vswscanf.c | ||
nldbl-vsyslog_chk.c | ||
nldbl-vsyslog.c | ||
nldbl-vwprintf_chk.c | ||
nldbl-vwprintf.c | ||
nldbl-vwscanf.c | ||
nldbl-wcstold_l.c | ||
nldbl-wcstold.c | ||
nldbl-wcstoldint.c | ||
nldbl-wprintf_chk.c | ||
nldbl-wprintf.c | ||
nldbl-wscanf.c | ||
nldbl-y0.c | ||
nldbl-y1.c | ||
nldbl-yn.c | ||
s_clog10.c | ||
s_clog10l.c | ||
s_copysign.c | ||
s_finite.c | ||
s_frexp.c | ||
s_isinf.c | ||
s_isnan.c | ||
s_ldexp.c | ||
s_ldexpl.c | ||
s_modf.c | ||
s_nextafter.c | ||
s_nexttowardfd.c | ||
s_significand.c | ||
s_significandl.c | ||
test-narrow-macros-ldbl-64.c | ||
Versions | ||
w_exp10_compat.c | ||
w_exp10l_compat.c | ||
w_lgamma_compat.c | ||
w_lgamma_compatl.c | ||
w_remainder_compat.c | ||
w_remainderl_compat.c | ||
w_scalb_compat.c | ||
w_scalbl_compat.c |