Skip to content

Commit b8a9914

Browse files
committed
Fix android SA_* constants
1 parent 04d2c7a commit b8a9914

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

src/unix/notbsd/android/b32.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,15 @@ s! {
121121
}
122122
}
123123

124+
// These constants must be of the same type of sigaction.sa_flags
125+
pub const SA_NOCLDSTOP: ::c_ulong = 0x00000001;
126+
pub const SA_NOCLDWAIT: ::c_ulong = 0x00000002;
127+
pub const SA_NODEFER: ::c_ulong = 0x40000000;
128+
pub const SA_ONSTACK: ::c_ulong = 0x08000000;
129+
pub const SA_RESETHAND: ::c_ulong = 0x80000000;
130+
pub const SA_RESTART: ::c_ulong = 0x10000000;
131+
pub const SA_SIGINFO: ::c_ulong = 0x00000004;
132+
124133
pub const SYS_gettid: ::c_long = 224;
125134
pub const PTHREAD_MUTEX_INITIALIZER: pthread_mutex_t = pthread_mutex_t {
126135
value: 0,

src/unix/notbsd/android/b64.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,15 @@ s! {
131131
}
132132
}
133133

134+
// These constants must be of the same type of sigaction.sa_flags
135+
pub const SA_NOCLDSTOP: ::c_uint = 0x00000001;
136+
pub const SA_NOCLDWAIT: ::c_uint = 0x00000002;
137+
pub const SA_NODEFER: ::c_uint = 0x40000000;
138+
pub const SA_ONSTACK: ::c_uint = 0x08000000;
139+
pub const SA_RESETHAND: ::c_uint = 0x80000000;
140+
pub const SA_RESTART: ::c_uint = 0x10000000;
141+
pub const SA_SIGINFO: ::c_uint = 0x00000004;
142+
134143
pub const SYS_gettid: ::c_long = 178;
135144
pub const PTHREAD_MUTEX_INITIALIZER: pthread_mutex_t = pthread_mutex_t {
136145
value: 0,

src/unix/notbsd/android/mod.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,6 @@ pub const ECOMM: ::c_int = 70;
157157
pub const EPROTO: ::c_int = 71;
158158
pub const EDOTDOT: ::c_int = 73;
159159

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-
165160
pub const EPOLL_CLOEXEC: ::c_int = 0x80000;
166161

167162
pub const EFD_CLOEXEC: ::c_int = 0x80000;
@@ -253,9 +248,6 @@ pub const PTHREAD_MUTEX_DEFAULT: ::c_int = PTHREAD_MUTEX_NORMAL;
253248

254249
pub const FIOCLEX: ::c_int = 0x5451;
255250

256-
pub const SA_ONSTACK: ::c_ulong = 0x08000000;
257-
pub const SA_SIGINFO: ::c_ulong = 0x00000004;
258-
pub const SA_NOCLDWAIT: ::c_ulong = 0x00000002;
259251
pub const SIGCHLD: ::c_int = 17;
260252
pub const SIGBUS: ::c_int = 7;
261253
pub const SIGUSR1: ::c_int = 10;

0 commit comments

Comments
 (0)