std: fix os.fstatat definition (#5016)

master
daurnimator 2020-04-13 14:45:39 +10:00 committed by GitHub
parent b8796be79d
commit b702964ae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}