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

CLOSE_RANGE

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

Fields

_0: u1 = 0
UNSHARE: bool

Unshare the file descriptor table before closing file descriptors.

CLOEXEC: bool

Set the FD_CLOEXEC bit instead of closing the file descriptor.

_: u29 = 0

File

os/linux.zig:1749
1749
1750
1751
1752
1753
1754
1755
1756
pub const CLOSE_RANGE = packed struct(u32) {
    _0: u1 = 0,
    /// Unshare the file descriptor table before closing file descriptors.
    UNSHARE: bool, // 0x00000001
    /// Set the FD_CLOEXEC bit instead of closing the file descriptor.
    CLOEXEC: bool, // 0x00000002
    _: u29 = 0,
}