]> asedeno.scripts.mit.edu Git - linux.git/commit
s390/signal: cleanup uapi struct sigaction
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 12 Apr 2018 11:48:25 +0000 (13:48 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 17 Apr 2018 08:36:12 +0000 (10:36 +0200)
commitfae764912153065ea55eda47f834e0764a54df94
treee617ff5bb25474858e2ec5a16ec6685bb4eb6307
parent49d23a851d62c03daebae2d245dcc9b07dbfa89f
s390/signal: cleanup uapi struct sigaction

The struct sigaction for user space in arch/s390/include/uapi/asm/signal.h
is ill defined. The kernel uses two structures 'struct sigaction' and
'struct old_sigaction', the correlation in the kernel for both 31 and
64 bit is as follows

    sys_sigaction -> struct old_sigaction
    sys_rt_sigaction -> struct sigaction

The correlation of the (single) uapi definition for 'struct sigaction'
under '#ifndef __KERNEL__':

    31-bit: sys_sigaction -> uapi struct sigaction
    31-bit: sys_rt_sigaction -> no structure available

    64-bit: sys_sigaction -> no structure available
    64-bit: sys_rt_sigaction -> uapi struct sigaction

This is quite confusing. To make it a bit less confusing make the
uapi definition of 'struct sigaction' usable for sys_rt_sigaction for
both 31-bit and 64-bit.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/uapi/asm/signal.h