sysdeps/managarm: Add more error returns for sys_mkdirat
@@ -203,6 +203,12 @@ int sys_mkdirat(int dirfd, const char *path, mode_t mode) {
return EEXIST;
} else if(resp.error() == managarm::posix::Errors::ILLEGAL_ARGUMENTS) {
return EINVAL;
+ }else if(resp.error() == managarm::posix::Errors::BAD_FD) {
+ return EBADF;
+ }else if(resp.error() == managarm::posix::Errors::FILE_NOT_FOUND) {
+ return ENOENT;
+ }else if(resp.error() == managarm::posix::Errors::NOT_A_DIRECTORY) {
+ return ENOTDIR;
}else{
__ensure(resp.error() == managarm::posix::Errors::SUCCESS);
return 0;
