Fix siginfo_t in s390x
This commit is contained in:
parent
090f873e2a
commit
46dbf2d2e3
@ -133,6 +133,8 @@ pub const SO_BUSY_POLL: ::c_int = 46;
|
||||
pub const SA_ONSTACK: ::c_int = 0x08000000;
|
||||
|
||||
pub const PTRACE_DETACH: ::c_uint = 17;
|
||||
pub const POSIX_FADV_DONTNEED: ::c_int = 4;
|
||||
pub const POSIX_FADV_NOREUSE: ::c_int = 5;
|
||||
|
||||
pub const F_SETLK: ::c_int = 6;
|
||||
pub const F_SETLKW: ::c_int = 7;
|
||||
|
@ -315,6 +315,9 @@ pub const ENOTRECOVERABLE: ::c_int = 131;
|
||||
pub const EHWPOISON: ::c_int = 133;
|
||||
pub const ERFKILL: ::c_int = 132;
|
||||
|
||||
pub const POSIX_FADV_DONTNEED: ::c_int = 4;
|
||||
pub const POSIX_FADV_NOREUSE: ::c_int = 5;
|
||||
|
||||
pub const SOL_SOCKET: ::c_int = 1;
|
||||
|
||||
pub const SO_REUSEADDR: ::c_int = 2;
|
||||
|
@ -600,6 +600,9 @@ pub const SA_RESETHAND: ::c_int = 0x80000000;
|
||||
pub const SA_RESTART: ::c_int = 0x10000000;
|
||||
pub const SA_NOCLDSTOP: ::c_int = 0x00000001;
|
||||
|
||||
pub const POSIX_FADV_DONTNEED: ::c_int = 4;
|
||||
pub const POSIX_FADV_NOREUSE: ::c_int = 5;
|
||||
|
||||
pub const EPOLL_CLOEXEC: ::c_int = 0x80000;
|
||||
|
||||
pub const EFD_CLOEXEC: ::c_int = 0x80000;
|
||||
|
@ -184,6 +184,9 @@ s! {
|
||||
}
|
||||
}
|
||||
|
||||
pub const POSIX_FADV_DONTNEED: ::c_int = 4;
|
||||
pub const POSIX_FADV_NOREUSE: ::c_int = 5;
|
||||
|
||||
pub const RTLD_DEEPBIND: ::c_int = 0x8;
|
||||
pub const RTLD_GLOBAL: ::c_int = 0x100;
|
||||
pub const RTLD_NOLOAD: ::c_int = 0x4;
|
||||
|
@ -48,16 +48,8 @@ s! {
|
||||
pub si_signo: ::c_int,
|
||||
pub si_errno: ::c_int,
|
||||
pub si_code: ::c_int,
|
||||
#[doc(hidden)]
|
||||
#[deprecated(
|
||||
since="0.2.54",
|
||||
note="Please leave a comment on \
|
||||
https://github.com/rust-lang/libc/pull/1316 if you're using \
|
||||
this field"
|
||||
)]
|
||||
pub _pad: [::c_int; 29],
|
||||
_pad: ::c_int,
|
||||
_pad2: [::c_long; 14],
|
||||
_align: [usize; 0],
|
||||
}
|
||||
|
||||
pub struct stack_t {
|
||||
@ -256,6 +248,9 @@ cfg_if! {
|
||||
}
|
||||
}
|
||||
|
||||
pub const POSIX_FADV_DONTNEED: ::c_int = 6;
|
||||
pub const POSIX_FADV_NOREUSE: ::c_int = 7;
|
||||
|
||||
pub const VEOF: usize = 4;
|
||||
pub const RTLD_DEEPBIND: ::c_int = 0x8;
|
||||
pub const RTLD_GLOBAL: ::c_int = 0x100;
|
||||
|
@ -197,6 +197,9 @@ s! {
|
||||
}
|
||||
}
|
||||
|
||||
pub const POSIX_FADV_DONTNEED: ::c_int = 4;
|
||||
pub const POSIX_FADV_NOREUSE: ::c_int = 5;
|
||||
|
||||
pub const VEOF: usize = 4;
|
||||
pub const RTLD_DEEPBIND: ::c_int = 0x8;
|
||||
pub const RTLD_GLOBAL: ::c_int = 0x100;
|
||||
|
@ -384,6 +384,9 @@ cfg_if! {
|
||||
}
|
||||
}
|
||||
|
||||
pub const POSIX_FADV_DONTNEED: ::c_int = 4;
|
||||
pub const POSIX_FADV_NOREUSE: ::c_int = 5;
|
||||
|
||||
pub const VEOF: usize = 4;
|
||||
pub const RTLD_DEEPBIND: ::c_int = 0x8;
|
||||
pub const RTLD_GLOBAL: ::c_int = 0x100;
|
||||
|
@ -406,8 +406,6 @@ pub const SIGEV_THREAD_ID: ::c_int = 4;
|
||||
pub const BUFSIZ: ::c_uint = 8192;
|
||||
pub const TMP_MAX: ::c_uint = 238328;
|
||||
pub const FOPEN_MAX: ::c_uint = 16;
|
||||
pub const POSIX_FADV_DONTNEED: ::c_int = 4;
|
||||
pub const POSIX_FADV_NOREUSE: ::c_int = 5;
|
||||
pub const POSIX_MADV_DONTNEED: ::c_int = 4;
|
||||
pub const _SC_EQUIV_CLASS_MAX: ::c_int = 41;
|
||||
pub const _SC_CHARCLASS_NAME_MAX: ::c_int = 45;
|
||||
@ -914,8 +912,12 @@ pub const STATX_ATTR_ENCRYPTED: ::c_int = 0x0800;
|
||||
pub const STATX_ATTR_AUTOMOUNT: ::c_int = 0x1000;
|
||||
|
||||
cfg_if! {
|
||||
if #[cfg(any(target_arch = "arm", target_arch = "x86",
|
||||
target_arch = "x86_64"))] {
|
||||
if #[cfg(any(
|
||||
target_arch = "arm",
|
||||
target_arch = "x86",
|
||||
target_arch = "x86_64",
|
||||
target_arch = "s390x"
|
||||
))] {
|
||||
pub const PTHREAD_STACK_MIN: ::size_t = 16384;
|
||||
} else if #[cfg(target_arch = "sparc64")] {
|
||||
pub const PTHREAD_STACK_MIN: ::size_t = 0x6000;
|
||||
|
Loading…
Reference in New Issue
Block a user