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 library itself.
Zig › std/ › os/ › linux.zig › POSIX_FADV
POSIX_FADV
linux.POSIX_FADV
pub const POSIX_FADV = switch (native_arch )
File
Code
pub const POSIX_FADV = switch (native_arch ) {
.s390x => if (@typeInfo (usize ).int .bits == 64 ) struct {
pub const NORMAL = 0 ;
pub const RANDOM = 1 ;
pub const SEQUENTIAL = 2 ;
pub const WILLNEED = 3 ;
pub const DONTNEED = 6 ;
pub const NOREUSE = 7 ;
} else struct {
pub const NORMAL = 0 ;
pub const RANDOM = 1 ;
pub const SEQUENTIAL = 2 ;
pub const WILLNEED = 3 ;
pub const DONTNEED = 4 ;
pub const NOREUSE = 5 ;
},
else => struct {
pub const NORMAL = 0 ;
pub const RANDOM = 1 ;
pub const SEQUENTIAL = 2 ;
pub const WILLNEED = 3 ;
pub const DONTNEED = 4 ;
pub const NOREUSE = 5 ;
},
}