实现SYS_RMDIR (#566)

* 实现rmdir系统调用,整理do_remove_dir逻辑
This commit is contained in:
Chenzx
2024-03-08 16:01:22 +08:00
committed by GitHub
parent 338f690326
commit 5eeefb8c80
4 changed files with 23 additions and 11 deletions

View File

@ -408,6 +408,12 @@ impl Syscall {
}
}
#[cfg(target_arch = "x86_64")]
SYS_RMDIR => {
let pathname = args[0] as *const u8;
Self::rmdir(pathname)
}
#[cfg(target_arch = "x86_64")]
SYS_UNLINK => {
let pathname = args[0] as *const u8;

View File

@ -65,6 +65,8 @@
#define SYS_MKDIR 83
#define SYS_RMDIR 84
#define SYS_GETTIMEOFDAY 96
#define SYS_ARCH_PRCTL 158