Skip to content

Commit

Permalink
signal: kill __ARCH_SI_UID_T
Browse files Browse the repository at this point in the history
it's always __kernel_uid32_t

Signed-off-by: Al Viro <[email protected]>
Signed-off-by: Eric W. Biederman <[email protected]>
  • Loading branch information
Al Viro authored and ebiederm committed Jan 12, 2018
1 parent 0326e7e commit 4795477
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions include/uapi/asm-generic/siginfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ typedef union sigval {
#define SI_PAD_SIZE ((SI_MAX_SIZE - __ARCH_SI_PREAMBLE_SIZE) / sizeof(int))
#endif

#ifndef __ARCH_SI_UID_T
#define __ARCH_SI_UID_T __kernel_uid32_t
#endif

/*
* The default "si_band" type is "long", as specified by POSIX.
* However, some architectures want to override this to "int"
Expand Down Expand Up @@ -60,29 +56,28 @@ typedef struct siginfo {
/* kill() */
struct {
__kernel_pid_t _pid; /* sender's pid */
__ARCH_SI_UID_T _uid; /* sender's uid */
__kernel_uid32_t _uid; /* sender's uid */
} _kill;

/* POSIX.1b timers */
struct {
__kernel_timer_t _tid; /* timer id */
int _overrun; /* overrun count */
char _pad[sizeof( __ARCH_SI_UID_T) - sizeof(int)];
sigval_t _sigval; /* same as below */
int _sys_private; /* not to be passed to user */
} _timer;

/* POSIX.1b signals */
struct {
__kernel_pid_t _pid; /* sender's pid */
__ARCH_SI_UID_T _uid; /* sender's uid */
__kernel_uid32_t _uid; /* sender's uid */
sigval_t _sigval;
} _rt;

/* SIGCHLD */
struct {
__kernel_pid_t _pid; /* which child */
__ARCH_SI_UID_T _uid; /* sender's uid */
__kernel_uid32_t _uid; /* sender's uid */
int _status; /* exit code */
__ARCH_SI_CLOCK_T _utime;
__ARCH_SI_CLOCK_T _stime;
Expand Down

0 comments on commit 4795477

Please sign in to comment.