qh_abort_on_errno()
QNX SDP8.0QNX Helpers Developer's GuideAPIDeveloper
Conditionally log an error message using QNX helpers logging functions and then call abort() if the specified errno is not EOK
Synopsis:
#include <qh/error.h>
void qh_abort_on_errno(const qh_log_info_t *qh_log_info,
int errval,
const char *err_msg)
Arguments:
- qh_log_info
- The logging information for the abort message.
- errval
- The standard errno to validate (and log, in case of failure). Passing a value smaller than 0 (EOK) logs an error without details about the errno and aborts.
- err_msg
- The message to log before aborting, in case of failure.
Library:
qhDescription:
If the errno specified by errval is not EOK, this function logs an error message and then calls abort(). If errval is EOK, the function does nothing.
Returns:
None
Page updated: