Searched refs:to_posix_errno (Results 1 – 15 of 15) sorted by relevance
34 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 …]
96 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()
298 return e.to_posix_errno() as i64; in rs_schedule_timeout()
31 .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 …]
114 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()
326 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()
35 return SystemError::ENOMEM.to_posix_errno(); in process_copy_sighand()91 return SystemError::ENOMEM.to_posix_errno(); in process_copy_signal()
16 .unwrap_or_else(|e| e.to_posix_errno() as u64); in sys_pipe()
77 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()
179 return SystemError::EPERM.to_posix_errno() as u64; in sys_sched()209 return SystemError::EINVAL.to_posix_errno(); in sched_migrate_process()
32 pub fn to_posix_errno(&self) -> i32 {
284 pub fn to_posix_errno(&self) -> i32 { in to_posix_errno() method
703 return err.to_posix_errno(); in mmio_create()721 return err.to_posix_errno(); in mmio_release()
48 return r.unwrap_err().to_posix_errno(); in ahci_init()
286 return r.unwrap_err().to_posix_errno(); in rs_tty_init()