Home
last modified time | relevance | path

Searched refs:to_posix_errno (Results 1 – 15 of 15) sorted by relevance

/DragonOS-0.1.7/kernel/src/filesystem/vfs/
Dsyscall.rs34 return SystemError::EINVAL.to_posix_errno() as u64; in sys_open()
44 return r.unwrap_err().to_posix_errno() as u64; in sys_open()
59 return r.unwrap_err().to_posix_errno() as u64; in sys_close()
77 return SystemError::EPERM.to_posix_errno() as u64; in sys_read()
88 return r.unwrap_err().to_posix_errno() as u64; in sys_read()
106 return SystemError::EPERM.to_posix_errno() as u64; in sys_write()
117 return r.unwrap_err().to_posix_errno() as u64; in sys_write()
137 _ => return SystemError::EINVAL.to_posix_errno() as u64, in sys_lseek()
144 return r.unwrap_err().to_posix_errno() as u64; in sys_lseek()
173 return SystemError::EFAULT.to_posix_errno() as u64; in sys_chdir()
[all …]
/DragonOS-0.1.7/kernel/src/time/
Dsleep.rs96 return SystemError::EINVAL.to_posix_errno(); in rs_nanosleep()
113 return err.to_posix_errno(); in rs_nanosleep()
136 return err.to_posix_errno(); in rs_usleep()
Dtimer.rs298 return e.to_posix_errno() as i64; in rs_schedule_timeout()
/DragonOS-0.1.7/kernel/src/net/
Dsyscall.rs31 .unwrap_or_else(|e| e.to_posix_errno() as u64); in sys_socket()
85 .unwrap_or_else(|e| e.to_posix_errno() as u64); in sys_setsockopt()
126 .unwrap_or_else(|e| e.to_posix_errno() as u64); in sys_getsockopt()
220 .unwrap_or_else(|e| e.to_posix_errno() as u64); in sys_connect()
248 .unwrap_or_else(|e| e.to_posix_errno() as u64); in sys_bind()
285 .unwrap_or_else(|e| e.to_posix_errno() as u64); in sys_sendto()
340 .unwrap_or_else(|e| e.to_posix_errno() as u64); in sys_recvfrom()
401 .unwrap_or_else(|e| e.to_posix_errno() as i64); in sys_recvmsg()
448 .unwrap_or_else(|e| e.to_posix_errno() as i64); in sys_listen()
472 .unwrap_or_else(|e| e.to_posix_errno() as u64); in sys_shutdown()
[all …]
/DragonOS-0.1.7/kernel/src/libs/
Dlockref.rs114 return Err(SystemError::ETIMEDOUT.to_posix_errno()); in cmpxchg_loop()
123 return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP.to_posix_errno()); in cmpxchg_loop()
243 != SystemError::EOPNOTSUPP_OR_ENOTSUP.to_posix_errno() in dec_return()
/DragonOS-0.1.7/kernel/src/process/
Dprocess.rs326 return r.unwrap_err().to_posix_errno(); in process_init_files()
343 return r.unwrap_err().to_posix_errno(); in process_copy_files()
358 return r.unwrap_err().to_posix_errno(); in process_exit_files()
398 return r.unwrap_err().to_posix_errno(); in rs_init_stdio()
Dfork.rs35 return SystemError::ENOMEM.to_posix_errno(); in process_copy_sighand()
91 return SystemError::ENOMEM.to_posix_errno(); in process_copy_signal()
/DragonOS-0.1.7/kernel/src/ipc/
Dsyscall.rs16 .unwrap_or_else(|e| e.to_posix_errno() as u64); in sys_pipe()
Dsignal.rs77 return SystemError::EINVAL.to_posix_errno() as u64; in sys_kill()
101 x = retval.unwrap_err().to_posix_errno(); in sys_kill()
849 return SystemError::EFAULT.to_posix_errno() as u64; in sys_sigaction()
898 return SystemError::EINVAL.to_posix_errno() as u64; in sys_sigaction()
918 return SystemError::EFAULT.to_posix_errno() as u64; in sys_sigaction()
943 return retval.unwrap_err().to_posix_errno() as u64; in sys_sigaction()
/DragonOS-0.1.7/kernel/src/sched/
Dcore.rs179 return SystemError::EPERM.to_posix_errno() as u64; in sys_sched()
209 return SystemError::EINVAL.to_posix_errno(); in sched_migrate_process()
/DragonOS-0.1.7/docs/kernel/core_api/
Dcasting.md32 pub fn to_posix_errno(&self) -> i32 {
/DragonOS-0.1.7/kernel/src/syscall/
Dmod.rs284 pub fn to_posix_errno(&self) -> i32 { in to_posix_errno() method
/DragonOS-0.1.7/kernel/src/mm/
Dmmio_buddy.rs703 return err.to_posix_errno(); in mmio_create()
721 return err.to_posix_errno(); in mmio_release()
/DragonOS-0.1.7/kernel/src/driver/disk/ahci/
Dmod.rs48 return r.unwrap_err().to_posix_errno(); in ahci_init()
/DragonOS-0.1.7/kernel/src/driver/tty/
Dtty_device.rs286 return r.unwrap_err().to_posix_errno(); in rs_tty_init()