Skip to content

Commit 900aa73

Browse files
committed
uclibc/mips: fixed SA_* mismatched types
Signed-off-by: Xiaobo Liu <[email protected]>
1 parent 0e6afd5 commit 900aa73

File tree

1 file changed

+28
-0
lines changed
  • src/unix/linux_like/linux/uclibc/mips

1 file changed

+28
-0
lines changed

src/unix/linux_like/linux/uclibc/mips/mod.rs

+28
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,25 @@ pub const ECOMM: ::c_int = 70;
2323
pub const EPROTO: ::c_int = 71;
2424
pub const EDOTDOT: ::c_int = 73;
2525

26+
#[deprecated(
27+
since = "0.2.143",
28+
note = "we 're going to change its type to `c_ulong` in a future release"
29+
)]
2630
pub const SA_NODEFER: ::c_int = 0x40000000;
31+
#[deprecated(
32+
since = "0.2.143",
33+
note = "we 're going to change its type to `c_ulong` in a future release"
34+
)]
2735
pub const SA_RESETHAND: ::c_int = 0x80000000;
36+
#[deprecated(
37+
since = "0.2.143",
38+
note = "we 're going to change its type to `c_ulong` in a future release"
39+
)]
2840
pub const SA_RESTART: ::c_int = 0x10000000;
41+
#[deprecated(
42+
since = "0.2.143",
43+
note = "we 're going to change its type to `c_ulong` in a future release"
44+
)]
2945
pub const SA_NOCLDSTOP: ::c_int = 0x00000001;
3046

3147
pub const EPOLL_CLOEXEC: ::c_int = 0x80000;
@@ -158,8 +174,20 @@ pub const SOCK_STREAM: ::c_int = 2;
158174
pub const SOCK_DGRAM: ::c_int = 1;
159175
pub const SOCK_SEQPACKET: ::c_int = 5;
160176

177+
#[deprecated(
178+
since = "0.2.143",
179+
note = "we are going to change its type to `c_ulong` in a future release"
180+
)]
161181
pub const SA_ONSTACK: ::c_uint = 0x08000000;
182+
#[deprecated(
183+
since = "0.2.143",
184+
note = "we are going to change its type to `c_ulong` in a future release"
185+
)]
162186
pub const SA_SIGINFO: ::c_uint = 0x00000008;
187+
#[deprecated(
188+
since = "0.2.143",
189+
note = "we are going to change its type to `c_ulong` in a future release"
190+
)]
163191
pub const SA_NOCLDWAIT: ::c_int = 0x00010000;
164192

165193
pub const SIGCHLD: ::c_int = 18;

0 commit comments

Comments
 (0)