Update struct signalfd_siginfo from Linux 4.18

Message ID alpine.DEB.2.20.1808161537410.3421@digraph.polyomino.org.uk
State New, archived
Headers

Commit Message

Joseph Myers Aug. 16, 2018, 3:38 p.m. UTC
  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.

2018-08-16  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.
  

Comments

Joseph Myers Aug. 20, 2018, 11:28 a.m. UTC | #1
Ping.  This patch 
<https://sourceware.org/ml/libc-alpha/2018-08/msg00353.html> is pending 
review.
  
Florian Weimer Aug. 20, 2018, 11:42 a.m. UTC | #2
On 08/16/2018 05:38 PM, Joseph Myers wrote:
> 2018-08-16  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.

Looks okay.  Matches kernel commit 76b7f670730e87974f71df9f6129811e2769666e.

Thanks,
Florian
  

Patch

diff --git a/sysdeps/unix/sysv/linux/sys/signalfd.h b/sysdeps/unix/sysv/linux/sys/signalfd.h
index f39eed5..ad46608 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