diff options
author | Zack Weinberg <zackw@panix.com> | 2019-02-18 21:00:34 -0500 |
---|---|---|
committer | Zack Weinberg <zackw@panix.com> | 2019-03-09 10:30:10 -0500 |
commit | adf04a2ec1fb975659126f31ef9b547f409ccd7d (patch) | |
tree | b99509e68116cc27fc236d27595ccee720ae2f79 /sysdeps/mach/hurd/readdir64_r.c | |
parent | eb34f0ddc319c7e0f8bf841421a50d7182bcfff4 (diff) | |
download | glibc-adf04a2ec1fb975659126f31ef9b547f409ccd7d.tar.gz |
sys/types.h: Don’t define u_intN_t or register_t unless __USE_MISC.
sys/types.h unconditionally defines u_int8_t, u_int16_t, u_int32_t,
u_int64_t, and register_t. These are not part of any standard. The
u_intXX_t types are superseded by C99’s uintXX_t types (defined in
stdint.h). I’m not aware of a standardized exact equivalent of
register_t, but also I’ve never seen anyone use it for anything.
I could be persuaded to leave that one alone.
sys/types.h also unconditionally defines int8_t, int16_t, int32_t, and
int64_t, which are the same as the C99 exact-width signed types in
stdint.h. POSIX doesn’t require these to appear in sys/types.h, so in
principle they ought to be brought under __USE_MISC also. But, when I
tried that it broke about two dozen files just in our own source tree,
and POSIX doesn’t *forbid* sys/types.h to define these types, so I
think we should leave them alone.
* posix/sys/types.h (u_int8_t, u_int16_t, u_int32_t, u_int64_t)
(register_t): Move under #ifdef __USE_MISC.
Consolidate adjacent #ifdef __USE_MISC blocks.
* scripts/check_obsolete_constructs.py: Add register_t to the
set of obsolete typedefs that our headers should not use
(but sys/types.h may still define).
Diffstat (limited to 'sysdeps/mach/hurd/readdir64_r.c')
0 files changed, 0 insertions, 0 deletions