glibc/sysdeps/unix/sysv/linux/sys
Joseph Myers d0d8eb4328 Unify more sys/procfs.h headers.
This patch continues the process of unifying sys/procfs.h headers for
architectures using the Linux kernel.

A bits/procfs-id.h header is added to define __pr_uid_t and __pr_gid_t
for the types of pr_uid and pr_gid; the default version of this header
uses unsigned int.  On some architectures, sys/procfs.h has copies of
32-bit structures for 64-bit builds; those move into a
bits/procfs-extra.h header (they can't go in bits/procfs.h because
they have to come *after* other declarations from sys/procfs.h).
Given appropriate versions of these headers, six more architectures
can then move to providing only bits/procfs*.h without duplicating the
rest of the contents of sys/procfs.h.  Only alpha needs a further
bits/ header to be added before it can stop having its own
sys/procfs.h.

Tested for x86_64 and x86, and with build-many-glibcs.py.

	* sysdeps/unix/sysv/linux/sys/procfs.h: Include
	<bits/procfs-id.h> and <bits/procfs-extra.h>.
	(struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
	pr_uid and pr_gid.
	* sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
	(sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
	* sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
	* sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
	* sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
	* sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
	* sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
	* sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
	* sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
	* sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
	* sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
	* sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
	* sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
	* sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
	* sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
	* sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
	* sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
	* sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
	* sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
	* sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
	* sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
	* sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
	* sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
2018-09-25 16:49:25 +00:00
..
acct.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
epoll.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
eventfd.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fanotify.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fsuid.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
inotify.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
kd.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
klog.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
mount.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
pci.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
personality.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
prctl.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
procfs.h Unify more sys/procfs.h headers. 2018-09-25 16:49:25 +00:00
ptrace.h Add PTRACE_SECCOMP_GET_METADATA from Linux 4.16 to sys/ptrace.h. 2018-04-24 12:11:35 +00:00
quota.h Only define loff_t for __USE_MISC (bug 14553). 2018-02-06 21:29:50 +00:00
raw.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
reboot.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
signalfd.h Update struct signalfd_siginfo from Linux 4.18. 2018-08-20 15:48:16 +00:00
soundcard.h update from main archive 961008 1996-10-08 23:39:20 +00:00
swap.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
syscall.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
sysctl.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
sysinfo.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
timerfd.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
timex.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
ttydefaults.h Update. 1999-06-08 21:20:07 +00:00
user.h [BZ #6505] 2008-05-11 00:44:42 +00:00
vt.h update from main archive 1996-09-27 03:45:24 +00:00