Skip to content

Commit a053ddf

Browse files
authored
Add the MNT_* and UMOUNT_* flags to the general module. (#43)
These flags are not exposed in the uapi linux/fs.h, but they're part of Linux's public ABI anyway. Fixes #40.
1 parent 48a4bad commit a053ddf

File tree

15 files changed

+76
-0
lines changed

15 files changed

+76
-0
lines changed

gen/modules/general.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,3 +350,9 @@ struct mmsghdr {
350350
#define SPLICE_F_NONBLOCK 2
351351
#define SPLICE_F_MORE 4
352352
#define SPLICE_F_GIFT 8
353+
354+
#define MNT_FORCE 0x1
355+
#define MNT_DETACH 0x2
356+
#define MNT_EXPIRE 0x4
357+
#define UMOUNT_NOFOLLOW 0x8
358+
#define UMOUNT_UNUSED 0x80000000

src/aarch64/general.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2485,6 +2485,11 @@ pub const SPLICE_F_MOVE: u32 = 1;
24852485
pub const SPLICE_F_NONBLOCK: u32 = 2;
24862486
pub const SPLICE_F_MORE: u32 = 4;
24872487
pub const SPLICE_F_GIFT: u32 = 8;
2488+
pub const MNT_FORCE: u32 = 1;
2489+
pub const MNT_DETACH: u32 = 2;
2490+
pub const MNT_EXPIRE: u32 = 4;
2491+
pub const UMOUNT_NOFOLLOW: u32 = 8;
2492+
pub const UMOUNT_UNUSED: u32 = 2147483648;
24882493
pub type size_t = crate::ctypes::c_ulong;
24892494
pub type ssize_t = crate::ctypes::c_long;
24902495
pub type __s8 = crate::ctypes::c_schar;

src/arm/general.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2571,6 +2571,11 @@ pub const SPLICE_F_MOVE: u32 = 1;
25712571
pub const SPLICE_F_NONBLOCK: u32 = 2;
25722572
pub const SPLICE_F_MORE: u32 = 4;
25732573
pub const SPLICE_F_GIFT: u32 = 8;
2574+
pub const MNT_FORCE: u32 = 1;
2575+
pub const MNT_DETACH: u32 = 2;
2576+
pub const MNT_EXPIRE: u32 = 4;
2577+
pub const UMOUNT_NOFOLLOW: u32 = 8;
2578+
pub const UMOUNT_UNUSED: u32 = 2147483648;
25742579
pub type size_t = crate::ctypes::c_uint;
25752580
pub type ssize_t = crate::ctypes::c_int;
25762581
pub type __s8 = crate::ctypes::c_schar;

src/mips/general.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2734,6 +2734,11 @@ pub const SPLICE_F_MOVE: u32 = 1;
27342734
pub const SPLICE_F_NONBLOCK: u32 = 2;
27352735
pub const SPLICE_F_MORE: u32 = 4;
27362736
pub const SPLICE_F_GIFT: u32 = 8;
2737+
pub const MNT_FORCE: u32 = 1;
2738+
pub const MNT_DETACH: u32 = 2;
2739+
pub const MNT_EXPIRE: u32 = 4;
2740+
pub const UMOUNT_NOFOLLOW: u32 = 8;
2741+
pub const UMOUNT_UNUSED: u32 = 2147483648;
27372742
pub type size_t = crate::ctypes::c_uint;
27382743
pub type ssize_t = crate::ctypes::c_int;
27392744
pub type __s8 = crate::ctypes::c_schar;

src/mips64/general.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2669,6 +2669,11 @@ pub const SPLICE_F_MOVE: u32 = 1;
26692669
pub const SPLICE_F_NONBLOCK: u32 = 2;
26702670
pub const SPLICE_F_MORE: u32 = 4;
26712671
pub const SPLICE_F_GIFT: u32 = 8;
2672+
pub const MNT_FORCE: u32 = 1;
2673+
pub const MNT_DETACH: u32 = 2;
2674+
pub const MNT_EXPIRE: u32 = 4;
2675+
pub const UMOUNT_NOFOLLOW: u32 = 8;
2676+
pub const UMOUNT_UNUSED: u32 = 2147483648;
26722677
pub type size_t = crate::ctypes::c_ulong;
26732678
pub type ssize_t = crate::ctypes::c_long;
26742679
pub type __s8 = crate::ctypes::c_schar;

src/powerpc/general.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2619,6 +2619,11 @@ pub const SPLICE_F_MOVE: u32 = 1;
26192619
pub const SPLICE_F_NONBLOCK: u32 = 2;
26202620
pub const SPLICE_F_MORE: u32 = 4;
26212621
pub const SPLICE_F_GIFT: u32 = 8;
2622+
pub const MNT_FORCE: u32 = 1;
2623+
pub const MNT_DETACH: u32 = 2;
2624+
pub const MNT_EXPIRE: u32 = 4;
2625+
pub const UMOUNT_NOFOLLOW: u32 = 8;
2626+
pub const UMOUNT_UNUSED: u32 = 2147483648;
26222627
pub type size_t = crate::ctypes::c_uint;
26232628
pub type ssize_t = crate::ctypes::c_int;
26242629
pub type __s8 = crate::ctypes::c_schar;

src/powerpc64/general.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2594,6 +2594,11 @@ pub const SPLICE_F_MOVE: u32 = 1;
25942594
pub const SPLICE_F_NONBLOCK: u32 = 2;
25952595
pub const SPLICE_F_MORE: u32 = 4;
25962596
pub const SPLICE_F_GIFT: u32 = 8;
2597+
pub const MNT_FORCE: u32 = 1;
2598+
pub const MNT_DETACH: u32 = 2;
2599+
pub const MNT_EXPIRE: u32 = 4;
2600+
pub const UMOUNT_NOFOLLOW: u32 = 8;
2601+
pub const UMOUNT_UNUSED: u32 = 2147483648;
25972602
pub type size_t = crate::ctypes::c_ulong;
25982603
pub type ssize_t = crate::ctypes::c_long;
25992604
pub type __s8 = crate::ctypes::c_schar;

src/riscv32/general.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2470,6 +2470,11 @@ pub const SPLICE_F_MOVE: u32 = 1;
24702470
pub const SPLICE_F_NONBLOCK: u32 = 2;
24712471
pub const SPLICE_F_MORE: u32 = 4;
24722472
pub const SPLICE_F_GIFT: u32 = 8;
2473+
pub const MNT_FORCE: u32 = 1;
2474+
pub const MNT_DETACH: u32 = 2;
2475+
pub const MNT_EXPIRE: u32 = 4;
2476+
pub const UMOUNT_NOFOLLOW: u32 = 8;
2477+
pub const UMOUNT_UNUSED: u32 = 2147483648;
24732478
pub type size_t = crate::ctypes::c_uint;
24742479
pub type ssize_t = crate::ctypes::c_int;
24752480
pub type __s8 = crate::ctypes::c_schar;

src/riscv64/general.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2487,6 +2487,11 @@ pub const SPLICE_F_MOVE: u32 = 1;
24872487
pub const SPLICE_F_NONBLOCK: u32 = 2;
24882488
pub const SPLICE_F_MORE: u32 = 4;
24892489
pub const SPLICE_F_GIFT: u32 = 8;
2490+
pub const MNT_FORCE: u32 = 1;
2491+
pub const MNT_DETACH: u32 = 2;
2492+
pub const MNT_EXPIRE: u32 = 4;
2493+
pub const UMOUNT_NOFOLLOW: u32 = 8;
2494+
pub const UMOUNT_UNUSED: u32 = 2147483648;
24902495
pub type size_t = crate::ctypes::c_ulong;
24912496
pub type ssize_t = crate::ctypes::c_long;
24922497
pub type __s8 = crate::ctypes::c_schar;

src/s390x/general.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2529,6 +2529,11 @@ pub const SPLICE_F_MOVE: u32 = 1;
25292529
pub const SPLICE_F_NONBLOCK: u32 = 2;
25302530
pub const SPLICE_F_MORE: u32 = 4;
25312531
pub const SPLICE_F_GIFT: u32 = 8;
2532+
pub const MNT_FORCE: u32 = 1;
2533+
pub const MNT_DETACH: u32 = 2;
2534+
pub const MNT_EXPIRE: u32 = 4;
2535+
pub const UMOUNT_NOFOLLOW: u32 = 8;
2536+
pub const UMOUNT_UNUSED: u32 = 2147483648;
25322537
pub type size_t = crate::ctypes::c_ulong;
25332538
pub type ssize_t = crate::ctypes::c_long;
25342539
pub type __s8 = crate::ctypes::c_schar;

0 commit comments

Comments
 (0)