diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2017-07-09 15:53:17 -0400 |
|---|---|---|
| committer | Eric W. Biederman <ebiederm@xmission.com> | 2018-01-15 18:40:31 -0500 |
| commit | b713da69e4c91d9addada4e58d26df1c9b5cd840 (patch) | |
| tree | 3deb6d1cbf4106e07097754268eacef3386a1319 /arch/mips/include | |
| parent | 4795477b2365e51c2eb5b8db65385b19ab2e0bbf (diff) | |
signal: unify compat_siginfo_t
--EWB Added #ifdef CONFIG_X86_X32_ABI to arch/x86/kernel/signal_compat.c
Changed #ifdef CONFIG_X86_X32 to #ifdef CONFIG_X86_X32_ABI in
linux/compat.h
CONFIG_X86_X32 is set when the user requests X32 support.
CONFIG_X86_X32_ABI is set when the user requests X32 support
and the tool-chain has X32 allowing X32 support to be built.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'arch/mips/include')
| -rw-r--r-- | arch/mips/include/asm/compat.h | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/arch/mips/include/asm/compat.h b/arch/mips/include/asm/compat.h index 49691331ada4..fe7d445f675f 100644 --- a/arch/mips/include/asm/compat.h +++ b/arch/mips/include/asm/compat.h | |||
| @@ -126,79 +126,8 @@ typedef u32 compat_old_sigset_t; /* at least 32 bits */ | |||
| 126 | 126 | ||
| 127 | typedef u32 compat_sigset_word; | 127 | typedef u32 compat_sigset_word; |
| 128 | 128 | ||
| 129 | typedef union compat_sigval { | ||
| 130 | compat_int_t sival_int; | ||
| 131 | compat_uptr_t sival_ptr; | ||
| 132 | } compat_sigval_t; | ||
| 133 | |||
| 134 | /* Can't use the generic version because si_code and si_errno are swapped */ | ||
| 135 | |||
| 136 | #define SI_PAD_SIZE32 (128/sizeof(int) - 3) | 129 | #define SI_PAD_SIZE32 (128/sizeof(int) - 3) |
| 137 | 130 | ||
| 138 | typedef struct compat_siginfo { | ||
| 139 | int si_signo; | ||
| 140 | int si_code; | ||
| 141 | int si_errno; | ||
| 142 | |||
| 143 | union { | ||
| 144 | int _pad[128 / sizeof(int) - 3]; | ||
| 145 | |||
| 146 | /* kill() */ | ||
| 147 | struct { | ||
| 148 | compat_pid_t _pid; /* sender's pid */ | ||
| 149 | __compat_uid32_t _uid; /* sender's uid */ | ||
| 150 | } _kill; | ||
| 151 | |||
| 152 | /* POSIX.1b timers */ | ||
| 153 | struct { | ||
| 154 | compat_timer_t _tid; /* timer id */ | ||
| 155 | int _overrun; /* overrun count */ | ||
| 156 | compat_sigval_t _sigval; /* same as below */ | ||
| 157 | } _timer; | ||
| 158 | |||
| 159 | /* POSIX.1b signals */ | ||
| 160 | struct { | ||
| 161 | compat_pid_t _pid; /* sender's pid */ | ||
| 162 | __compat_uid32_t _uid; /* sender's uid */ | ||
| 163 | compat_sigval_t _sigval; | ||
| 164 | } _rt; | ||
| 165 | |||
| 166 | /* SIGCHLD */ | ||
| 167 | struct { | ||
| 168 | compat_pid_t _pid; /* which child */ | ||
| 169 | __compat_uid32_t _uid; /* sender's uid */ | ||
| 170 | int _status; /* exit code */ | ||
| 171 | compat_clock_t _utime; | ||
| 172 | compat_clock_t _stime; | ||
| 173 | } _sigchld; | ||
| 174 | |||
| 175 | /* SIGILL, SIGFPE, SIGSEGV, SIGBUS */ | ||
| 176 | struct { | ||
| 177 | compat_uptr_t _addr; /* faulting insn/memory ref. */ | ||
| 178 | #ifdef __ARCH_SI_TRAPNO | ||
| 179 | int _trapno; /* TRAP # which caused the signal */ | ||
| 180 | #endif | ||
| 181 | short _addr_lsb; /* LSB of the reported address */ | ||
| 182 | struct { | ||
| 183 | compat_uptr_t _lower; | ||
| 184 | compat_uptr_t _upper; | ||
| 185 | } _addr_bnd; | ||
| 186 | } _sigfault; | ||
| 187 | |||
| 188 | /* SIGPOLL */ | ||
| 189 | struct { | ||
| 190 | compat_long_t _band; /* POLL_IN, POLL_OUT, POLL_MSG */ | ||
| 191 | int _fd; | ||
| 192 | } _sigpoll; | ||
| 193 | |||
| 194 | struct { | ||
| 195 | compat_uptr_t _call_addr; /* calling insn */ | ||
| 196 | int _syscall; /* triggering system call number */ | ||
| 197 | compat_uint_t _arch; /* AUDIT_ARCH_* of syscall */ | ||
| 198 | } _sigsys; | ||
| 199 | } _sifields; | ||
| 200 | } compat_siginfo_t; | ||
| 201 | |||
| 202 | #define COMPAT_OFF_T_MAX 0x7fffffff | 131 | #define COMPAT_OFF_T_MAX 0x7fffffff |
| 203 | 132 | ||
| 204 | /* | 133 | /* |
