995-add-sigsys-to-siginfo_t-union.patch 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. Index: uClibc/libc/sysdeps/linux/common/bits/siginfo.h
  2. ===================================================================
  3. --- uClibc.orig/libc/sysdeps/linux/common/bits/siginfo.h
  4. +++ uClibc/libc/sysdeps/linux/common/bits/siginfo.h
  5. @@ -104,6 +104,14 @@ typedef struct siginfo
  6. long int si_band; /* Band event for SIGPOLL. */
  7. int si_fd;
  8. } _sigpoll;
  9. +
  10. + /* SIGSYS. */
  11. + struct
  12. + {
  13. + void *_call_addr; /* Calling user insn. */
  14. + int _syscall; /* Triggering system call number. */
  15. + unsigned int _arch; /* AUDIT_ARCH_* of syscall. */
  16. + } _sigsys;
  17. } _sifields;
  18. } siginfo_t;
  19. @@ -122,6 +130,9 @@ typedef struct siginfo
  20. # define si_addr _sifields._sigfault.si_addr
  21. # define si_band _sifields._sigpoll.si_band
  22. # define si_fd _sifields._sigpoll.si_fd
  23. +# define si_call_addr _sifields._sigsys._call_addr
  24. +# define si_syscall _sifields._sigsys._syscall
  25. +# define si_arch _sifields._sigsys._arch
  26. /* Values for `si_code'. Positive values are reserved for kernel-generated
  27. Index: uClibc/libc/sysdeps/linux/alpha/bits/siginfo.h
  28. ===================================================================
  29. --- uClibc.orig/libc/sysdeps/linux/alpha/bits/siginfo.h
  30. +++ uClibc/libc/sysdeps/linux/alpha/bits/siginfo.h
  31. @@ -98,6 +98,14 @@ typedef struct siginfo
  32. int si_band; /* Band event for SIGPOLL. */
  33. int si_fd;
  34. } _sigpoll;
  35. +
  36. + /* SIGSYS. */
  37. + struct
  38. + {
  39. + void *_call_addr; /* Calling user insn. */
  40. + int _syscall; /* Triggering system call number. */
  41. + unsigned int _arch; /* AUDIT_ARCH_* of syscall. */
  42. + } _sigsys;
  43. } _sifields;
  44. } siginfo_t;
  45. @@ -116,6 +124,9 @@ typedef struct siginfo
  46. # define si_addr _sifields._sigfault.si_addr
  47. # define si_band _sifields._sigpoll.si_band
  48. # define si_fd _sifields._sigpoll.si_fd
  49. +# define si_call_addr _sifields._sigsys._call_addr
  50. +# define si_syscall _sifields._sigsys._syscall
  51. +# define si_arch _sifields._sigsys._arch
  52. /* Values for `si_code'. Positive values are reserved for kernel-generated
  53. Index: uClibc/libc/sysdeps/linux/ia64/bits/siginfo.h
  54. ===================================================================
  55. --- uClibc.orig/libc/sysdeps/linux/ia64/bits/siginfo.h
  56. +++ uClibc/libc/sysdeps/linux/ia64/bits/siginfo.h
  57. @@ -103,6 +103,14 @@ typedef struct siginfo
  58. long int si_band; /* Band event for SIGPOLL. */
  59. int si_fd;
  60. } _sigpoll;
  61. +
  62. + /* SIGSYS. */
  63. + struct
  64. + {
  65. + void *_call_addr; /* Calling user insn. */
  66. + int _syscall; /* Triggering system call number. */
  67. + unsigned int _arch; /* AUDIT_ARCH_* of syscall. */
  68. + } _sigsys;
  69. } _sifields;
  70. } siginfo_t;
  71. @@ -121,6 +129,9 @@ typedef struct siginfo
  72. # define si_addr _sifields._sigfault.si_addr
  73. # define si_band _sifields._sigpoll.si_band
  74. # define si_fd _sifields._sigpoll.si_fd
  75. +# define si_call_addr _sifields._sigsys._call_addr
  76. +# define si_syscall _sifields._sigsys._syscall
  77. +# define si_arch _sifields._sigsys._arch
  78. # ifdef __USE_GNU
  79. # define si_imm _sifields._sigfault._si_imm
  80. Index: uClibc/libc/sysdeps/linux/mips/bits/siginfo.h
  81. ===================================================================
  82. --- uClibc.orig/libc/sysdeps/linux/mips/bits/siginfo.h
  83. +++ uClibc/libc/sysdeps/linux/mips/bits/siginfo.h
  84. @@ -107,6 +107,14 @@ typedef struct siginfo
  85. __uid_t si_uid; /* Real user ID of sending process. */
  86. sigval_t si_sigval; /* Signal value. */
  87. } _rt;
  88. +
  89. + /* SIGSYS. */
  90. + struct
  91. + {
  92. + void *_call_addr; /* Calling user insn. */
  93. + int _syscall; /* Triggering system call number. */
  94. + unsigned int _arch; /* AUDIT_ARCH_* of syscall. */
  95. + } _sigsys;
  96. } _sifields;
  97. } siginfo_t;
  98. @@ -123,6 +131,9 @@ typedef struct siginfo
  99. # define si_addr _sifields._sigfault.si_addr
  100. # define si_band _sifields._sigpoll.si_band
  101. # define si_fd _sifields._sigpoll.si_fd
  102. +# define si_call_addr _sifields._sigsys._call_addr
  103. +# define si_syscall _sifields._sigsys._syscall
  104. +# define si_arch _sifields._sigsys._arch
  105. /* Values for `si_code'. Positive values are reserved for kernel-generated
  106. Index: uClibc/libc/sysdeps/linux/sparc/bits/siginfo.h
  107. ===================================================================
  108. --- uClibc.orig/libc/sysdeps/linux/sparc/bits/siginfo.h
  109. +++ uClibc/libc/sysdeps/linux/sparc/bits/siginfo.h
  110. @@ -105,6 +105,14 @@ typedef struct siginfo
  111. int si_band; /* Band event for SIGPOLL. */
  112. int si_fd;
  113. } _sigpoll;
  114. +
  115. + /* SIGSYS. */
  116. + struct
  117. + {
  118. + void *_call_addr; /* Calling user insn. */
  119. + int _syscall; /* Triggering system call number. */
  120. + unsigned int _arch; /* AUDIT_ARCH_* of syscall. */
  121. + } _sigsys;
  122. } _sifields;
  123. } siginfo_t;
  124. @@ -124,6 +132,9 @@ typedef struct siginfo
  125. # define si_trapno _sifields._sigfault.si_trapno
  126. # define si_band _sifields._sigpoll.si_band
  127. # define si_fd _sifields._sigpoll.si_fd
  128. +# define si_call_addr _sifields._sigsys._call_addr
  129. +# define si_syscall _sifields._sigsys._syscall
  130. +# define si_arch _sifields._sigsys._arch
  131. /* Values for `si_code'. Positive values are reserved for kernel-generated