diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-07-09 23:14:25 +0200 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2018-01-12 21:34:48 +0100 |
commit | 09d1415d2454dbcd7cb2fc0b56da8afba8d03dc6 (patch) | |
tree | 43359160002aa7834aa9fbbebef9648699344333 /include | |
parent | signal/ia64: switch the last arch-specific copy_siginfo_to_user() to generic ... (diff) | |
download | linux-09d1415d2454dbcd7cb2fc0b56da8afba8d03dc6.tar.xz linux-09d1415d2454dbcd7cb2fc0b56da8afba8d03dc6.zip |
signal/mips: switch mips to generic siginfo
... having taught the latter that si_errno and si_code might be
swapped.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/asm-generic/siginfo.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/asm-generic/siginfo.h b/include/uapi/asm-generic/siginfo.h index 1555805c5ac8..00829f74dcb6 100644 --- a/include/uapi/asm-generic/siginfo.h +++ b/include/uapi/asm-generic/siginfo.h @@ -48,8 +48,13 @@ typedef union sigval { typedef struct siginfo { int si_signo; +#ifndef __ARCH_HAS_SWAPPED_SIGINFO int si_errno; int si_code; +#else + int si_code; + int si_errno; +#endif union { int _pad[SI_PAD_SIZE]; |