Commit b702964ae2

daurnimator <quae@daurnimator.com>
2020-04-13 06:45:39
std: fix os.fstatat definition (#5016)
1 parent b8796be
Changed files (1)
lib
std
lib/std/os.zig
@@ -2584,9 +2584,9 @@ pub fn fstat(fd: fd_t) FStatError!Stat {
     }
 }
 
-const FStatAtError = FStatError || error{NameTooLong};
+pub const FStatAtError = FStatError || error{NameTooLong, FileNotFound};
 
-pub fn fstatat(dirfd: fd_t, pathname: []const u8, flags: u32) FStatAtError![]Stat {
+pub fn fstatat(dirfd: fd_t, pathname: []const u8, flags: u32) FStatAtError!Stat {
     const pathname_c = try toPosixPath(pathname);
     return fstatatZ(dirfd, &pathname_c, flags);
 }