add missing EBADF error code for openat

This commit is contained in:
Jonathan Marler 2021-05-16 10:37:29 -06:00 committed by Jakub Konka
parent 6461b95163
commit 5042a47682

View File

@ -1244,6 +1244,7 @@ pub fn openatZ(dir_fd: fd_t, file_path: [*:0]const u8, flags: u32, mode: mode_t)
EFAULT => unreachable,
EINVAL => unreachable,
EBADF => unreachable,
EACCES => return error.AccessDenied,
EFBIG => return error.FileTooBig,
EOVERFLOW => return error.FileTooBig,