]> git.ipfire.org Git - thirdparty/glibc.git/commit
Swap sys/poll.h with poll.h.
authorZack Weinberg <zackw@panix.com>
Sun, 17 Mar 2019 13:50:36 +0000 (09:50 -0400)
committerZack Weinberg <zackw@panix.com>
Wed, 8 Jan 2020 18:04:43 +0000 (13:04 -0500)
commit89cbc039a98f6bfc7e27c98a7e3799cf190c11f1
tree9fe3176363b01537b7b119c7bd9fdbde552a25dc
parent5ad1fcd032064772025675690dea8e6335592c18
Swap sys/poll.h with poll.h.

Similarly to (sys/)syslog.h, poll.h is the header standardized by
POSIX, but we had all of its contents in sys/, for historical reasons.
This patch exchanges the contents of the two headers, and adds
multiple-include guards to all of poll.h’s bits headers.

* io/poll.h: Exchange contents with...
* io/sys/poll.h: ...this file.  Adjust guard macros.

* include/poll.h: Exchange contents with...
* include/sys/poll.h: ...this file.  Adjust guard macros.

* bits/poll.h, io/bits/poll2.h
* sysdeps/unix/sysv/linux/bits/poll.h
* sysdeps/unix/sysv/linux/m68k/bits/poll.h
* sysdeps/unix/sysv/linux/mips/bits/poll.h
* sysdeps/unix/sysv/linux/sparc/bits/poll.h:
        Allow inclusion by poll.h, not sys/poll.h.  Add multiple-
        include guards where not already present.

* scripts/check-obsolete-constructs.py (HEADER_ALLOWED_INCLUDES):
        Update.
bits/poll.h
include/poll.h
include/sys/poll.h
io/bits/poll2.h
io/poll.h
io/sys/poll.h
scripts/check-obsolete-constructs.py
sysdeps/unix/sysv/linux/bits/poll.h
sysdeps/unix/sysv/linux/m68k/bits/poll.h
sysdeps/unix/sysv/linux/mips/bits/poll.h
sysdeps/unix/sysv/linux/sparc/bits/poll.h