This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/5] __need macro removals and related header cleanups


These are all of my outstanding header-file cleanups, rebased on
latest trunk and thoroughly tested.  'Factor out shared definitions
from bits/signum.h' is new this round.

I think these are all ready to go, and I'd like to see as many of them
as possible get into 2.26.

Zack Weinberg (5):
  Remove __need macros from errno.h (__need_Emath, __need_error_t).
  Remove __need macros from stdio.h and wchar.h.
  Remove __need_IOV_MAX and __need_FOPEN_MAX.
  Remove __need_schedparam and __cpu_set_t_defined.
  Factor out shared definitions from bits/signum.h.

 Makeconfig                                         |  30 +-
 Makerules                                          |  10 +-
 NEWS                                               |  13 +
 argp/argp.h                                        |   8 +-
 bits/errno.h                                       |  38 +-
 bits/sched.h                                       | 121 +----
 bits/signum-generic.h                              | 102 +++++
 bits/signum.h                                      |  72 +--
 bits/{uio.h => uio_lim.h}                          |  12 +-
 grp/grp.h                                          |   3 +-
 gshadow/gshadow.h                                  |   4 +-
 hurd/hurd.h                                        |   3 +-
 iconv/gconv.h                                      |   6 +-
 include/bits/cpu-set.h                             |   1 +
 include/bits/types/FILE.h                          |   1 +
 include/bits/types/__FILE.h                        |   1 +
 include/bits/types/__mbstate_t.h                   |   1 +
 include/bits/types/error_t.h                       |   1 +
 include/bits/types/mbstate_t.h                     |   1 +
 include/bits/types/wint_t.h                        |   1 +
 include/bits/wctype-wchar.h                        |   1 +
 include/bits/xopen_lim.h                           |  13 +-
 include/errno.h                                    |  13 +-
 include/stdio.h                                    |  16 +-
 include/wchar.h                                    |  10 +-
 include/wctype.h                                   |  29 +-
 libio/Makefile                                     |   3 +-
 libio/bits/types/FILE.h                            |   9 +
 libio/bits/types/__FILE.h                          |   7 +
 libio/stdio.h                                      |  47 +-
 mach/mach.h                                        |   6 +-
 misc/Makefile                                      |   3 +-
 misc/mntent.h                                      |   4 +-
 misc/sys/uio.h                                     |  18 +-
 posix/Makefile                                     |   4 +-
 posix/bits/cpu-set.h                               | 124 +++++
 posix/sched.h                                      |   8 +-
 pwd/pwd.h                                          |   3 +-
 scripts/make-errno-enum.sh                         |  69 +++
 shadow/shadow.h                                    |   4 +-
 signal/Makefile                                    |   3 +-
 signal/signal.h                                    |   3 +
 stdio-common/printf.h                              |   5 +-
 stdio-common/stdio_lim.h.in                        |  31 +-
 stdlib/Makefile                                    |   3 +-
 stdlib/bits/types/error_t.h                        |  14 +
 stdlib/errno.h                                     |  55 +--
 string/argz.h                                      |   9 +-
 sysdeps/generic/_G_config.h                        |   7 +-
 sysdeps/generic/siglist.h                          |  24 +-
 sysdeps/generic/sys/uio_ext.h                      |  25 +
 sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S      |   3 +-
 sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S   |   3 +-
 sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S      |   3 +-
 sysdeps/mach/hurd/bits/errno.h                     | 505 ++++++++-------------
 sysdeps/mach/hurd/errnos.awk                       | 101 ++---
 sysdeps/unix/bsd/bits/signum.h                     |  58 +--
 sysdeps/unix/sysv/linux/Makefile                   |  14 +
 sysdeps/unix/sysv/linux/_G_config.h                |   7 +-
 sysdeps/unix/sysv/linux/alpha/bits/errno.h         |  46 +-
 sysdeps/unix/sysv/linux/alpha/bits/signum.h        |  69 +--
 sysdeps/unix/sysv/linux/bits/errno.h               |  47 +-
 sysdeps/unix/sysv/linux/bits/fcntl-linux.h         |  56 +--
 sysdeps/unix/sysv/linux/bits/sched.h               | 130 +-----
 sysdeps/unix/sysv/linux/bits/signum.h              |  82 ++--
 sysdeps/unix/sysv/linux/bits/uio_lim.h             |  31 ++
 sysdeps/unix/sysv/linux/hppa/bits/errno.h          |  39 +-
 sysdeps/unix/sysv/linux/hppa/bits/signum.h         | 109 ++---
 sysdeps/unix/sysv/linux/mips/bits/errno.h          |  45 +-
 sysdeps/unix/sysv/linux/mips/bits/signum.h         |  94 ++--
 sysdeps/unix/sysv/linux/sparc/bits/errno.h         |  46 +-
 sysdeps/unix/sysv/linux/sparc/bits/signum.h        |  70 +--
 .../unix/sysv/linux/{bits/uio.h => sys/uio_ext.h}  |  41 +-
 sysdeps/unix/sysv/linux/tst-signal-numbers.sh      |  69 +++
 sysdeps/x86_64/fpu/s_cosf.S                        |   3 +-
 sysdeps/x86_64/fpu/s_sincosf.S                     |   3 +-
 sysdeps/x86_64/fpu/s_sinf.S                        |   3 +-
 wcsmbs/Makefile                                    |   3 +-
 wcsmbs/bits/types/__mbstate_t.h                    |  23 +
 wcsmbs/bits/types/mbstate_t.h                      |   8 +
 wcsmbs/bits/types/wint_t.h                         |  23 +
 wcsmbs/uchar.h                                     |   9 +-
 wcsmbs/wchar.h                                     | 125 ++---
 wctype/Makefile                                    |   2 +-
 wctype/bits/wctype-wchar.h                         | 173 +++++++
 wctype/wctype.h                                    | 179 +-------
 86 files changed, 1463 insertions(+), 1758 deletions(-)
 create mode 100644 bits/signum-generic.h
 rename bits/{uio.h => uio_lim.h} (79%)
 create mode 100644 include/bits/cpu-set.h
 create mode 100644 include/bits/types/FILE.h
 create mode 100644 include/bits/types/__FILE.h
 create mode 100644 include/bits/types/__mbstate_t.h
 create mode 100644 include/bits/types/error_t.h
 create mode 100644 include/bits/types/mbstate_t.h
 create mode 100644 include/bits/types/wint_t.h
 create mode 100644 include/bits/wctype-wchar.h
 create mode 100644 libio/bits/types/FILE.h
 create mode 100644 libio/bits/types/__FILE.h
 create mode 100644 posix/bits/cpu-set.h
 create mode 100644 scripts/make-errno-enum.sh
 create mode 100644 stdlib/bits/types/error_t.h
 create mode 100644 sysdeps/generic/sys/uio_ext.h
 create mode 100644 sysdeps/unix/sysv/linux/bits/uio_lim.h
 rename sysdeps/unix/sysv/linux/{bits/uio.h => sys/uio_ext.h} (61%)
 create mode 100644 sysdeps/unix/sysv/linux/tst-signal-numbers.sh
 create mode 100644 wcsmbs/bits/types/__mbstate_t.h
 create mode 100644 wcsmbs/bits/types/mbstate_t.h
 create mode 100644 wcsmbs/bits/types/wint_t.h
 create mode 100644 wctype/bits/wctype-wchar.h

-- 
2.11.0


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]