aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / vendor / libc / src / new / linux_uapi / linux / mount.rs
| 1 | //! Header: `uapi/linux/mount.h` |
| 2 | |
| 3 | use crate::prelude::*; |
| 4 | |
| 5 | pub const MS_RMT_MASK: c_ulong = crate::MS_RDONLY |
| 6 | | crate::MS_SYNCHRONOUS |
| 7 | | crate::MS_MANDLOCK |
| 8 | | crate::MS_I_VERSION |
| 9 | | crate::MS_LAZYTIME; |
| 10 | |
| 11 | pub const OPEN_TREE_CLONE: c_uint = 0x01; |
| 12 | pub const OPEN_TREE_NAMESPACE: c_uint = 0x02; |
| 13 | pub const OPEN_TREE_CLOEXEC: c_uint = crate::O_CLOEXEC as c_uint; |
| 14 | |
| 15 | pub const MOVE_MOUNT_F_SYMLINKS: c_uint = 0x00000001; |
| 16 | pub const MOVE_MOUNT_F_AUTOMOUNTS: c_uint = 0x00000002; |
| 17 | pub const MOVE_MOUNT_F_EMPTY_PATH: c_uint = 0x00000004; |
| 18 | pub const MOVE_MOUNT_T_SYMLINKS: c_uint = 0x00000010; |
| 19 | pub const MOVE_MOUNT_T_AUTOMOUNTS: c_uint = 0x00000020; |
| 20 | pub const MOVE_MOUNT_T_EMPTY_PATH: c_uint = 0x00000040; |
| 21 | pub const MOVE_MOUNT_SET_GROUP: c_uint = 0x00000100; |
| 22 | pub const MOVE_MOUNT_BENEATH: c_uint = 0x00000200; |
| 23 | |
| 24 | pub const FSOPEN_CLOEXEC: c_uint = 0x00000001; |
| 25 | |
| 26 | pub const FSPICK_CLOEXEC: c_uint = 0x00000001; |
| 27 | pub const FSPICK_SYMLINK_NOFOLLOW: c_uint = 0x00000002; |
| 28 | pub const FSPICK_NO_AUTOMOUNT: c_uint = 0x00000004; |
| 29 | pub const FSPICK_EMPTY_PATH: c_uint = 0x00000008; |
| 30 | |
| 31 | c_enum! { |
| 32 | pub enum fsconfig_command { |
| 33 | pub FSCONFIG_SET_FLAG, |
| 34 | pub FSCONFIG_SET_STRING, |
| 35 | pub FSCONFIG_SET_BINARY, |
| 36 | pub FSCONFIG_SET_PATH, |
| 37 | pub FSCONFIG_SET_PATH_EMPTY, |
| 38 | pub FSCONFIG_SET_FD, |
| 39 | pub FSCONFIG_CMD_CREATE, |
| 40 | pub FSCONFIG_CMD_RECONFIGURE, |
| 41 | pub FSCONFIG_CMD_CREATE_EXCL, |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | pub const FSMOUNT_CLOEXEC: c_uint = 0x00000001; |
| 46 | |
| 47 | pub const MOUNT_ATTR_RDONLY: u64 = 0x00000001; |
| 48 | pub const MOUNT_ATTR_NOSUID: u64 = 0x00000002; |
| 49 | pub const MOUNT_ATTR_NODEV: u64 = 0x00000004; |
| 50 | pub const MOUNT_ATTR_NOEXEC: u64 = 0x00000008; |
| 51 | pub const MOUNT_ATTR__ATIME: u64 = 0x00000070; |
| 52 | pub const MOUNT_ATTR_RELATIME: u64 = 0x00000000; |
| 53 | pub const MOUNT_ATTR_NOATIME: u64 = 0x00000010; |
| 54 | pub const MOUNT_ATTR_STRICTATIME: u64 = 0x00000020; |
| 55 | pub const MOUNT_ATTR_NODIRATIME: u64 = 0x00000080; |
| 56 | pub const MOUNT_ATTR_IDMAP: u64 = 0x00100000; |
| 57 | pub const MOUNT_ATTR_NOSYMFOLLOW: u64 = 0x00200000; |
| 58 | |
| 59 | s! { |
| 60 | pub struct mount_attr { |
| 61 | pub attr_set: crate::__u64, |
| 62 | pub attr_clr: crate::__u64, |
| 63 | pub propagation: crate::__u64, |
| 64 | pub userns_fd: crate::__u64, |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | pub const MOUNT_ATTR_SIZE_VER0: c_int = 32; |