about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2018-08-20 15:48:16 +0000
committerJoseph Myers <joseph@codesourcery.com>2018-08-20 15:48:16 +0000
commite6edd40d61009e8a71bffe6fb2ef41a00c6f63d2 (patch)
tree6fefdefe07b8a06566c2ec09fc16c9ee4333b245
parent174195409d6a3d639dd28e08cf99d6f2559eca9c (diff)
downloadglibc-e6edd40d61009e8a71bffe6fb2ef41a00c6f63d2.tar.gz
glibc-e6edd40d61009e8a71bffe6fb2ef41a00c6f63d2.tar.xz
glibc-e6edd40d61009e8a71bffe6fb2ef41a00c6f63d2.zip
Update struct signalfd_siginfo from Linux 4.18.
This patch updates struct signalfd_siginfo in sys/signalfd.h with new
members from Linux 4.18 (plus ssi_addr_lsb, added to the kernel in
2.6.37 without being added to sys/signalfd.h at that time).  The
__pad2 member name follows the kernel and the existing __pad name.

Tested for x86_64.

	* sysdeps/unix/sysv/linux/sys/signalfd.h (struct
	signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
	and ssi_arch members.
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/unix/sysv/linux/sys/signalfd.h7
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 925a8338f2..7893962115 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2018-08-20  Joseph Myers  <joseph@codesourcery.com>
 
+	* sysdeps/unix/sysv/linux/sys/signalfd.h (struct
+	signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
+	and ssi_arch members.
+
 	* elf/elf.c (NT_VMCOREDD): New macro.
 	(AT_MINSIGSTKSZ): Likewise.
 
diff --git a/sysdeps/unix/sysv/linux/sys/signalfd.h b/sysdeps/unix/sysv/linux/sys/signalfd.h
index f39eed5f12..ad4660860d 100644
--- a/sysdeps/unix/sysv/linux/sys/signalfd.h
+++ b/sysdeps/unix/sysv/linux/sys/signalfd.h
@@ -42,7 +42,12 @@ struct signalfd_siginfo
   uint64_t ssi_utime;
   uint64_t ssi_stime;
   uint64_t ssi_addr;
-  uint8_t __pad[48];
+  uint16_t ssi_addr_lsb;
+  uint16_t __pad2;
+  int32_t ssi_syscall;
+  uint64_t ssi_call_addr;
+  uint32_t ssi_arch;
+  uint8_t __pad[28];
 };
 
 __BEGIN_DECLS