File tree Expand file tree Collapse file tree 4 files changed +25
-22
lines changed Expand file tree Collapse file tree 4 files changed +25
-22
lines changed Original file line number Diff line number Diff line change @@ -1065,22 +1065,18 @@ fn test_openbsd(target: &str) {
1065
1065
}
1066
1066
} ) ;
1067
1067
1068
- cfg. field_name ( move |struct_, field| {
1069
- match field {
1070
- "st_birthtime" if struct_. starts_with ( "stat" ) => {
1071
- "__st_birthtime" . to_string ( )
1072
- }
1073
- "st_birthtime_nsec" if struct_. starts_with ( "stat" ) => {
1074
- "__st_birthtimensec" . to_string ( )
1075
- }
1076
- s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
1077
- s. replace ( "e_nsec" , ".tv_nsec" )
1078
- }
1079
- "sa_sigaction" if struct_ == "sigaction" => {
1080
- "sa_handler" . to_string ( )
1081
- }
1082
- s => s. to_string ( ) ,
1068
+ cfg. field_name ( move |struct_, field| match field {
1069
+ "st_birthtime" if struct_. starts_with ( "stat" ) => {
1070
+ "__st_birthtime" . to_string ( )
1071
+ }
1072
+ "st_birthtime_nsec" if struct_. starts_with ( "stat" ) => {
1073
+ "__st_birthtimensec" . to_string ( )
1074
+ }
1075
+ s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
1076
+ s. replace ( "e_nsec" , ".tv_nsec" )
1083
1077
}
1078
+ "sa_sigaction" if struct_ == "sigaction" => "sa_handler" . to_string ( ) ,
1079
+ s => s. to_string ( ) ,
1084
1080
} ) ;
1085
1081
1086
1082
cfg. skip_field_type ( move |struct_, field| {
Original file line number Diff line number Diff line change @@ -249,6 +249,13 @@ s_no_extra_traits!{
249
249
pub ivlen: u32 ,
250
250
pub iv: [ :: c_uchar; 0 ] ,
251
251
}
252
+
253
+ pub struct inotify_event {
254
+ pub wd: :: c_int,
255
+ pub mask: :: uint32_t,
256
+ pub cookie: :: uint32_t,
257
+ pub len: :: uint32_t
258
+ }
252
259
}
253
260
254
261
cfg_if ! {
Original file line number Diff line number Diff line change @@ -524,6 +524,13 @@ s_no_extra_traits!{
524
524
pub ivlen: u32 ,
525
525
pub iv: [ :: c_uchar; 0 ] ,
526
526
}
527
+
528
+ pub struct inotify_event {
529
+ pub wd: :: c_int,
530
+ pub mask: :: uint32_t,
531
+ pub cookie: :: uint32_t,
532
+ pub len: :: uint32_t
533
+ }
527
534
}
528
535
529
536
cfg_if ! {
Original file line number Diff line number Diff line change @@ -208,13 +208,6 @@ s! {
208
208
pub ar_op: u16 ,
209
209
}
210
210
211
- pub struct inotify_event {
212
- pub wd: :: c_int,
213
- pub mask: :: uint32_t,
214
- pub cookie: :: uint32_t,
215
- pub len: :: uint32_t
216
- }
217
-
218
211
pub struct mmsghdr {
219
212
pub msg_hdr: :: msghdr,
220
213
pub msg_len: :: c_uint,
You can’t perform that action at this time.
0 commit comments