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/6] Header file cleanups revised again


Patches 1-4 should be uncontroversial.  In particular, patch 3's new
header is now called bits/uio-ext.h instead of sys/uio_ext.h and
refuses to be included in isolation.

Patches 5 and 6 make user-visible changes that may be controversial:
error_t is an enumeration on non-Hurd, and xlocale.h is deprecated,
respectively. Note that errno.h already defines error_t (when
_GNU_SOURCE) on all supported operating systems; it is only the
enumeration that is new.

zw

Zack Weinberg (6):
  Factor out shared definitions from bits/signum.h.
  Remove __need_schedparam and __cpu_set_t_defined.
  Remove __need_IOV_MAX and __need_FOPEN_MAX.
  Remove __need macros from errno.h (__need_Emath, __need_error_t).
  Make error_t an enumeration on all supported OSes.
  Deprecate xlocale.h and add bits/types/locale_t.h.

 Makeconfig                                        |  13 +
 Makerules                                         |  10 +-
 NEWS                                              |  14 +
 argp/argp.h                                       |  14 +-
 bits/errno.h                                      |  40 +-
 bits/sched.h                                      | 121 +----
 bits/signum-generic.h                             | 102 +++++
 bits/signum.h                                     |  72 +--
 bits/uio-ext.h                                    |  27 ++
 bits/{uio.h => uio_lim.h}                         |  12 +-
 ctype/ctype.h                                     |  16 +-
 include/bits/cpu-set.h                            |   1 +
 include/bits/types/locale_t.h                     |   1 +
 include/bits/xopen_lim.h                          |  13 +-
 include/errno.h                                   |  11 +-
 include/printf.h                                  |   2 +-
 include/time.h                                    |   2 +-
 include/xlocale.h                                 |   1 -
 locale/Makefile                                   |   3 +-
 locale/bits/types/locale_t.h                      |  44 ++
 locale/langinfo.h                                 |   7 +-
 locale/locale.h                                   |  20 +-
 locale/xlocale.h                                  |  50 +--
 misc/Makefile                                     |   3 +-
 misc/sys/uio.h                                    |  18 +-
 posix/Makefile                                    |   4 +-
 posix/bits/cpu-set.h                              | 124 ++++++
 posix/sched.h                                     |   8 +-
 scripts/check-installed-headers.sh                |   4 +
 scripts/make-errno-enum.sh                        |  69 +++
 signal/Makefile                                   |   3 +-
 signal/signal.h                                   |   3 +
 stdio-common/stdio_lim.h.in                       |  31 +-
 stdlib/Makefile                                   |   2 +-
 stdlib/errno.h                                    |  69 ++-
 stdlib/monetary.h                                 |   3 +-
 stdlib/stdlib.h                                   |  20 +-
 stdlib/strtod_l.c                                 |   3 +-
 stdlib/strtof_l.c                                 |   2 +-
 stdlib/strtol_l.c                                 |   1 -
 stdlib/strtold_l.c                                |   6 +-
 stdlib/strtoll_l.c                                |   2 +-
 stdlib/strtoul_l.c                                |   2 +-
 stdlib/strtoull_l.c                               |   2 +-
 string/argz.h                                     |  10 +-
 string/string.h                                   |   3 +-
 string/strings.h                                  |   3 +-
 sysdeps/generic/siglist.h                         |  24 +-
 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/ieee754/ldbl-128ibm/strtold_l.c           |   1 -
 sysdeps/ieee754/ldbl-64-128/strtold_l.c           |   1 -
 sysdeps/mach/hurd/bits/errno.h                    | 515 ++++++++--------------
 sysdeps/mach/hurd/errnos.awk                      | 163 +++----
 sysdeps/unix/bsd/bits/signum.h                    |  58 +--
 sysdeps/unix/sysv/linux/Makefile                  |  14 +
 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        |  54 +--
 sysdeps/unix/sysv/linux/bits/sched.h              | 130 +-----
 sysdeps/unix/sysv/linux/bits/signum.h             |  83 ++--
 sysdeps/unix/sysv/linux/bits/{uio.h => uio-ext.h} |  43 +-
 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        | 110 ++---
 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 +--
 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 +-
 time/time.h                                       |   2 +-
 wcsmbs/wchar.h                                    |  27 +-
 wcsmbs/wcstod.c                                   |   2 +-
 wcsmbs/wcstod_l.c                                 |   2 +-
 wcsmbs/wcstof.c                                   |   2 +-
 wcsmbs/wcstof_l.c                                 |   2 +-
 wcsmbs/wcstold.c                                  |   2 +-
 wcsmbs/wcstold_l.c                                |   2 +-
 wctype/wctype.h                                   |   4 +-
 84 files changed, 1292 insertions(+), 1514 deletions(-)
 create mode 100644 bits/signum-generic.h
 create mode 100644 bits/uio-ext.h
 rename bits/{uio.h => uio_lim.h} (79%)
 create mode 100644 include/bits/cpu-set.h
 create mode 100644 include/bits/types/locale_t.h
 delete mode 100644 include/xlocale.h
 create mode 100644 locale/bits/types/locale_t.h
 create mode 100644 posix/bits/cpu-set.h
 create mode 100644 scripts/make-errno-enum.sh
 rename sysdeps/unix/sysv/linux/bits/{uio.h => uio-ext.h} (61%)
 create mode 100644 sysdeps/unix/sysv/linux/bits/uio_lim.h
 create mode 100644 sysdeps/unix/sysv/linux/tst-signal-numbers.sh

-- 
2.11.0


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