Zig 0.17.0-dev (Split by item) 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.
std › os › linux › PROT Public Constant PROT Doc Source Public Constant std.os.linux.PROT
pub const PROT = switch (native_arch ) File os/linux.zig: 4347
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371 pub const PROT = switch (native_arch ) {
.mips , .mipsel , .mips64 , .mips64el , .xtensa , .xtensaeb => packed struct (u32 ) {
READ : bool = false ,
WRITE : bool = false ,
EXEC : bool = false ,
_ : u1 = 0 ,
/// Page may be used for atomic ops.
SEM : bool = false ,
__ : u19 = 0 ,
GROWSDOWN : bool = false ,
GROWSUP : bool = false ,
___ : u6 = 0 ,
},
else => packed struct (u32 ) {
READ : bool = false ,
WRITE : bool = false ,
EXEC : bool = false ,
/// Page may be used for atomic ops.
SEM : bool = false ,
__ : u20 = 0 ,
GROWSDOWN : bool = false ,
GROWSUP : bool = false ,
___ : u6 = 0 ,
},
}