glibc/io
Zack Weinberg a992f506ff Remove __need macros from signal.h.
The types affected are __sig_atomic_t, sig_atomic_t, __sigset_t,
sigset_t, sigval_t, sigevent_t, and siginfo_t. __sig_atomic_t is a
scalar, so it's now directly available from bits/types.h.  The others
get bits/types/ headers.

Side effects include: There have been small changes to which
non-signal headers expose which subset of the signal-related types.
A couple of architectures' nested siginfo_t fields had to be renamed
to prevent undesired macro expansion.  Internal code that wants to
manipulate signal masks must now include <sigsetops.h> (which is not
installed) and should be aware that __sigaddset, __sigandset,
__sigdelset, __sigemptyset, and __sigorset no longer return a value
(unlike the public API).  Relatedly, the public signal.h no longer
declares any of those functions.  The obsolete sigmask() macro no
longer has a system-specific definition -- in the cases where it
matters, it didn't work anyway.

New Linux architectures should create bits/siginfo-arch.h and/or
bits/siginfo-consts-arch.h to customize their siginfo_t, rather than
duplicating everything in bits/siginfo.h (which no longer exists).
Add new __SI_* macros if necessary.  Ports to other operating systems
are strongly encouraged to generalize this scheme further.

	* bits/sigevent-consts.h
	* bits/siginfo-consts.h
	* bits/types/__sigset_t.h
	* bits/types/sigevent_t.h
	* bits/types/siginfo_t.h
	* sysdeps/unix/sysv/linux/bits/sigevent-consts.h
	* sysdeps/unix/sysv/linux/bits/siginfo-consts.h
	* sysdeps/unix/sysv/linux/bits/types/__sigset_t.h
	* sysdeps/unix/sysv/linux/bits/types/sigevent_t.h
	* sysdeps/unix/sysv/linux/bits/types/siginfo_t.h:
	New system-dependent bits headers.

	* sysdeps/unix/sysv/linux/bits/siginfo-arch.h
	* sysdeps/unix/sysv/linux/bits/siginfo-consts-arch.h
	* sysdeps/unix/sysv/linux/ia64/bits/siginfo-arch.h
	* sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
	* sysdeps/unix/sysv/linux/mips/bits/siginfo-arch.h
	* sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
	* sysdeps/unix/sysv/linux/tile/bits/siginfo-arch.h
	* sysdeps/unix/sysv/linux/tile/bits/siginfo-consts-arch.h
	* sysdeps/unix/sysv/linux/x86/bits/siginfo-arch.h:
	New Linux-only system-dependent bits headers.

	* signal/bits/types/sig_atomic_t.h
	* signal/bits/types/sigset_t.h
	* signal/bits/types/sigval_t.h:
	New non-system-dependent bits headers.

	* sysdeps/generic/sigsetops.h
	* sysdeps/unix/sysv/linux/sigsetops.h:
	New internal headers.

	* include/bits/types/sig_atomic_t.h
	* include/bits/types/sigset_t.h
	* include/bits/types/sigval_t.h:
	New wrappers.

	* signal/sigsetops.h
	* bits/siginfo.h
	* bits/sigset.h
	* sysdeps/unix/sysv/linux/bits/siginfo.h
	* sysdeps/unix/sysv/linux/bits/sigset.h
	* sysdeps/unix/sysv/linux/ia64/bits/siginfo.h
	* sysdeps/unix/sysv/linux/mips/bits/siginfo.h
	* sysdeps/unix/sysv/linux/s390/bits/siginfo.h
	* sysdeps/unix/sysv/linux/sparc/bits/siginfo.h
	* sysdeps/unix/sysv/linux/tile/bits/siginfo.h
	* sysdeps/unix/sysv/linux/x86/bits/siginfo.h:
	Deleted.

	* signal/Makefile, sysdeps/unix/sysv/linux/Makefile:
	Update lists of installed headers.

	* posix/bits/types.h: Define __sig_atomic_t here.
	* signal/signal.h: Use the new bits headers; no need to handle
	__need_sig_atomic_t nor __need_sigset_t.  Don't use __sigmask
	to define sigmask.
	* include/signal.h: No need to handle __need_sig_atomic_t
	nor __need_sigset_t.  Don't define __sigemptyset.

	* io/sys/poll.h, setjmp/setjmp.h
	* sysdeps/arm/sys/ucontext.h, sysdeps/generic/sys/ucontext.h
	* sysdeps/i386/sys/ucontext.h, sysdeps/m68k/sys/ucontext.h
	* sysdeps/mach/hurd/i386/bits/sigcontext.h
	* sysdeps/mips/sys/ucontext.h, sysdeps/powerpc/novmxsetjmp.h
	* sysdeps/pthread/bits/sigthread.h
	* sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
	* sysdeps/unix/sysv/linux/m68k/sys/ucontext.h
	* sysdeps/unix/sysv/linux/mips/sys/ucontext.h
	* sysdeps/unix/sysv/linux/nios2/sys/ucontext.h
	* sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
	* sysdeps/unix/sysv/linux/s390/sys/ucontext.h
	* sysdeps/unix/sysv/linux/sh/sys/ucontext.h
	* sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
	* sysdeps/unix/sysv/linux/tile/sys/ucontext.h
	* sysdeps/unix/sysv/linux/x86/sys/ucontext.h:
	Use bits/types/__sigset_t.h.

	* misc/sys/select.h, posix/spawn.h
	* sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
	* sysdeps/unix/sysv/linux/sys/epoll.h
	* sysdeps/unix/sysv/linux/sys/signalfd.h:
	Use bits/types/sigset_t.h.

	* resolv/netdb.h, rt/mqueue.h: Use bits/types/sigevent_t.h.
	* rt/aio.h: Use bits/types/sigevent_t.h and bits/sigevent-consts.h.
	* socket/sys/socket.h: Don't include bits/sigset.h.

	* login/utmp_file.c, shadow/lckpwdf.c, signal/sigandset.c
	* signal/sigisempty.c, stdlib/abort.c, sysdeps/posix/profil.c
	* sysdeps/posix/sigignore.c, sysdeps/posix/sigintr.c
	* sysdeps/posix/signal.c, sysdeps/posix/sigset.c
	* sysdeps/posix/sprofil.c, sysdeps/posix/sysv_signal.c
	* sysdeps/unix/sysv/linux/nptl-signals.h:
	Include sigsetops.h.

	* signal/sigaddset.c, signal/sigandset.c, signal/sigdelset.c
	* signal/sigorset.c, stdlib/abort.c, sysdeps/posix/sigignore.c
	* sysdeps/posix/signal.c, sysdeps/posix/sigset.c:
	__sigaddset, __sigandset, __sigdelset, __sigemptyset, __sigorset
	now return no value.

	* signal/sigaddset.c, signal/sigdelset.c, signal/sigismem.c
	Include <errno.h>, <signal.h>, and <sigsetops.h> instead of
	"sigsetops.h".

	* signal/sigsetops.c: Explicitly define __sigismember,
	__sigaddset, and __sigdelset as compatibility symbols.

	* signal/Versions: Correct commentary on __sigpause,
	__sigaddset, __sigdelset, __sigismember.

	* inet/rcmd.c: Include sigsetops.h.  Convert old code using
	__sigblock/__sigsetmask to use __sigprocmask and friends.
