mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-19 20:46:35 +00:00
Make stub for sysinfo syscall
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
53b873f647
commit
b4ebd6e87f
@ -120,6 +120,7 @@ use crate::syscall::{
|
||||
statfs::{sys_fstatfs, sys_statfs},
|
||||
symlink::{sys_symlink, sys_symlinkat},
|
||||
sync::sys_sync,
|
||||
sysinfo::sys_sysinfo,
|
||||
tgkill::sys_tgkill,
|
||||
time::sys_time,
|
||||
timer_create::{sys_timer_create, sys_timer_delete},
|
||||
@ -224,6 +225,7 @@ impl_syscall_nums_and_dispatch_fn! {
|
||||
SYS_GETTIMEOFDAY = 96 => sys_gettimeofday(args[..1]);
|
||||
SYS_GETRLIMIT = 97 => sys_getrlimit(args[..2]);
|
||||
SYS_GETRUSAGE = 98 => sys_getrusage(args[..2]);
|
||||
SYS_SYSINFO = 99 => sys_sysinfo(args[..1]);
|
||||
SYS_GETUID = 102 => sys_getuid(args[..0]);
|
||||
SYS_GETGID = 104 => sys_getgid(args[..0]);
|
||||
SYS_SETUID = 105 => sys_setuid(args[..1]);
|
||||
|
@ -127,6 +127,7 @@ mod stat;
|
||||
mod statfs;
|
||||
mod symlink;
|
||||
mod sync;
|
||||
mod sysinfo;
|
||||
mod tgkill;
|
||||
mod time;
|
||||
mod timer_create;
|
||||
|
11
kernel/src/syscall/sysinfo.rs
Normal file
11
kernel/src/syscall/sysinfo.rs
Normal file
@ -0,0 +1,11 @@
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
use super::SyscallReturn;
|
||||
|
||||
pub fn sys_sysinfo(
|
||||
sysinfo_addr: Vaddr,
|
||||
ctx: &Context,
|
||||
) -> Result<SyscallReturn> {
|
||||
unimplemented!("sysinfo implementation in process");
|
||||
Ok(SyscallReturn::Return(-1))
|
||||
}
|
Reference in New Issue
Block a user