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

STATX_ATTR

Public Struct
std.os.linux.STATX_ATTR
pub const STATX_ATTR = packed struct(u64)

Attributes about the state or features of a file as a bitmask. Flags marked [I] correspond to the FS_IOC_SETFLAGS values semantically. See FS_IOC_SETFLAGS(2const) for more.

Fields

__pad1: u3 = 0
COMPRESSED: bool = false

[I] File is compressed by the fs.

__pad2: u1 = 0
IMMUTABLE: bool = false

[I] File is marked immutable.

APPEND: bool = false

[I] File is append-only.

NODUMP: bool = false

[I] File is not to be dumped.

ENCRYPTED: bool = false

[I] File requires a key to decrypt in the filesystem.

AUTOMOUNT: bool = false

File names a directory that triggers an automount.

MOUNT_ROOT: bool = false

File names the root of a mount.

VERITY: bool = false

[I] File is protected by the dm-verity device.

DAX: bool = false

File is currently in the CPU direct access state. Does not correspond to the per-inode DAX flag that some filesystems support.

WRITE_ATOMIC: bool = false

File supports atomic write operations.

__pad3: u50 = 0

File

os/linux.zig:7937
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
pub const STATX_ATTR = packed struct(u64) {
    __pad1: u3 = 0,
    /// [I] File is compressed by the fs.
    COMPRESSED: bool = false,
    __pad2: u1 = 0,
    /// [I] File is marked immutable.
    IMMUTABLE: bool = false,
    /// [I] File is append-only.
    APPEND: bool = false,
    /// [I] File is not to be dumped.
    NODUMP: bool = false,
    /// [I] File requires a key to decrypt in the filesystem.
    ENCRYPTED: bool = false,
    /// File names a directory that triggers an automount.
    AUTOMOUNT: bool = false,
    /// File names the root of a mount.
    MOUNT_ROOT: bool = false,
    /// [I] File is protected by the `dm-verity` device.
    VERITY: bool = false,
    /// File is currently in the CPU direct access state.
    /// Does not correspond to the per-inode DAX flag that some filesystems support.
    DAX: bool = false,
    /// File supports atomic write operations.
    WRITE_ATOMIC: bool = false,
    __pad3: u50 = 0,
}