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 › Io › Uring › utimensat Private Function utimensat Doc Source Private Function std.Io.Uring.utimensat
fn utimensat (
ev : *Evented ,
sync : *CancelRegion .Sync ,
dir : fd_t ,
path : [*:0 ]const u8 ,
times : ?*const [2 ]linux .timespec ,
flags : u32 ,
) File .SetTimestampsError !void Params File Io/Uring.zig: 6053
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076 fn utimensat (
ev : *Evented ,
sync : *CancelRegion .Sync ,
dir : fd_t ,
path : [*:0 ]const u8 ,
times : ?*const [2 ]linux .timespec ,
flags : u32 ,
) File .SetTimestampsError !void {
_ = ev ;
while (true ) {
try sync .cancel_region .await (.nothing );
switch (linux .errno (linux .utimensat (dir , path , times , flags ))) {
.SUCCESS => return ,
.INTR => {},
.BADF => |err | return errnoBug (err ), // always a race condition
.FAULT => |err | return errnoBug (err ),
.INVAL => |err | return errnoBug (err ),
.ACCES => return error .AccessDenied ,
.PERM => return error .PermissionDenied ,
.ROFS => return error .ReadOnlyFileSystem ,
else => |err | return unexpectedErrno (err ),
}
}
}