}
}
-cfg_if! {
- if #[cfg(not(all(target_env = "musl", target_arch = "mips")))] {
- s_no_extra_traits! {
- // linux/net_tstamp.h
- #[allow(missing_debug_implementations)]
- pub struct sock_txtime {
- pub clockid: ::clockid_t,
- pub flags: ::__u32,
- }
- }
+s_no_extra_traits! {
+ // linux/net_tstamp.h
+ #[allow(missing_debug_implementations)]
+ pub struct sock_txtime {
+ pub clockid: ::clockid_t,
+ pub flags: ::__u32,
}
}
pub const GRND_NONBLOCK: ::c_uint = 0x0001;
pub const GRND_RANDOM: ::c_uint = 0x0002;
+pub const GRND_INSECURE: ::c_uint = 0x0004;
pub const SECCOMP_MODE_DISABLED: ::c_uint = 0;
pub const SECCOMP_MODE_STRICT: ::c_uint = 1;
pub const SOF_TIMESTAMPING_SOFTWARE: ::c_uint = 1 << 4;
pub const SOF_TIMESTAMPING_SYS_HARDWARE: ::c_uint = 1 << 5;
pub const SOF_TIMESTAMPING_RAW_HARDWARE: ::c_uint = 1 << 6;
-cfg_if! {
- if #[cfg(not(all(target_env = "musl", target_arch = "mips")))] {
- pub const SOF_TXTIME_DEADLINE_MODE: u32 = 1 << 0;
- pub const SOF_TXTIME_REPORT_ERRORS: u32 = 1 << 1;
- }
-}
+pub const SOF_TXTIME_DEADLINE_MODE: u32 = 1 << 0;
+pub const SOF_TXTIME_REPORT_ERRORS: u32 = 1 << 1;
// linux/if_alg.h
pub const ALG_SET_KEY: ::c_int = 1;
needlelen: ::size_t,
) -> *mut ::c_void;
pub fn sched_getcpu() -> ::c_int;
+
+ pub fn pthread_getname_np(thread: ::pthread_t, name: *mut ::c_char, len: ::size_t) -> ::c_int;
+ pub fn pthread_setname_np(thread: ::pthread_t, name: *const ::c_char) -> ::c_int;
}
cfg_if! {