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 › chdir Private Function chdir Doc Source Private Function std.Io.Uring.chdir
fn chdir (sync : *CancelRegion .Sync , path : [*:0 ]const u8 ) ChdirError !void Params File Io/Uring.zig: 5301
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319 fn chdir (sync : *CancelRegion .Sync , path : [*:0 ]const u8 ) ChdirError !void {
while (true ) {
try sync .cancel_region .await (.nothing );
switch (linux .errno (linux .chdir (path ))) {
.SUCCESS => return ,
.INTR => {},
.ACCES => return error .AccessDenied ,
.IO => return error .FileSystem ,
.LOOP => return error .SymLinkLoop ,
.NAMETOOLONG => return error .NameTooLong ,
.NOENT => return error .FileNotFound ,
.NOMEM => return error .SystemResources ,
.NOTDIR => return error .NotDir ,
.ILSEQ => return error .BadPathName ,
.FAULT => |err | return errnoBug (err ),
else => |err | return unexpectedErrno (err ),
}
}
}