Home
last modified time | relevance | path

Searched refs:c_long (Results 1 – 7 of 7) sorted by relevance

/trusty/user/base/lib/trusty-sys/src/
Derr.rs18 use crate::types::{c_long, c_void};
78 pub fn is_err(rc: c_long) -> bool { in is_err()
79 rc != NO_ERROR as c_long in is_err()
87 impl From<c_long> for Error {
88 fn from(rc: c_long) -> Self { in from()
91 if rc > i32::MAX as c_long || rc < i32::MIN as c_long { in from()
Dtypes.rs27 pub type c_long = i32; typedef
29 pub type c_long = i64; typedef
Dsyscalls.rs11 use crate::types::c_long as long;
/trusty/user/base/lib/tipc/rust/src/
Derr.rs21 use trusty_sys::{c_long, Error};
87 pub fn from_uapi(rc: c_long) -> Self { in from_uapi()
Dhandle.rs24 use trusty_sys::{c_int, c_long};
110 Err(TipcError::from_uapi(fd as c_long)) in from_raw()
238 if rc == trusty_sys::Error::NotEnoughBuffer as c_long { in send_vectored()
/trusty/user/base/lib/storage/rust/src/
Dlib.rs147 use trusty_sys::c_long;
714 fn check_return_code(code: impl Into<c_long>) -> Result<(), Self> { in check_return_code()
742 fn check_non_negative<T: Into<c_long> + Copy>(code: T) -> Result<T, Self> { in check_non_negative()
770 Self::check_non_negative(size as c_long)?; in check_size()
/trusty/user/base/lib/hwbcc/rust/src/
Dlib.rs49 use trusty_sys::{c_long, Error};
226 return Err(HwBccError::System(Error::from(response.status as c_long))); in recv_resp()