File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -218,8 +218,10 @@ pub fn syscall_as_str(syscall: usize) -> &'static str {
218
218
prelude:: SYS_IPC_RECV => "ipc_recv" ,
219
219
prelude:: SYS_IPC_DISCOVER_ROOT => "ipc_discover_root" ,
220
220
prelude:: SYS_IPC_BECOME_ROOT => "ipc_become_root" ,
221
+ prelude:: SYS_STAT => "stat" ,
222
+ prelude:: SYS_FSTAT => "fstat" ,
221
223
222
- _ => unreachable ! ( "unknown syscall" ) ,
224
+ _ => unreachable ! ( "unknown syscall {syscall} " ) ,
223
225
}
224
226
}
225
227
@@ -441,7 +443,7 @@ pub fn syscall_result_as_usize(result: Result<usize, AeroSyscallError>) -> usize
441
443
442
444
/// Inner helper function that converts the syscall result value into the
443
445
/// Rust [`Result`] type.
444
- fn isize_as_syscall_result ( value : isize ) -> Result < usize , AeroSyscallError > {
446
+ pub fn isize_as_syscall_result ( value : isize ) -> Result < usize , AeroSyscallError > {
445
447
if value >= 0 {
446
448
Ok ( value as usize )
447
449
} else {
You can’t perform that action at this time.
0 commit comments