From aa5d0028f094f400a3c4e497fec04e09c96a758c Mon Sep 17 00:00:00 2001 From: chyyuu Date: Wed, 17 Apr 2019 16:35:44 +0800 Subject: [PATCH] add unimplemented syscalls: SYS_GETGROUPS, SYS_SETGROUPS. Now busybox:id can run. --- kernel/src/syscall/mod.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kernel/src/syscall/mod.rs b/kernel/src/syscall/mod.rs index f865a43..1545af6 100644 --- a/kernel/src/syscall/mod.rs +++ b/kernel/src/syscall/mod.rs @@ -208,6 +208,14 @@ pub fn syscall(id: usize, args: [usize; 6], tf: &mut TrapFrame) -> isize { warn!("sys_getpgid is unimplemented"); Ok(0) } + SYS_GETGROUPS=> { + warn!("sys_getgroups is unimplemented"); + Ok(0) + } + SYS_SETGROUPS=> { + warn!("sys_setgroups is unimplemented"); + Ok(0) + } SYS_SIGALTSTACK => { warn!("sys_sigaltstack is unimplemented"); Ok(0)