Function nix_err_name

Source
pub unsafe extern "C" fn nix_err_name(
    context: *mut nix_c_context,
    read_context: *const nix_c_context,
    callback: nix_get_string_callback,
    user_data: *mut c_void,
) -> nix_err
Expand description

Retrieves the error name from a context. Used to inspect nix Error messages. @pre This function should only be called after a previous nix function has returned a NIX_ERR_NIX_ERROR

§Arguments

  • context - optional, the context to store errors in if this function fails
  • read_context [in] - the context to retrieve the error message from
  • callback [in] - Called with the error name.
  • user_data [in] - optional, arbitrary data, passed to the callback when it’s called.

§See also

nix_get_string_callback

§Returns

NIX_OK if there were no errors, an error code otherwise.