Searched refs:c_long (Results 1 – 7 of 7) sorted by relevance
18 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()
27 pub type c_long = i32; typedef29 pub type c_long = i64; typedef
11 use crate::types::c_long as long;
21 use trusty_sys::{c_long, Error};87 pub fn from_uapi(rc: c_long) -> Self { in from_uapi()
24 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()
147 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()
49 use trusty_sys::{c_long, Error};226 return Err(HwBccError::System(Error::from(response.status as c_long))); in recv_resp()