Home
last modified time | relevance | path

Searched refs:raw_os_error (Results 1 – 24 of 24) sorted by relevance

/external/crosvm/io_uring/src/
Dsyscalls.rs23 return Err(Error::last_os_error().raw_os_error().unwrap()); in io_uring_setup()
38 return Err(Error::last_os_error().raw_os_error().unwrap()); in io_uring_enter()
/external/crosvm/sys_util/src/
Derrno.rs29 Error(io::Error::last_os_error().raw_os_error().unwrap()) in last()
40 Error::new(e.raw_os_error().unwrap_or_default()) in from()
Dseek_hole.rs33 if let Some(errno) = Error::raw_os_error(&err) { in lseek()
/external/rust/crates/getrandom/src/
Derror.rs74 pub fn raw_os_error(self) -> Option<i32> { in raw_os_error() method
119 if let Some(errno) = self.raw_os_error() { in fmt()
137 if let Some(errno) = self.raw_os_error() { in fmt()
Derror_impls.rs17 match err.raw_os_error() { in from()
Dlinux_android.rs30 match last_os_error().raw_os_error() { in is_getrandom_available()
Dutil_libc.rs59 if err.raw_os_error() != Some(libc::EINTR) { in sys_fill_exact()
Duse_file.rs110 match err.raw_os_error() { in wait_until_rng_ready()
/external/rust/crates/rand_core/src/
Derror.rs87 pub fn raw_os_error(&self) -> Option<i32> { in raw_os_error() method
91 return e.raw_os_error(); in raw_os_error()
197 if let Some(code) = error.raw_os_error() { in from()
/external/rust/crates/nix/test/
Dtest_mount.rs51 if Errno::from_i32(e.raw_os_error().unwrap()) == Errno::EOVERFLOW { in test_mount_tmpfs_without_flags_allows_rwx()
100 File::create(tempdir.path().join("test")).unwrap_err().raw_os_error().unwrap()); in test_mount_rdonly_disallows_write()
138 Command::new(&test_path).status().unwrap_err().raw_os_error().unwrap()); in test_mount_noexec_disallows_exec()
/external/rust/crates/gdbstub/src/gdbstub_impl/
Dtarget_result_ext.rs22 Err(TargetError::Io(e)) => e.raw_os_error().unwrap_or(121) as u8, in handle_error()
/external/rust/crates/mio/src/sys/windows/
Dselector.rs132 self.error = e.raw_os_error(); in update()
157 let code = e.raw_os_error().unwrap(); in update()
169 self.error = e.raw_os_error(); in update()
475 Err(ref e) if e.raw_os_error() == Some(WAIT_TIMEOUT as i32) => Ok(0), in select2()
Dnamed_pipe.rs310 if e.raw_os_error() == Some(ERROR_BROKEN_PIPE as i32) { in read()
499 Err(ref e) if e.raw_os_error() == Some(ERROR_PIPE_LISTENING as i32) => false, in schedule_read()
/external/rust/crates/rand_core/
DCHANGELOG.md36 - `Error::raw_os_error` method (#864)
/external/crosvm/vhost/src/
Dlib.rs357 Err(Error::IoctlError(ioe)) if ioe.raw_os_error().unwrap() == 25 => {} in assert_ok_or_known_failure()
/external/crosvm/src/plugin/
Dmod.rs251 ProtobufError::IoError(e) => SysError::new(e.raw_os_error().unwrap_or(EINVAL)), in proto_to_sys_err()
257 SysError::new(e.raw_os_error().unwrap_or(EINVAL)) in io_to_sys_err()
/external/rust/crates/vmm_vhost/src/vhost_user/
Dmaster_req_handler.rs360 Error::ReqHandlerError(ioerr) => match ioerr.raw_os_error() { in send_ack_message()
Dmod.rs451 assert_eq!(e1.raw_os_error().unwrap(), libc::EAGAIN); in test_error_from_sys_util_error()
/external/rust/crates/mio/src/sys/unix/
Dtcp.rs44 Err(err) if err.raw_os_error() != Some(libc::EINPROGRESS) => { in connect()
/external/vm_tools/p9/src/server/
Dmod.rs187 let errno = if let Some(errno) = err.raw_os_error() { in error_to_rmessage()
289 if let Some(libc::ENOENT) = e.raw_os_error() { in do_walk()
/external/rust/crates/getrandom/
DCHANGELOG.md163 - `Error::raw_os_error` method, `Error::INTERNAL_START` and
/external/crosvm/crosvm_plugin/src/
Dlib.rs136 protobuf::ProtobufError::IoError(e) => e.raw_os_error().unwrap_or(EINVAL), in proto_error_to_int()
1050 .map_err(|e| -e.raw_os_error().unwrap_or(EINVAL))?; in vcpu_send()
1059 .map_err(|e| -e.raw_os_error().unwrap_or(EINVAL))?; in vcpu_recv()
/external/rust/crates/mio/src/sys/unix/selector/
Dkqueue.rs282 if err.raw_os_error() == Some(libc::EINTR) { in kevent_register()
/external/crosvm/fuse/src/
Dserver.rs1642 result: -e.raw_os_error().unwrap_or(libc::EIO), in finish_ioctl()
1707 error: -e.raw_os_error().unwrap_or(libc::EIO), in reply_error()