|
Nix 2.17.0
Nix, the purely functional package manager; stable external interfaces
|
Main entry for the libutil C bindings. More...
Go to the source code of this file.
Macros | |
| #define | NIX_OK 0 |
| No error occurred. More... | |
| #define | NIX_ERR_UNKNOWN -1 |
| An unknown error occurred. More... | |
| #define | NIX_ERR_OVERFLOW -2 |
| An overflow error occurred. More... | |
| #define | NIX_ERR_KEY -3 |
| A key error occurred. More... | |
| #define | NIX_ERR_NIX_ERROR -4 |
| A generic Nix error occurred. More... | |
Typedefs | |
| typedef int | nix_err |
| Type for error codes in the NIX system. More... | |
| typedef struct nix_c_context | nix_c_context |
Functions | |
| nix_c_context * | nix_c_context_create () |
| Allocate a new nix_c_context. More... | |
| void | nix_c_context_free (nix_c_context *context) |
| Free a nix_c_context. Does not fail. More... | |
| nix_err | nix_libutil_init (nix_c_context *context) |
| Initializes nix_libutil and its dependencies. More... | |
| nix_err | nix_setting_get (nix_c_context *context, const char *key, char *value, int n) |
| Retrieves a setting from the nix global configuration. More... | |
| nix_err | nix_setting_set (nix_c_context *context, const char *key, const char *value) |
| Sets a setting in the nix global configuration. More... | |
| const char * | nix_version_get () |
| Retrieves the nix library version. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| nix_err | nix_err_code (const nix_c_context *read_context) |
| Retrieves the most recent error code from a nix_c_context. More... | |
Main entry for the libutil C bindings.
Also contains error handling utilities