Add syscall statx

Signed-off-by: Zhenchen Wang <m202372036@hust.edu.cn>
This commit is contained in:
Zhenchen Wang
2025-04-14 09:53:17 +00:00
committed by Tate, Hongliang Tian
parent 1130933546
commit 7ac4fa9519
5 changed files with 218 additions and 0 deletions

View File

@ -120,6 +120,7 @@ use crate::syscall::{
socketpair::sys_socketpair,
stat::{sys_fstat, sys_fstatat},
statfs::{sys_fstatfs, sys_statfs},
statx::sys_statx,
symlink::sys_symlinkat,
sync::sys_sync,
tgkill::sys_tgkill,
@ -287,6 +288,7 @@ impl_syscall_nums_and_dispatch_fn! {
SYS_EXECVEAT = 281 => sys_execveat(args[..5], &mut user_ctx);
SYS_PREADV2 = 286 => sys_preadv2(args[..5]);
SYS_PWRITEV2 = 287 => sys_pwritev2(args[..5]);
SYS_STATX = 291 => sys_statx(args[..5]);
SYS_PRLIMIT64 = 302 => sys_prlimit64(args[..4]);
SYS_CLOCK_GETTIME = 403 => sys_clock_gettime(args[..2]);
SYS_CLOCK_NANOSLEEP = 407 => sys_clock_nanosleep(args[..4]);