75#define NIX_ERR_UNKNOWN -1
83#define NIX_ERR_OVERFLOW -2
99#define NIX_ERR_NIX_ERROR -4
nix_err nix_err_info_msg(nix_c_context *context, const nix_c_context *read_context, char *value, int n)
Retrieves the error message from errorInfo in a context.
nix_err nix_err_name(nix_c_context *context, const nix_c_context *read_context, char *value, int n)
Retrieves the error name from a context.
nix_c_context * nix_c_context_create()
Allocate a new nix_c_context.
int nix_err
Type for error codes in the NIX system.
Definition: nix_api_util.h:59
void nix_c_context_free(nix_c_context *context)
Free a nix_c_context. Does not fail.
const char * nix_err_msg(nix_c_context *context, const nix_c_context *ctx, unsigned int *n)
Retrieves the most recent error message from a context.
nix_err nix_err_code(const nix_c_context *read_context)
Retrieves the most recent error code from a nix_c_context.
const char * nix_version_get()
Retrieves the nix library version.
nix_err nix_libutil_init(nix_c_context *context)
Initializes nix_libutil and its dependencies.
nix_err nix_setting_set(nix_c_context *context, const char *key, const char *value)
Sets a setting in the nix global configuration.
nix_err nix_setting_get(nix_c_context *context, const char *key, char *value, int n)
Retrieves a setting from the nix global configuration.
This object stores error state.