| ... | @@ -712,14 +712,27 @@ pub fn fanotify_mark( | ... | @@ -712,14 +712,27 @@ pub fn fanotify_mark( |
| 712 | dirfd: fd_t, | 712 | dirfd: fd_t, |
| 713 | pathname: ?[*:0]const u8, | 713 | pathname: ?[*:0]const u8, |
| 714 | ) usize { | 714 | ) usize { |
| 715 | return syscall5( | 715 | if (usize_bits < 64) { |
| 716 | .fanotify_mark, | 716 | const mask_halves = splitValue64(@bitCast(mask)); |
| 717 | @bitCast(@as(isize, fd)), | 717 | return syscall6( |
| 718 | @as(u32, @bitCast(flags)), | 718 | .fanotify_mark, |
| 719 | @bitCast(mask), | 719 | @bitCast(@as(isize, fd)), |
| 720 | @bitCast(@as(isize, dirfd)), | 720 | @as(u32, @bitCast(flags)), |
| 721 | @intFromPtr(pathname), | 721 | mask_halves[0], |
| 722 | ); | 722 | mask_halves[1], |
| | 723 | @bitCast(@as(isize, dirfd)), |
| | 724 | @intFromPtr(pathname), |
| | 725 | ); |
| | 726 | } else { |
| | 727 | return syscall5( |
| | 728 | .fanotify_mark, |
| | 729 | @bitCast(@as(isize, fd)), |
| | 730 | @as(u32, @bitCast(flags)), |
| | 731 | @bitCast(mask), |
| | 732 | @bitCast(@as(isize, dirfd)), |
| | 733 | @intFromPtr(pathname), |
| | 734 | ); |
| | 735 | } |
| 723 | } | 736 | } |
| 724 | | 737 | |
| 725 | pub fn name_to_handle_at( | 738 | pub fn name_to_handle_at( |