|
|
@ -49,7 +49,7 @@ pub fn syscall(id: usize, args: [usize; 6], tf: &mut TrapFrame) -> isize {
|
|
|
|
011 => sys_munmap(args[0], args[1]),
|
|
|
|
011 => sys_munmap(args[0], args[1]),
|
|
|
|
019 => sys_readv(args[0], args[1] as *const IoVec, args[2]),
|
|
|
|
019 => sys_readv(args[0], args[1] as *const IoVec, args[2]),
|
|
|
|
020 => sys_writev(args[0], args[1] as *const IoVec, args[2]),
|
|
|
|
020 => sys_writev(args[0], args[1] as *const IoVec, args[2]),
|
|
|
|
// 021 => sys_access(),
|
|
|
|
021 => sys_access(args[0] as *const u8, args[1]),
|
|
|
|
023 => sys_select(args[0], args[1] as *mut u32, args[2] as *mut u32, args[3] as *mut u32, args[4] as *const TimeVal),
|
|
|
|
023 => sys_select(args[0], args[1] as *mut u32, args[2] as *mut u32, args[3] as *mut u32, args[4] as *const TimeVal),
|
|
|
|
024 => sys_yield(),
|
|
|
|
024 => sys_yield(),
|
|
|
|
033 => sys_dup2(args[0], args[1]),
|
|
|
|
033 => sys_dup2(args[0], args[1]),
|
|
|
@ -67,6 +67,7 @@ pub fn syscall(id: usize, args: [usize; 6], tf: &mut TrapFrame) -> isize {
|
|
|
|
049 => sys_bind(args[0], args[1] as *const SockaddrIn, args[2]),
|
|
|
|
049 => sys_bind(args[0], args[1] as *const SockaddrIn, args[2]),
|
|
|
|
050 => sys_listen(args[0], args[1]),
|
|
|
|
050 => sys_listen(args[0], args[1]),
|
|
|
|
051 => sys_getsockname(args[0], args[1] as *mut SockaddrIn, args[2] as *mut u32),
|
|
|
|
051 => sys_getsockname(args[0], args[1] as *mut SockaddrIn, args[2] as *mut u32),
|
|
|
|
|
|
|
|
052 => sys_getpeername(args[0], args[1] as *mut SockaddrIn, args[2] as *mut u32),
|
|
|
|
054 => sys_setsockopt(args[0], args[1], args[2], args[3] as *const u8, args[4]),
|
|
|
|
054 => sys_setsockopt(args[0], args[1], args[2], args[3] as *const u8, args[4]),
|
|
|
|
055 => sys_getsockopt(args[0], args[1], args[2], args[3] as *mut u8, args[4] as *mut u32),
|
|
|
|
055 => sys_getsockopt(args[0], args[1], args[2], args[3] as *mut u8, args[4] as *mut u32),
|
|
|
|
// 056 => sys_clone(),
|
|
|
|
// 056 => sys_clone(),
|
|
|
|