glibc/sysdeps/unix/sysv/linux/sys
Joseph Myers d59f3e5e0f Fix sys/procfs.h pr_uid, pr_gid type (bug 23649).
As noted in
<https://sourceware.org/ml/libc-alpha/2018-09/msg00178.html>, glibc's
sys/procfs.h headers for microblaze, mips (n64), nios2 and riscv have
incorrect types for the pr_uid and pr_gid members of struct
elf_prpsinfo (as does the generic Linux version, but nothing uses
that).

This patch fixes those headers to use unsigned int.  The generic Linux
version is also fixed, but I do *not* recommend making new
architectures use it yet.  Rather, I think it should be reworked to
look more like a copy of the AArch64 version, but with a new
<bits/procfs.h> header included to provide register set definitions;
<bits/procfs.h> would then be architecture-specific while many
architectures could use the generic <sys/procfs.h>.  This fix is
deliberately separate from any reworking to use a generic header more,
since it's possible there could be uses for backporting this fix but
not for backporting a subsequent cleanup.

Tested with build-many-glibcs.py.  This of course doesn't provide much
validation of the structure layout; if the Linux kernel is fixed so
that "#include <linux/elfcore.h>" actually compiles with the headers
from "make headers_install" (and if the layout in both headers is
meant to be the same, whatever ABI we are building for), I have a test
that can be added to glibc to check the layout against that from the
Linux kernel.

	[BZ #23649]
	* sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
	elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
	* sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
	Likewise.
	* sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
	elf_prpsinfo): Likewise.
	* sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
	elf_prpsinfo): Likewise.
	* sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
	Likewise.
2018-09-14 13:21:33 +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 Fix sys/procfs.h pr_uid, pr_gid type (bug 23649). 2018-09-14 13:21:33 +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
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
user.h
vt.h