Home
last modified time | relevance | path

Searched refs:INVAL (Results 1 - 21 of 21) sorted by relevance

/third_party/rust/crates/rustix/tests/thread/
H A Dclocks.rs26 NanosleepRelativeResult::Err(io::Errno::INVAL) => (), in test_invalid_nanosleep()
33 NanosleepRelativeResult::Err(io::Errno::INVAL) => (), in test_invalid_nanosleep()
40 NanosleepRelativeResult::Err(io::Errno::INVAL) => (), in test_invalid_nanosleep()
47 NanosleepRelativeResult::Err(io::Errno::INVAL) => (), in test_invalid_nanosleep()
72 Err(io::Errno::INVAL) => (), in test_invalid_nanosleep_absolute()
82 Err(io::Errno::INVAL) => (), in test_invalid_nanosleep_absolute()
92 Err(io::Errno::INVAL) => (), in test_invalid_nanosleep_absolute()
102 Err(io::Errno::INVAL) => (), in test_invalid_nanosleep_absolute()
127 NanosleepRelativeResult::Err(io::Errno::INVAL) => (), in test_invalid_nanosleep_relative()
137 NanosleepRelativeResult::Err(io::Errno::INVAL) in test_invalid_nanosleep_relative()
[all...]
/third_party/rust/crates/rustix/src/path/
H A Darg.rs106 CString::new(*self).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy()
116 CString::new(self).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy()
144 CString::new(String::as_str(self)).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy()
180 CString::new(self.as_str()).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy()
190 CString::new(self).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy()
200 f(&CString::new(self).map_err(|_cstr_err| io::Errno::INVAL)?) in into_with_c_str()
208 self.to_str().ok_or(io::Errno::INVAL) in as_str()
219 CString::new(self.as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy()
229 CString::new(self.as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy()
247 OsString::as_os_str(self).to_str().ok_or(io::Errno::INVAL) in as_str()
[all...]
/third_party/rust/crates/rustix/tests/io/
H A Derror.rs4 rustix::io::Errno::INVAL, in test_error()
5 rustix::io::Errno::from_raw_os_error(rustix::io::Errno::INVAL.raw_os_error()) in test_error()
8 assert_eq!(rustix::io::Errno::INVAL.raw_os_error(), libc::EINVAL); in test_error()
11 rustix::io::Errno::INVAL.raw_os_error(), in test_error()
/third_party/rust/crates/rustix/src/backend/linux_raw/thread/
H A Dsyscalls.rs77 tv_sec: req.tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, in clock_nanosleep_relative_old()
78 tv_nsec: req.tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, in clock_nanosleep_relative_old()
136 tv_sec: req.tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, in clock_nanosleep_absolute_old()
137 tv_nsec: req.tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, in clock_nanosleep_absolute_old()
191 tv_sec: req.tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, in nanosleep_old()
192 tv_nsec: req.tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, in nanosleep_old()
272 tv_sec: (*utime).tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, in futex_old()
273 tv_nsec: (*utime).tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, in futex_old()
/third_party/rust/crates/rustix/src/backend/libc/net/
H A Dread_sockaddr.rs102 return Err(io::Errno::INVAL);
107 return Err(io::Errno::INVAL);
117 return Err(io::Errno::INVAL);
138 return Err(io::Errno::INVAL);
155 return Err(io::Errno::INVAL);
170 _ => Err(io::Errno::INVAL),
H A Dsyscalls.rs504 l_linger = l_linger.checked_add(1).ok_or(io::Errno::INVAL)?;
506 l_linger.try_into().map_err(|_e| io::Errno::INVAL)?
555 return Err(io::Errno::INVAL);
586 return Err(io::Errno::INVAL);
593 .map_err(|_convert_err| io::Errno::INVAL)?;
/third_party/rust/crates/rustix/src/backend/linux_raw/termios/
H A Dsyscalls.rs177 return Err(io::Errno::INVAL);
190 return Err(io::Errno::INVAL);
200 return Err(io::Errno::INVAL);
/third_party/rust/crates/rustix/src/backend/linux_raw/net/
H A Dread_sockaddr.rs59 return Err(io::Errno::INVAL);
64 return Err(io::Errno::INVAL);
74 return Err(io::Errno::INVAL);
86 return Err(io::Errno::INVAL);
H A Dsyscalls.rs897 l_linger = l_linger.checked_add(1).ok_or(io::Errno::INVAL)?;
899 l_linger.try_into().map_err(|_e| io::Errno::INVAL)?
1024 return Err(io::Errno::INVAL); in duration_to_linux()
1047 return Err(io::Errno::INVAL); in duration_to_linux_old()
/third_party/rust/crates/rustix/src/backend/libc/thread/
H A Dsyscalls.rs109 Err(_) => return NanosleepRelativeResult::Err(io::Errno::INVAL), in clock_nanosleep_relative_old()
195 tv_nsec: request.tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, in clock_nanosleep_absolute_old()
254 Err(_) => return NanosleepRelativeResult::Err(io::Errno::INVAL), in nanosleep_old()
/third_party/rust/crates/rustix/tests/path/
H A Darg.rs148 assert_eq!(t.as_str().unwrap_err(), io::Errno::INVAL); in test_invalid()
165 assert_eq!(t.as_cow_c_str().unwrap_err(), io::Errno::INVAL); in test_embedded_nul()
166 assert_eq!(t.into_c_str().unwrap_err(), io::Errno::INVAL); in test_embedded_nul()
/third_party/rust/crates/rustix/src/backend/linux_raw/time/
H A Dsyscalls.rs139 .map_err(|_| io::Errno::INVAL)?, in timerfd_settime_old()
151 .map_err(|_| io::Errno::INVAL)?, in timerfd_settime_old()
/third_party/rust/crates/rustix/tests/fs/
H A Dstatx.rs30 // value but `statx` should reliably fail with `INVAL`. in test_statx_reserved()
35 Err(err) => assert_eq!(err, rustix::io::Errno::INVAL), in test_statx_reserved()
/third_party/rust/crates/rustix/src/backend/linux_raw/process/
H A Dsyscalls.rs473 Some(r) => r.try_into().map_err(|_e| io::Errno::INVAL)?, in rlimit_to_linux_old()
477 Some(r) => r.try_into().map_err(|_e| io::Errno::INVAL)?, in rlimit_to_linux_old()
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/
H A Dsyscalls.rs738 return Err(io::Errno::INVAL);
1273 .map_err(|_| io::Errno::INVAL)?, in _utimensat_old()
1285 .map_err(|_| io::Errno::INVAL)?, in _utimensat_old()
1321 return Err(io::Errno::INVAL);
/third_party/rust/crates/rustix/src/backend/linux_raw/
H A Dvdso_wrappers.rs79 EINVAL => return Err(io::Errno::INVAL),
H A Dconv.rs464 Ok(pass_usize(dev.try_into().map_err(|_err| io::Errno::INVAL)?))
/third_party/rust/crates/rustix/src/backend/libc/io/
H A Dsyscalls.rs504 .map_err(|_convert_err| io::Errno::INVAL)?;
H A Derrno.rs304 pub const INVAL: Self = Self(c::EINVAL); consts
/third_party/rust/crates/rustix/src/backend/linux_raw/io/
H A Derrno.rs325 pub const INVAL: Self = Self::from_errno(errno::EINVAL); consts
/third_party/rust/crates/rustix/src/backend/libc/fs/
H A Dsyscalls.rs639 9 => Err(io::Errno::INVAL),
1200 let offset: i64 = offset.try_into().map_err(|_e| io::Errno::INVAL)?;
1534 return Err(io::Errno::INVAL);

Completed in 13 milliseconds