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
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1220,6 +1220,7 @@ s! {
size: [u8; crate::__SIZEOF_PTHREAD_BARRIERATTR_T],
}

#[cfg(not(target_env = "musl"))]
#[repr(align(8))]
pub struct fanotify_event_metadata {
pub event_len: __u32,
Expand Down
11 changes: 11 additions & 0 deletions src/unix/linux_like/linux/musl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,17 @@ impl siginfo_t {
}

s! {
#[repr(align(8))]
pub struct fanotify_event_metadata {
pub event_len: c_uint,
pub vers: c_uchar,
pub reserved: c_uchar,
pub metadata_len: c_ushort,
pub mask: c_ulonglong,
pub fd: c_int,
pub pid: c_int,
}

// FIXME(1.0): This should not implement `PartialEq`
#[allow(unpredictable_function_pointer_comparisons)]
pub struct sigaction {
Expand Down