Lines Matching refs:errcode
241 # define ERR_SYSTEM_ERROR(errcode) (((errcode) & ERR_SYSTEM_FLAG) != 0) argument
243 static ossl_unused ossl_inline int ERR_GET_LIB(unsigned long errcode) argument
245 if (ERR_SYSTEM_ERROR(errcode))
247 return (errcode >> ERR_LIB_OFFSET) & ERR_LIB_MASK;
250 static ossl_unused ossl_inline int ERR_GET_RFLAGS(unsigned long errcode) argument
252 if (ERR_SYSTEM_ERROR(errcode))
254 return errcode & (ERR_RFLAGS_MASK << ERR_RFLAGS_OFFSET);
257 static ossl_unused ossl_inline int ERR_GET_REASON(unsigned long errcode) argument
259 if (ERR_SYSTEM_ERROR(errcode))
260 return errcode & ERR_SYSTEM_MASK;
261 return errcode & ERR_REASON_MASK;
264 static ossl_unused ossl_inline int ERR_FATAL_ERROR(unsigned long errcode) argument
266 return (ERR_GET_RFLAGS(errcode) & ERR_RFLAG_FATAL) != 0;
269 static ossl_unused ossl_inline int ERR_COMMON_ERROR(unsigned long errcode) argument
271 return (ERR_GET_RFLAGS(errcode) & ERR_RFLAG_COMMON) != 0;