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 › execvPath Public Function execvPath Doc Source Public Function std.Io.Uring.execvPath
pub fn execvPath (
sync : *CancelRegion .Sync ,
path : [*:0 ]const u8 ,
child_argv : [*:null ]const ?[*:0 ]const u8 ,
env_block : process .Environ .PosixBlock ,
) process .ReplaceError Params sync : *CancelRegion .Sync path : [*:0 ]const u8 child_argv : [*:null ]const ?[*:0 ]const u8 env_block : process .Environ .PosixBlock File Io/Uring.zig: 4675
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702 pub fn execvPath (
sync : *CancelRegion .Sync ,
path : [*:0 ]const u8 ,
child_argv : [*:null ]const ?[*:0 ]const u8 ,
env_block : process .Environ .PosixBlock ,
) process .ReplaceError {
try sync .cancel_region .await (.nothing );
switch (linux .errno (linux .execve (path , child_argv , env_block .slice .ptr ))) {
.FAULT => |err | return errnoBug (err ), // Bad pointer parameter.
.@"2BIG" => return error .SystemResources ,
.MFILE => return error .ProcessFdQuotaExceeded ,
.NAMETOOLONG => return error .NameTooLong ,
.NFILE => return error .SystemFdQuotaExceeded ,
.NOMEM => return error .SystemResources ,
.ACCES => return error .AccessDenied ,
.PERM => return error .PermissionDenied ,
.INVAL => return error .InvalidExe ,
.NOEXEC => return error .InvalidExe ,
.IO => return error .FileSystem ,
.LOOP => return error .FileSystem ,
.ISDIR => return error .IsDir ,
.NOENT => return error .FileNotFound ,
.NOTDIR => return error .NotDir ,
.TXTBSY => return error .FileBusy ,
.LIBBAD => return error .InvalidExe ,
else => |err | return unexpectedErrno (err ),
}
}
This function ignores PATH environment variable.