File tree Expand file tree Collapse file tree 3 files changed +17
-20
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 3 files changed +17
-20
lines changed Original file line number Diff line number Diff line change @@ -1198,6 +1198,13 @@ extern "C" {
1198
1198
pub fn ntp_adjtime ( buf : * mut timex ) -> :: c_int ;
1199
1199
#[ link_name = "ntp_gettimex" ]
1200
1200
pub fn ntp_gettime ( buf : * mut ntptimeval ) -> :: c_int ;
1201
+ pub fn fanotify_mark (
1202
+ fd : :: c_int ,
1203
+ flags : :: c_uint ,
1204
+ mask : u64 ,
1205
+ dirfd : :: c_int ,
1206
+ path : * const :: c_char ,
1207
+ ) -> :: c_int ;
1201
1208
}
1202
1209
1203
1210
#[ link( name = "util" ) ]
Original file line number Diff line number Diff line change @@ -3392,26 +3392,6 @@ extern "C" {
3392
3392
mask : u32 ,
3393
3393
) -> :: c_int ;
3394
3394
pub fn fanotify_init ( flags : :: c_uint , event_f_flags : :: c_uint ) -> :: c_int ;
3395
-
3396
- #[ cfg( not( target_env = "musl" ) ) ]
3397
- pub fn fanotify_mark (
3398
- fd : :: c_int ,
3399
- flags : :: c_uint ,
3400
- mask : u64 ,
3401
- dirfd : :: c_int ,
3402
- path : * const :: c_char ,
3403
- ) -> :: c_int ;
3404
- // Musl targets need the `mask` argument of `fanotify_mark` be specified `::c_ulonglong`
3405
- // instead of `u64` or there will be a type mismatch between `long long unsigned int` and the
3406
- // expected `uint64_t`.
3407
- #[ cfg( target_env = "musl" ) ]
3408
- pub fn fanotify_mark (
3409
- fd : :: c_int ,
3410
- flags : :: c_uint ,
3411
- mask : :: c_ulonglong ,
3412
- dirfd : :: c_int ,
3413
- path : * const :: c_char ,
3414
- ) -> :: c_int ;
3415
3395
}
3416
3396
3417
3397
cfg_if ! {
Original file line number Diff line number Diff line change @@ -420,6 +420,16 @@ extern "C" {
420
420
needle : * const :: c_void ,
421
421
needlelen : :: size_t ,
422
422
) -> * mut :: c_void ;
423
+ // Musl targets need the `mask` argument of `fanotify_mark` be specified
424
+ // `::c_ulonglong` instead of `u64` or there will be a type mismatch between
425
+ // `long long unsigned int` and the expected `uint64_t`.
426
+ pub fn fanotify_mark (
427
+ fd : :: c_int ,
428
+ flags : :: c_uint ,
429
+ mask : :: c_ulonglong ,
430
+ dirfd : :: c_int ,
431
+ path : * const :: c_char ,
432
+ ) -> :: c_int ;
423
433
}
424
434
425
435
cfg_if ! {
You can’t perform that action at this time.
0 commit comments