2017-05-20 19:04:43 -04:00
..
bits Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sys Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
Makefile Consolidate Linux write syscall 2017-05-11 17:27:30 -03:00
Versions Add LFS support for fts functions (bug 11460) 2015-11-06 11:24:16 +01:00
access.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
bug-ftw1.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
bug-ftw2.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
bug-ftw3.c Update. 2002-02-07 17:54:45 +00:00
bug-ftw4.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
bug-ftw5.c [BZ #4076] 2007-02-21 09:36:46 +00:00
chdir.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
chmod.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
chown.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
close.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
creat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
creat64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
dup.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
dup2.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
dup3.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
euidaccess.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
faccessat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fchdir.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fchmod.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fchmodat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fchown.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fchownat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fcntl.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fcntl.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
flock.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fstat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fstat64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fstatat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fstatat64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fstatfs.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fstatfs64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fstatvfs.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fstatvfs64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fts.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fts.h fts: Fix symbol redirect for fts_set [BZ #21289] 2017-03-31 09:11:16 +02:00
fts64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ftw.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ftw.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ftw64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ftwtest-sh Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ftwtest.c Update. 2003-11-07 23:00:00 +00:00
futimens.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fxstat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fxstat64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fxstatat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fxstatat64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
getcwd.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
getdirname.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
getwd.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
isatty.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lchmod.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lchown.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
link.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
linkat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lockf.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lockf64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lseek.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lseek64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lstat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lstat64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lxstat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lxstat64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mkdir.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mkdirat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mkfifo.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mkfifoat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mknod.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mknodat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
open.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
open64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
open64_2.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
open_2.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
openat.c Narrowing the visibility of libc-internal.h even further. 2017-03-01 20:33:46 -05:00
openat64.c Narrowing the visibility of libc-internal.h even further. 2017-03-01 20:33:46 -05:00
openat64_2.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
openat_2.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
pipe.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
pipe2.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
poll.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
poll.h
posix_fadvise.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
posix_fadvise64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
posix_fallocate.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
posix_fallocate64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ppoll.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
pwd.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
read.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
readlink.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
readlinkat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
rmdir.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sendfile.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sendfile64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
stat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
stat64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
statfs.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
statfs64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
statvfs.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
statvfs64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
symlink.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
symlinkat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-lfs.c Fix MIPS n32 lseek, lseek64 (bug 21019). 2017-01-02 23:09:25 +00:00
test-stat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-stat2.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-utime.c Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
tst-faccessat.c Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
tst-fchmodat.c Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
tst-fchownat.c Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
tst-fcntl.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-fstatat.c Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
tst-fts-lfs.c Add LFS support for fts functions (bug 11460) 2015-11-06 11:24:16 +01:00
tst-fts.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-futimesat.c Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
tst-getcwd.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-linkat.c Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
tst-mkdirat.c Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
tst-mkfifoat.c Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
tst-mknodat.c Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
tst-open-tmpfile.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-openat.c Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
tst-posix_fallocate-common.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-posix_fallocate.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-posix_fallocate64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-readlinkat.c Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
tst-renameat.c Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
tst-statvfs.c Update. 2003-10-27 04:05:04 +00:00
tst-symlinkat.c Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
tst-ttyname_r.c * nis/nis_subr.c (nis_getnames): Revert last change. 2006-12-05 21:28:15 +00:00
tst-unlinkat.c Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
ttyname.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ttyname_r.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
umask.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
unlink.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
unlinkat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
utime.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
utime.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
utimensat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
write.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
xmknod.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
xmknodat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
xstat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
xstat64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00