From ec6d846cec3174a602877b53522d7d2ad37749fc Mon Sep 17 00:00:00 2001 From: carbotaniuman <41451839+carbotaniuman@users.noreply.github.com> Date: Wed, 7 Dec 2022 08:31:03 -0600 Subject: [PATCH] Try readding all inotify flags --- libc-test/semver/android.txt | 3 +++ libc-test/semver/linux.txt | 3 +++ src/unix/linux_like/android/mod.rs | 6 +++--- src/unix/linux_like/linux/mod.rs | 6 +++--- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/libc-test/semver/android.txt b/libc-test/semver/android.txt index 50979e5f81464..815a97eeb3c49 100644 --- a/libc-test/semver/android.txt +++ b/libc-test/semver/android.txt @@ -807,7 +807,10 @@ IN_CREATE IN_DELETE IN_DELETE_SELF IN_DONT_FOLLOW +IN_EXCL_UNLINK IN_IGNORED +IN_MASK_CREATE +IN_MASK_ADD IN_ISDIR IN_MODIFY IN_MOVE diff --git a/libc-test/semver/linux.txt b/libc-test/semver/linux.txt index 68bb3a0524d45..a40a31caf9294 100644 --- a/libc-test/semver/linux.txt +++ b/libc-test/semver/linux.txt @@ -909,7 +909,10 @@ IN_CREATE IN_DELETE IN_DELETE_SELF IN_DONT_FOLLOW +IN_EXCL_UNLINK IN_IGNORED +IN_MASK_CREATE +IN_MASK_ADD IN_ISDIR IN_MODIFY IN_MOVE diff --git a/src/unix/linux_like/android/mod.rs b/src/unix/linux_like/android/mod.rs index 61885582aa0db..3bc51260befa1 100644 --- a/src/unix/linux_like/android/mod.rs +++ b/src/unix/linux_like/android/mod.rs @@ -2615,10 +2615,10 @@ pub const IN_Q_OVERFLOW: u32 = 0x0000_4000; pub const IN_IGNORED: u32 = 0x0000_8000; pub const IN_ONLYDIR: u32 = 0x0100_0000; pub const IN_DONT_FOLLOW: u32 = 0x0200_0000; -// pub const IN_EXCL_UNLINK: u32 = 0x0400_0000; +pub const IN_EXCL_UNLINK: u32 = 0x0400_0000; -// pub const IN_MASK_CREATE: u32 = 0x1000_0000; -// pub const IN_MASK_ADD: u32 = 0x2000_0000; +pub const IN_MASK_CREATE: u32 = 0x1000_0000; +pub const IN_MASK_ADD: u32 = 0x2000_0000; pub const IN_ISDIR: u32 = 0x4000_0000; pub const IN_ONESHOT: u32 = 0x8000_0000; diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index f0a0820c3d3fc..947aca87bc1c4 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -3061,7 +3061,7 @@ pub const IN_Q_OVERFLOW: u32 = 0x0000_4000; pub const IN_IGNORED: u32 = 0x0000_8000; pub const IN_ONLYDIR: u32 = 0x0100_0000; pub const IN_DONT_FOLLOW: u32 = 0x0200_0000; -// pub const IN_EXCL_UNLINK: u32 = 0x0400_0000; +pub const IN_EXCL_UNLINK: u32 = 0x0400_0000; // linux/keyctl.h pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; @@ -3107,8 +3107,8 @@ pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; pub const KEYCTL_INVALIDATE: u32 = 21; pub const KEYCTL_GET_PERSISTENT: u32 = 22; -// pub const IN_MASK_CREATE: u32 = 0x1000_0000; -// pub const IN_MASK_ADD: u32 = 0x2000_0000; +pub const IN_MASK_CREATE: u32 = 0x1000_0000; +pub const IN_MASK_ADD: u32 = 0x2000_0000; pub const IN_ISDIR: u32 = 0x4000_0000; pub const IN_ONESHOT: u32 = 0x8000_0000;