File tree Expand file tree Collapse file tree 3 files changed +18
-8
lines changed Expand file tree Collapse file tree 3 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,15 @@ pub type c_ulong = u32;
3
3
pub type mode_t = u16 ;
4
4
pub type off64_t = :: c_longlong ;
5
5
6
+ // These constants must be of the same type of sigaction.sa_flags
7
+ pub const SA_NOCLDSTOP : :: c_ulong = 0x00000001 ;
8
+ pub const SA_NOCLDWAIT : :: c_ulong = 0x00000002 ;
9
+ pub const SA_NODEFER : :: c_ulong = 0x40000000 ;
10
+ pub const SA_ONSTACK : :: c_ulong = 0x08000000 ;
11
+ pub const SA_RESETHAND : :: c_ulong = 0x80000000 ;
12
+ pub const SA_RESTART : :: c_ulong = 0x10000000 ;
13
+ pub const SA_SIGINFO : :: c_ulong = 0x00000004 ;
14
+
6
15
s ! {
7
16
pub struct sigaction {
8
17
pub sa_sigaction: :: sighandler_t,
Original file line number Diff line number Diff line change @@ -5,6 +5,15 @@ pub type c_ulong = u64;
5
5
pub type mode_t = u32 ;
6
6
pub type off64_t = i64 ;
7
7
8
+ // These constants must be of the same type of sigaction.sa_flags
9
+ pub const SA_NOCLDSTOP : :: c_uint = 0x00000001 ;
10
+ pub const SA_NOCLDWAIT : :: c_uint = 0x00000002 ;
11
+ pub const SA_NODEFER : :: c_uint = 0x40000000 ;
12
+ pub const SA_ONSTACK : :: c_uint = 0x08000000 ;
13
+ pub const SA_RESETHAND : :: c_uint = 0x80000000 ;
14
+ pub const SA_RESTART : :: c_uint = 0x10000000 ;
15
+ pub const SA_SIGINFO : :: c_uint = 0x00000004 ;
16
+
8
17
s ! {
9
18
pub struct sigaction {
10
19
pub sa_flags: :: c_uint,
Original file line number Diff line number Diff line change @@ -157,11 +157,6 @@ pub const ECOMM: ::c_int = 70;
157
157
pub const EPROTO : :: c_int = 71 ;
158
158
pub const EDOTDOT : :: c_int = 73 ;
159
159
160
- pub const SA_NODEFER : :: c_int = 0x40000000 ;
161
- pub const SA_RESETHAND : :: c_int = 0x80000000 ;
162
- pub const SA_RESTART : :: c_int = 0x10000000 ;
163
- pub const SA_NOCLDSTOP : :: c_int = 0x00000001 ;
164
-
165
160
pub const EPOLL_CLOEXEC : :: c_int = 0x80000 ;
166
161
167
162
pub const EFD_CLOEXEC : :: c_int = 0x80000 ;
@@ -253,9 +248,6 @@ pub const PTHREAD_MUTEX_DEFAULT: ::c_int = PTHREAD_MUTEX_NORMAL;
253
248
254
249
pub const FIOCLEX : :: c_int = 0x5451 ;
255
250
256
- pub const SA_ONSTACK : :: c_ulong = 0x08000000 ;
257
- pub const SA_SIGINFO : :: c_ulong = 0x00000004 ;
258
- pub const SA_NOCLDWAIT : :: c_ulong = 0x00000002 ;
259
251
pub const SIGCHLD : :: c_int = 17 ;
260
252
pub const SIGBUS : :: c_int = 7 ;
261
253
pub const SIGUSR1 : :: c_int = 10 ;
You can’t perform that action at this time.
0 commit comments