authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-04-13 14:45:39+10:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2020-04-13 00:45:39-04:00
logb702964ae279156418f1110435103e30167af982
tree8ce72b7a18bec81d69ac15e80d16e760c45535f2
parentb8796be79d11b6fbdf91be6f7739a6f8b637aec8
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

std: fix os.fstatat definition (#5016)


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/os.zig+2-2
......@@ -2584,9 +2584,9 @@ pub fn fstat(fd: fd_t) FStatError!Stat {
25842584 }
25852585}
25862586
2587const FStatAtError = FStatError || error{NameTooLong};
2587pub const FStatAtError = FStatError || error{NameTooLong, FileNotFound};
25882588
2589pub fn fstatat(dirfd: fd_t, pathname: []const u8, flags: u32) FStatAtError![]Stat {
2589pub fn fstatat(dirfd: fd_t, pathname: []const u8, flags: u32) FStatAtError!Stat {
25902590 const pathname_c = try toPosixPath(pathname);
25912591 return fstatatZ(dirfd, &pathname_c, flags);
25922592}