File tree 3 files changed +22
-11
lines changed
src/unix/linux_like/linux 3 files changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,17 @@ macro_rules! expand_align {
39
39
#[ doc( hidden) ]
40
40
size: [ u8 ; :: __SIZEOF_PTHREAD_CONDATTR_T] ,
41
41
}
42
+
43
+ #[ repr( align( 8 ) ) ]
44
+ pub struct fanotify_event_metadata {
45
+ pub event_len: __u32,
46
+ pub vers: __u8,
47
+ pub reserved: __u8,
48
+ pub metadata_len: __u16,
49
+ pub mask: __u64,
50
+ pub fd: :: c_int,
51
+ pub pid: :: c_int,
52
+ }
42
53
}
43
54
44
55
s_no_extra_traits! {
Original file line number Diff line number Diff line change @@ -477,17 +477,6 @@ s! {
477
477
pub len: u32
478
478
}
479
479
480
- #[ repr( align( 8 ) ) ]
481
- pub struct fanotify_event_metadata {
482
- pub event_len: __u32,
483
- pub vers: __u8,
484
- pub reserved: __u8,
485
- pub metadata_len: __u16,
486
- pub mask: __u64,
487
- pub fd: :: c_int,
488
- pub pid: :: c_int,
489
- }
490
-
491
480
pub struct fanotify_response {
492
481
pub fd: :: c_int,
493
482
pub response: __u32,
Original file line number Diff line number Diff line change @@ -35,6 +35,17 @@ macro_rules! expand_align {
35
35
__align: [ :: c_int; 0 ] ,
36
36
size: [ u8 ; :: __SIZEOF_PTHREAD_CONDATTR_T] ,
37
37
}
38
+
39
+ pub struct fanotify_event_metadata {
40
+ __align: [ :: c_long; 0 ] ,
41
+ pub event_len: __u32,
42
+ pub vers: __u8,
43
+ pub reserved: __u8,
44
+ pub metadata_len: __u16,
45
+ pub mask: __u64,
46
+ pub fd: :: c_int,
47
+ pub pid: :: c_int,
48
+ }
38
49
}
39
50
40
51
s_no_extra_traits! {
You can’t perform that action at this time.
0 commit comments