Skip to content

Commit

Permalink
sysdeps/vinix: Implement sys_rmdir()
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsuki committed May 18, 2024
1 parent 7b67d09 commit d732fd9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion sysdeps/vinix/generic/generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,15 @@ int sys_fchmod(int fd, mode_t mode) {
return 0;
}

int sys_rmdir(const char *path) STUB_ONLY
int sys_rmdir(const char *path) {
__syscall_ret ret = __syscall(37, AT_FDCWD, path);

if (ret.errno != 0) {
return ret.errno;
}

return 0;
}

#endif

Expand Down

0 comments on commit d732fd9

Please sign in to comment.