Skip to content

Commit

Permalink
uclibc/mips: fixed SA_* mismatched types
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaobo Liu <[email protected]>
  • Loading branch information
cppcoffee committed Apr 22, 2023
1 parent 9cc7781 commit 898f475
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/unix/linux_like/linux/uclibc/mips/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,25 @@ pub const ECOMM: ::c_int = 70;
pub const EPROTO: ::c_int = 71;
pub const EDOTDOT: ::c_int = 73;

#[deprecated(
since = "0.2.143",
note = "we 're going to change its type to `c_ulong` in a future release"
)]
pub const SA_NODEFER: ::c_int = 0x40000000;
#[deprecated(
since = "0.2.143",
note = "we 're going to change its type to `c_ulong` in a future release"
)]
pub const SA_RESETHAND: ::c_int = 0x80000000;
#[deprecated(
since = "0.2.143",
note = "we 're going to change its type to `c_ulong` in a future release"
)]
pub const SA_RESTART: ::c_int = 0x10000000;
#[deprecated(
since = "0.2.143",
note = "we 're going to change its type to `c_ulong` in a future release"
)]
pub const SA_NOCLDSTOP: ::c_int = 0x00000001;

pub const EPOLL_CLOEXEC: ::c_int = 0x80000;
Expand Down Expand Up @@ -158,8 +174,20 @@ pub const SOCK_STREAM: ::c_int = 2;
pub const SOCK_DGRAM: ::c_int = 1;
pub const SOCK_SEQPACKET: ::c_int = 5;

#[deprecated(
since = "0.2.143",
note = "we are going to change its type to `c_ulong` in a future release"
)]
pub const SA_ONSTACK: ::c_uint = 0x08000000;
#[deprecated(
since = "0.2.143",
note = "we are going to change its type to `c_ulong` in a future release"
)]
pub const SA_SIGINFO: ::c_uint = 0x00000008;
#[deprecated(
since = "0.2.143",
note = "we are going to change its type to `c_ulong` in a future release"
)]
pub const SA_NOCLDWAIT: ::c_int = 0x00010000;

pub const SIGCHLD: ::c_int = 18;
Expand Down

0 comments on commit 898f475

Please sign in to comment.