mbox series

[0/6] Mostly mechanical libio decrufting.

Message ID 20180211163558.14124-1-zackw@panix.com
Headers show
Series Mostly mechanical libio decrufting. | expand

Message

Zack Weinberg Feb. 11, 2018, 4:35 p.m. UTC
This patch set performs a number of largely search-and-replace
cleanups to libio enabled by libio.h no longer being a public header.
It includes all of the follow-up changes requested by Adhemerval for
the patchset that stopped installing libio.h.

Every patch in this series meets the "installed stripped binaries are
unchanged" criterion, except for a handful of assertions whose line
numbers change.

Zack Weinberg (6):
  Remove vestiges of external build support from libio headers.
  Mechanically remove _IO_ name aliases for types and constants.
  Remove legacy configuration knobs from libio.
  Remove _IO_file_flags define.
  Remove miscellaneous debris from libio.
  Remove completely unused libio flag bits.

 debug/fgets_chk.c                          |  12 +-
 debug/fgets_u_chk.c                        |  13 +-
 debug/fgetws_chk.c                         |  10 +-
 debug/fgetws_u_chk.c                       |  13 +-
 debug/gets_chk.c                           |  10 +-
 debug/vasprintf_chk.c                      |   6 +-
 debug/vdprintf_chk.c                       |   3 -
 debug/vsprintf_chk.c                       |   4 +-
 debug/vswprintf_chk.c                      |   2 +-
 hurd/fopenport.c                           |   2 +-
 include/stdio.h                            |  16 +-
 libio/bits/types/struct_FILE.h             |   4 +-
 libio/clearerr.c                           |   2 +-
 libio/feof.c                               |   2 +-
 libio/feof_u.c                             |   2 +-
 libio/ferror.c                             |   2 +-
 libio/ferror_u.c                           |   2 +-
 libio/filedoalloc.c                        |   8 +-
 libio/fileno.c                             |   2 +-
 libio/fileops.c                            | 171 +++++-------
 libio/fmemopen.c                           |   8 +-
 libio/fputc.c                              |   4 +-
 libio/fputc_u.c                            |   2 +-
 libio/fputwc.c                             |   2 +-
 libio/fputwc_u.c                           |   2 +-
 libio/fseek.c                              |   2 +-
 libio/fseeko.c                             |   2 +-
 libio/fseeko64.c                           |   2 +-
 libio/ftello.c                             |   6 +-
 libio/ftello64.c                           |   4 +-
 libio/fwide.c                              |   2 +-
 libio/genops.c                             | 280 ++++++-------------
 libio/getchar.c                            |   2 +-
 libio/iofclose.c                           |   8 +-
 libio/iofdopen.c                           |  11 +-
 libio/iofflush.c                           |   2 +-
 libio/iofflush_u.c                         |   2 +-
 libio/iofgetpos.c                          |   6 +-
 libio/iofgetpos64.c                        |   4 +-
 libio/iofgets.c                            |  13 +-
 libio/iofgets_u.c                          |  13 +-
 libio/iofgetws.c                           |  10 +-
 libio/iofgetws_u.c                         |  13 +-
 libio/iofopen.c                            |  13 +-
 libio/iofopen64.c                          |   2 +-
 libio/iofopncook.c                         |  63 ++---
 libio/iofputs.c                            |   4 +-
 libio/iofputs_u.c                          |   4 +-
 libio/iofputws.c                           |   4 +-
 libio/iofputws_u.c                         |   4 +-
 libio/iofread.c                            |   8 +-
 libio/iofread_u.c                          |   8 +-
 libio/iofsetpos.c                          |   2 +-
 libio/iofsetpos64.c                        |   2 +-
 libio/ioftell.c                            |   6 +-
 libio/iofwide.c                            |   6 +-
 libio/iofwrite.c                           |   8 +-
 libio/iofwrite_u.c                         |   9 +-
 libio/iogetdelim.c                         |  14 +-
 libio/iogetline.c                          |  14 +-
 libio/iogets.c                             |  10 +-
 libio/iogetwline.c                         |  14 +-
 libio/iolibio.h                            |  91 +++---
 libio/iopadn.c                             |   8 +-
 libio/iopopen.c                            |  23 +-
 libio/ioputs.c                             |   2 +-
 libio/ioseekoff.c                          |  10 +-
 libio/ioseekpos.c                          |  10 +-
 libio/iosetbuffer.c                        |   2 +-
 libio/iosetvbuf.c                          |  14 +-
 libio/ioungetc.c                           |   2 +-
 libio/ioungetwc.c                          |   2 +-
 libio/iovdprintf.c                         |   5 +-
 libio/iovsprintf.c                         |   2 +-
 libio/iovsscanf.c                          |   2 +-
 libio/iovswscanf.c                         |   4 +-
 libio/iowpadn.c                            |   8 +-
 libio/libio.h                              | 252 ++++++-----------
 libio/libioP.h                             | 427 +++++++++++++----------------
 libio/memstream.c                          |  20 +-
 libio/obprintf.c                           |   6 +-
 libio/oldfileops.c                         |  85 +++---
 libio/oldfmemopen.c                        |   6 +-
 libio/oldiofclose.c                        |   8 +-
 libio/oldiofdopen.c                        |   9 +-
 libio/oldiofgetpos.c                       |   4 +-
 libio/oldiofgetpos64.c                     |   4 +-
 libio/oldiofopen.c                         |   9 +-
 libio/oldiofsetpos.c                       |   2 +-
 libio/oldiofsetpos64.c                     |   2 +-
 libio/oldiopopen.c                         |  21 +-
 libio/oldpclose.c                          |   8 +-
 libio/oldstdfiles.c                        |   6 +-
 libio/pclose.c                             |   8 +-
 libio/peekc.c                              |   2 +-
 libio/putc.c                               |   2 +-
 libio/putc_u.c                             |   2 +-
 libio/putwc.c                              |   2 +-
 libio/putwc_u.c                            |   2 +-
 libio/rewind.c                             |   2 +-
 libio/setbuf.c                             |   4 +-
 libio/setlinebuf.c                         |   2 +-
 libio/stdio.c                              |   6 +-
 libio/strfile.h                            |   7 +-
 libio/strops.c                             |  52 ++--
 libio/tst-mmap-eofsync.c                   |   2 -
 libio/vasprintf.c                          |   8 +-
 libio/vscanf.c                             |   2 +-
 libio/vsnprintf.c                          |   8 +-
 libio/vswprintf.c                          |  10 +-
 libio/vwscanf.c                            |   2 +-
 libio/wfiledoalloc.c                       |   4 +-
 libio/wfileops.c                           |  51 ++--
 libio/wgenops.c                            | 128 ++++-----
 libio/wmemstream.c                         |  20 +-
 libio/wstrops.c                            |  56 ++--
 malloc/malloc.c                            |   6 +-
 stdio-common/fxprintf.c                    |   6 +-
 stdio-common/getline.c                     |   8 +-
 stdio-common/isoc99_vfscanf.c              |   2 +-
 stdio-common/isoc99_vscanf.c               |   2 +-
 stdio-common/isoc99_vsscanf.c              |   2 +-
 stdio-common/printf_fp.c                   |   7 +-
 stdio-common/printf_fphex.c                |   7 +-
 stdio-common/printf_size.c                 |   8 +-
 stdio-common/scanf15.c                     |   7 -
 stdio-common/scanf17.c                     |   7 -
 stdio-common/vfprintf.c                    |  32 +--
 stdio-common/vfscanf.c                     |   9 +-
 sysdeps/generic/stdio-lock.h               |   4 +-
 sysdeps/ieee754/ldbl-opt/nldbl-compat.c    |   3 +-
 sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c |   2 +-
 sysdeps/nptl/stdio-lock.h                  |   4 +-
 wcsmbs/isoc99_vfwscanf.c                   |   2 +-
 wcsmbs/isoc99_vswscanf.c                   |   5 +-
 wcsmbs/isoc99_vwscanf.c                    |   2 +-
 136 files changed, 1020 insertions(+), 1422 deletions(-)

Comments

Zack Weinberg Feb. 21, 2018, 7:46 p.m. UTC | #1
On Sun, Feb 11, 2018 at 11:35 AM, Zack Weinberg <zackw@panix.com> wrote:
> This patch set performs a number of largely search-and-replace
> cleanups to libio enabled by libio.h no longer being a public header.
> It includes all of the follow-up changes requested by Adhemerval for
> the patchset that stopped installing libio.h.
>
> Every patch in this series meets the "installed stripped binaries are
> unchanged" criterion, except for a handful of assertions whose line
> numbers change.

I have made all the changes requested by reviewers and pushed this
patchset.  I'd like to thank Andreas Schwab especially, for going to
the trouble to find indentation errors in a huge diff.

zw