Skip to content

Commit 3d2f23b

Browse files
committed
Revert "review: switch c_ulonglong consts to u64."
This reverts commit 42ac577.
1 parent 7aea581 commit 3d2f23b

File tree

1 file changed

+11
-11
lines changed
  • src/unix/linux_like/linux

1 file changed

+11
-11
lines changed

src/unix/linux_like/linux/mod.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -2434,22 +2434,22 @@ pub const IN_CLOEXEC: ::c_int = O_CLOEXEC;
24342434
pub const IN_NONBLOCK: ::c_int = O_NONBLOCK;
24352435

24362436
// uapi/linux/fanotify.h
2437-
pub const FAN_ACCESS: u64 = 0x0000_0001;
2438-
pub const FAN_MODIFY: u64 = 0x0000_0002;
2439-
pub const FAN_CLOSE_WRITE: u64 = 0x0000_0008;
2440-
pub const FAN_CLOSE_NOWRITE: u64 = 0x0000_0010;
2441-
pub const FAN_OPEN: u64 = 0x0000_0020;
2437+
pub const FAN_ACCESS: ::c_ulonglong = 0x0000_0001;
2438+
pub const FAN_MODIFY: ::c_ulonglong = 0x0000_0002;
2439+
pub const FAN_CLOSE_WRITE: ::c_ulonglong = 0x0000_0008;
2440+
pub const FAN_CLOSE_NOWRITE: ::c_ulonglong = 0x0000_0010;
2441+
pub const FAN_OPEN: ::c_ulonglong = 0x0000_0020;
24422442

2443-
pub const FAN_Q_OVERFLOW: u64 = 0x0000_4000;
2443+
pub const FAN_Q_OVERFLOW: ::c_ulonglong = 0x0000_4000;
24442444

2445-
pub const FAN_OPEN_PERM: u64 = 0x0001_0000;
2446-
pub const FAN_ACCESS_PERM: u64 = 0x0002_0000;
2445+
pub const FAN_OPEN_PERM: ::c_ulonglong = 0x0001_0000;
2446+
pub const FAN_ACCESS_PERM: ::c_ulonglong = 0x0002_0000;
24472447

2448-
pub const FAN_ONDIR: u64 = 0x4000_0000;
2448+
pub const FAN_ONDIR: ::c_ulonglong = 0x4000_0000;
24492449

2450-
pub const FAN_EVENT_ON_CHILD: u64 = 0x0800_0000;
2450+
pub const FAN_EVENT_ON_CHILD: ::c_ulonglong = 0x0800_0000;
24512451

2452-
pub const FAN_CLOSE: u64 = FAN_CLOSE_WRITE | FAN_CLOSE_NOWRITE;
2452+
pub const FAN_CLOSE: ::c_ulonglong = FAN_CLOSE_WRITE | FAN_CLOSE_NOWRITE;
24532453

24542454
pub const FAN_CLOEXEC: ::c_uint = 0x0000_0001;
24552455
pub const FAN_NONBLOCK: ::c_uint = 0x0000_0002;

0 commit comments

Comments
 (0)