Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Struct

MOUNT_ATTR

Public Struct
std.os.linux.MOUNT_ATTR
pub const MOUNT_ATTR = packed struct(u32)

Fields

RELATIME: u0

Update atime relative to mtime/ctime.

RDONLY: bool

Mount read-only.

NOSUID: bool

Ignore suid and sgid bits.

NODEV: bool

Disallow access to device special files.

NOEXEC: bool

Disallow program execution.

NOATIME: bool

Do not update access times.

STRICTATIME: bool

Always perform atime updates.

_40: bool = false
NODIRATIME: bool

Do not update directory access times.

_100: u12 = 0
IDMAP: bool

Idmap mount to @userns_fd in struct mount_attr.

NOSYMFOLLOW: bool

Do not follow symlinks.

_: u10 = 0

File

os/linux.zig:1192
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
pub const MOUNT_ATTR = packed struct(u32) {
    /// Update atime relative to mtime/ctime.
    RELATIME: u0, // This is the default ATIME, it's true unless a different ATIME is set.
    /// Mount read-only.
    RDONLY: bool, // 0x00000001
    /// Ignore suid and sgid bits.
    NOSUID: bool, // 0x00000002
    /// Disallow access to device special files.
    NODEV: bool, // 0x00000004
    /// Disallow program execution.
    NOEXEC: bool, // 0x00000008
    /// Do not update access times.
    NOATIME: bool, // 0x00000010
    /// Always perform atime updates.
    STRICTATIME: bool, // 0x00000020
    _40: bool = false, // 0x00000040
    /// Do not update directory access times.
    NODIRATIME: bool, // 0x00000080
    _100: u12 = 0, // 0x00000100
    /// Idmap mount to @userns_fd in struct mount_attr.
    IDMAP: bool, // 0x00100000
    /// Do not follow symlinks.
    NOSYMFOLLOW: bool, // 0x00200000
    _: u10 = 0,

    // ATIME: u32, // 0x00000070 This is a mask, not a flag.
}