Home
last modified time | relevance | path

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

12

/external/crosvm/common/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/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/rust/crates/getrandom/src/
Derror.rs74 pub fn raw_os_error(self) -> Option<i32> { in raw_os_error() method
126 if let Some(errno) = self.raw_os_error() { in fmt()
144 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.rs108 match err.raw_os_error() { in wait_until_rng_ready()
/external/crosvm/base/src/
Derrno.rs39 Error(io::Error::last_os_error().raw_os_error().unwrap()) in last()
50 Error(e.raw_os_error().unwrap_or_default()) in from()
/external/crosvm/common/sys_util_core/src/
Derrno.rs39 Error(io::Error::last_os_error().raw_os_error().unwrap()) in last()
50 Error(e.raw_os_error().unwrap_or_default()) in from()
/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.rs50 if Errno::from_i32(e.raw_os_error().unwrap()) == Errno::EOVERFLOW { in test_mount_tmpfs_without_flags_allows_rwx()
99 File::create(tempdir.path().join("test")).unwrap_err().raw_os_error().unwrap()); in test_mount_rdonly_disallows_write()
137 Command::new(&test_path).status().unwrap_err().raw_os_error().unwrap()); in test_mount_noexec_disallows_exec()
/external/rust/crates/tokio/tests/
Dnamed_pipe.rs28 Err(e) if e.raw_os_error() == Some(winerror::ERROR_NO_DATA as i32) => (), in test_named_pipe_client_drop()
123 Err(e) if e.raw_os_error() == Some(winerror::ERROR_PIPE_BUSY as i32) => (), in test_named_pipe_multi_client()
252 Err(e) if e.raw_os_error() == Some(winerror::ERROR_PIPE_BUSY as i32) => (), in test_named_pipe_multi_client_ready()
Duds_datagram.rs90 Err(err) => match (err.kind(), err.raw_os_error()) { in try_send_recv_never_block()
297 Err(err) => match (err.kind(), err.raw_os_error()) { in try_recv_buf_never_block()
/external/rust/crates/remove_dir_all/src/
Dunix.rs8 Err(e) if e.raw_os_error() == Some(libc::EISDIR) => in remove_file_or_dir_all()
/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/crosvm/win_util/src/
Dsecurity_attributes.rs117 match io::Error::last_os_error().raw_os_error() { in new()
379 match io::Error::last_os_error().raw_os_error() { in try_from()
/external/rust/crates/rand_core/
DCHANGELOG.md41 - `Error::raw_os_error` method (#864)
/external/rust/crates/tempfile/src/file/imp/
Dunix.rs80 match e.raw_os_error() { in create()
/external/crosvm/base/src/windows/win/
Dnamed_pipes.rs485 match e.raw_os_error() { in read_internal()
605 let err = io::Error::last_os_error().raw_os_error().unwrap() as u32; in write_internal()
/external/crosvm/src/plugin/
Dmod.rs131 ProtobufError::IoError(e) => SysError::new(e.raw_os_error().unwrap_or(EINVAL)), in proto_to_sys_err()
137 SysError::new(e.raw_os_error().unwrap_or(EINVAL)) in io_to_sys_err()
/external/rust/crates/shared_library/src/
Ddynamic_library.rs379 if 0 == error.raw_os_error().unwrap() { in check_for_errors_in()
/external/crosvm/third_party/vmm_vhost/src/
Dlib.rs475 assert_eq!(e1.raw_os_error().unwrap(), libc::EAGAIN); in test_error_from_base_error()
/external/crosvm/vhost/src/
Dlib.rs407 Err(Error::IoctlError(ioe)) if ioe.raw_os_error().unwrap() == 25 => {} in assert_ok_or_known_failure()

12