linux(4): Reduce duplication between MD parts of the Linuxulator
Move sigprocmask actions defines under compat/linux, they are identical across all Linux architectures. MFC after: 2 weeks
This commit is contained in:
parent
8c0d1eca78
commit
2ca34847e7
@ -161,11 +161,6 @@ struct l_newstat {
|
||||
#define LINUX_SA_NOMASK 0x40000000
|
||||
#define LINUX_SA_ONESHOT 0x80000000
|
||||
|
||||
/* sigprocmask actions */
|
||||
#define LINUX_SIG_BLOCK 0
|
||||
#define LINUX_SIG_UNBLOCK 1
|
||||
#define LINUX_SIG_SETMASK 2
|
||||
|
||||
/* sigaltstack */
|
||||
#define LINUX_MINSIGSTKSZ 2048
|
||||
|
||||
|
@ -263,11 +263,6 @@ struct l_statfs64 {
|
||||
#define LINUX_SA_NOMASK 0x40000000
|
||||
#define LINUX_SA_ONESHOT 0x80000000
|
||||
|
||||
/* sigprocmask actions */
|
||||
#define LINUX_SIG_BLOCK 0
|
||||
#define LINUX_SIG_UNBLOCK 1
|
||||
#define LINUX_SIG_SETMASK 2
|
||||
|
||||
/* sigaltstack */
|
||||
#define LINUX_MINSIGSTKSZ 2048
|
||||
|
||||
|
@ -158,11 +158,6 @@ struct l_newstat {
|
||||
#define LINUX_SA_NOMASK 0x40000000 /* SA_NODEFER */
|
||||
#define LINUX_SA_ONESHOT 0x80000000 /* SA_RESETHAND */
|
||||
|
||||
/* sigprocmask actions */
|
||||
#define LINUX_SIG_BLOCK 0
|
||||
#define LINUX_SIG_UNBLOCK 1
|
||||
#define LINUX_SIG_SETMASK 2
|
||||
|
||||
typedef void (*l_handler_t)(l_int);
|
||||
|
||||
typedef struct {
|
||||
|
@ -167,6 +167,11 @@ void bsd_to_linux_sigset(sigset_t *, l_sigset_t *);
|
||||
int linux_to_bsd_signal(int sig);
|
||||
int bsd_to_linux_signal(int sig);
|
||||
|
||||
/* sigprocmask actions */
|
||||
#define LINUX_SIG_BLOCK 0
|
||||
#define LINUX_SIG_UNBLOCK 1
|
||||
#define LINUX_SIG_SETMASK 2
|
||||
|
||||
void linux_dev_shm_create(void);
|
||||
void linux_dev_shm_destroy(void);
|
||||
|
||||
|
@ -236,11 +236,6 @@ struct l_statfs64 {
|
||||
#define LINUX_SA_NOMASK 0x40000000
|
||||
#define LINUX_SA_ONESHOT 0x80000000
|
||||
|
||||
/* sigprocmask actions */
|
||||
#define LINUX_SIG_BLOCK 0
|
||||
#define LINUX_SIG_UNBLOCK 1
|
||||
#define LINUX_SIG_SETMASK 2
|
||||
|
||||
/* sigaltstack */
|
||||
#define LINUX_MINSIGSTKSZ 2048
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user