0004-add-SIGSYS-support-to-sys-signalfd.h-from-linux-v4.1.patch 965 B

12345678910111213141516171819202122232425262728293031323334
  1. From 0d51831d4dbe1fc3de1511fb6c15b2e6ea6f0e8f Mon Sep 17 00:00:00 2001
  2. From: Szabolcs Nagy <nsz@port70.net>
  3. Date: Wed, 22 Aug 2018 16:39:20 +0000
  4. Subject: [PATCH 4/8] add SIGSYS support to sys/signalfd.h from linux v4.18
  5. new in linux commit 76b7f670730e87974f71df9f6129811e2769666e
  6. in struct signalfd_siginfo the pad member is changed to __pad to keep
  7. the namespace clean, it's not part of the public api.
  8. ---
  9. include/sys/signalfd.h | 6 +++++-
  10. 1 file changed, 5 insertions(+), 1 deletion(-)
  11. diff --git a/include/sys/signalfd.h b/include/sys/signalfd.h
  12. index 55431b91..e881e2cf 100644
  13. --- a/include/sys/signalfd.h
  14. +++ b/include/sys/signalfd.h
  15. @@ -35,7 +35,11 @@ struct signalfd_siginfo {
  16. uint64_t ssi_stime;
  17. uint64_t ssi_addr;
  18. uint16_t ssi_addr_lsb;
  19. - uint8_t pad[128-12*4-4*8-2];
  20. + uint16_t __pad2;
  21. + int32_t ssi_syscall;
  22. + uint64_t ssi_call_addr;
  23. + uint32_t ssi_arch;
  24. + uint8_t __pad[128-14*4-5*8-2*2];
  25. };
  26. #ifdef __cplusplus
  27. --
  28. 2.17.1