Commit 031b6566983ad9c0247087f039af22b3f87596a3

Authored by Al Viro
1 parent 1ca97bb541

unify SS_ONSTACK/SS_DISABLE definitions

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Showing 18 changed files with 2 additions and 103 deletions Side-by-side Diff

arch/alpha/include/asm/signal.h
... ... @@ -98,12 +98,6 @@
98 98 #define SA_ONESHOT SA_RESETHAND
99 99 #define SA_NOMASK SA_NODEFER
100 100  
101   -/*
102   - * sigaltstack controls
103   - */
104   -#define SS_ONSTACK 1
105   -#define SS_DISABLE 2
106   -
107 101 #define MINSIGSTKSZ 4096
108 102 #define SIGSTKSZ 16384
109 103  
arch/arm/include/uapi/asm/signal.h
... ... @@ -87,13 +87,6 @@
87 87 #define SA_NOMASK SA_NODEFER
88 88 #define SA_ONESHOT SA_RESETHAND
89 89  
90   -
91   -/*
92   - * sigaltstack controls
93   - */
94   -#define SS_ONSTACK 1
95   -#define SS_DISABLE 2
96   -
97 90 #define MINSIGSTKSZ 2048
98 91 #define SIGSTKSZ 8192
99 92  
arch/avr32/include/uapi/asm/signal.h
... ... @@ -89,12 +89,6 @@
89 89 #define SA_NOMASK SA_NODEFER
90 90 #define SA_ONESHOT SA_RESETHAND
91 91  
92   -/*
93   - * sigaltstack controls
94   - */
95   -#define SS_ONSTACK 1
96   -#define SS_DISABLE 2
97   -
98 92 #define MINSIGSTKSZ 2048
99 93 #define SIGSTKSZ 8192
100 94  
arch/cris/include/asm/signal.h
... ... @@ -97,12 +97,6 @@
97 97  
98 98 #define SA_RESTORER 0x04000000
99 99  
100   -/*
101   - * sigaltstack controls
102   - */
103   -#define SS_ONSTACK 1
104   -#define SS_DISABLE 2
105   -
106 100 #define MINSIGSTKSZ 2048
107 101 #define SIGSTKSZ 8192
108 102  
arch/h8300/include/asm/signal.h
... ... @@ -96,12 +96,6 @@
96 96  
97 97 #define SA_RESTORER 0x04000000
98 98  
99   -/*
100   - * sigaltstack controls
101   - */
102   -#define SS_ONSTACK 1
103   -#define SS_DISABLE 2
104   -
105 99 #define MINSIGSTKSZ 2048
106 100 #define SIGSTKSZ 8192
107 101  
arch/ia64/include/uapi/asm/signal.h
... ... @@ -79,12 +79,6 @@
79 79 #define SA_RESTORER 0x04000000
80 80  
81 81 /*
82   - * sigaltstack controls
83   - */
84   -#define SS_ONSTACK 1
85   -#define SS_DISABLE 2
86   -
87   -/*
88 82 * The minimum stack size needs to be fairly large because we want to
89 83 * be sure that an app compiled for today's CPUs will continue to run
90 84 * on all future CPU models. The CPU model matters because the signal
arch/m32r/include/asm/signal.h
... ... @@ -98,12 +98,6 @@
98 98  
99 99 #define SA_RESTORER 0x04000000
100 100  
101   -/*
102   - * sigaltstack controls
103   - */
104   -#define SS_ONSTACK 1
105   -#define SS_DISABLE 2
106   -
107 101 #define MINSIGSTKSZ 2048
108 102 #define SIGSTKSZ 8192
109 103  
arch/m68k/include/uapi/asm/signal.h
... ... @@ -80,12 +80,6 @@
80 80 #define SA_NOMASK SA_NODEFER
81 81 #define SA_ONESHOT SA_RESETHAND
82 82  
83   -/*
84   - * sigaltstack controls
85   - */
86   -#define SS_ONSTACK 1
87   -#define SS_DISABLE 2
88   -
89 83 #define MINSIGSTKSZ 2048
90 84 #define SIGSTKSZ 8192
91 85  
arch/mips/include/uapi/asm/signal.h
... ... @@ -86,12 +86,6 @@
86 86  
87 87 #define SA_RESTORER 0x04000000 /* Only for o32 */
88 88  
89   -/*
90   - * sigaltstack controls
91   - */
92   -#define SS_ONSTACK 1
93   -#define SS_DISABLE 2
94   -
95 89 #define MINSIGSTKSZ 2048
96 90 #define SIGSTKSZ 8192
97 91  
arch/mn10300/include/uapi/asm/signal.h
... ... @@ -92,12 +92,6 @@
92 92  
93 93 #define SA_RESTORER 0x04000000
94 94  
95   -/*
96   - * sigaltstack controls
97   - */
98   -#define SS_ONSTACK 1
99   -#define SS_DISABLE 2
100   -
101 95 #define MINSIGSTKSZ 2048
102 96 #define SIGSTKSZ 8192
103 97  
arch/parisc/include/uapi/asm/signal.h
... ... @@ -71,12 +71,6 @@
71 71  
72 72 #define SA_RESTORER 0x04000000 /* obsolete -- ignored */
73 73  
74   -/*
75   - * sigaltstack controls
76   - */
77   -#define SS_ONSTACK 1
78   -#define SS_DISABLE 2
79   -
80 74 #define MINSIGSTKSZ 2048
81 75 #define SIGSTKSZ 8192
82 76  
arch/powerpc/include/uapi/asm/signal.h
... ... @@ -85,12 +85,6 @@
85 85  
86 86 #define SA_RESTORER 0x04000000U
87 87  
88   -/*
89   - * sigaltstack controls
90   - */
91   -#define SS_ONSTACK 1
92   -#define SS_DISABLE 2
93   -
94 88 #define MINSIGSTKSZ 2048
95 89 #define SIGSTKSZ 8192
96 90  
arch/s390/include/uapi/asm/signal.h
... ... @@ -90,12 +90,6 @@
90 90  
91 91 #define SA_RESTORER 0x04000000
92 92  
93   -/*
94   - * sigaltstack controls
95   - */
96   -#define SS_ONSTACK 1
97   -#define SS_DISABLE 2
98   -
99 93 #define MINSIGSTKSZ 2048
100 94 #define SIGSTKSZ 8192
101 95  
arch/sparc/include/uapi/asm/signal.h
... ... @@ -147,12 +147,6 @@
147 147 #define SIG_UNBLOCK 0x02 /* for unblocking signals */
148 148 #define SIG_SETMASK 0x04 /* for setting the signal mask */
149 149  
150   -/*
151   - * sigaltstack controls
152   - */
153   -#define SS_ONSTACK 1
154   -#define SS_DISABLE 2
155   -
156 150 #define MINSIGSTKSZ 4096
157 151 #define SIGSTKSZ 16384
158 152  
arch/x86/include/asm/signal.h
... ... @@ -112,12 +112,6 @@
112 112  
113 113 #define SA_RESTORER 0x04000000
114 114  
115   -/*
116   - * sigaltstack controls
117   - */
118   -#define SS_ONSTACK 1
119   -#define SS_DISABLE 2
120   -
121 115 #define MINSIGSTKSZ 2048
122 116 #define SIGSTKSZ 8192
123 117  
arch/xtensa/include/uapi/asm/signal.h
... ... @@ -97,12 +97,6 @@
97 97  
98 98 #define SA_RESTORER 0x04000000
99 99  
100   -/*
101   - * sigaltstack controls
102   - */
103   -#define SS_ONSTACK 1
104   -#define SS_DISABLE 2
105   -
106 100 #define MINSIGSTKSZ 2048
107 101 #define SIGSTKSZ 8192
108 102  
include/uapi/asm-generic/signal.h
... ... @@ -80,12 +80,6 @@
80 80 * SA_RESTORER 0x04000000
81 81 */
82 82  
83   -/*
84   - * sigaltstack controls
85   - */
86   -#define SS_ONSTACK 1
87   -#define SS_DISABLE 2
88   -
89 83 #define MINSIGSTKSZ 2048
90 84 #define SIGSTKSZ 8192
91 85  
include/uapi/linux/signal.h
... ... @@ -4,6 +4,8 @@
4 4 #include <asm/signal.h>
5 5 #include <asm/siginfo.h>
6 6  
  7 +#define SS_ONSTACK 1
  8 +#define SS_DISABLE 2
7 9  
8 10 #endif /* _UAPI_LINUX_SIGNAL_H */