Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
#![allow(
renamed_and_removed_lints, // Keep this order.
unknown_lints, // Keep this order.
bad_style,
nonstandard_style,
overflowing_literals,
improper_ctypes,
unused_macros,
unused_macro_rules,
)]
Expand Down
29 changes: 14 additions & 15 deletions src/unix/linux_like/linux/uclibc/x86_64/l4re.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,21 @@ s! {
/// Bitmap of CPUs.
map: l4_umword_t,
}
}

#[cfg_attr(feature = "extra_traits", derive(Debug))]
pub struct pthread_attr_t {
pub __detachstate: c_int,
pub __schedpolicy: c_int,
pub __schedparam: super::__sched_param,
pub __inheritsched: c_int,
pub __scope: c_int,
pub __guardsize: size_t,
pub __stackaddr_set: c_int,
pub __stackaddr: *mut c_void, // better don't use it
pub __stacksize: size_t,
// L4Re specifics
pub affinity: l4_sched_cpu_set_t,
pub create_flags: c_uint,
pub struct pthread_attr_t {
pub __detachstate: c_int,
pub __schedpolicy: c_int,
pub __schedparam: super::__sched_param,
pub __inheritsched: c_int,
pub __scope: c_int,
pub __guardsize: size_t,
pub __stackaddr_set: c_int,
pub __stackaddr: *mut c_void, // better don't use it
pub __stacksize: size_t,
// L4Re specifics
pub affinity: l4_sched_cpu_set_t,
pub create_flags: c_uint,
}
}

// L4Re requires a min stack size of 64k; that isn't defined in uClibc, but
Expand Down