#include "config.h"#include "shared/status.h"#include <stdlib.h>
Go to the source code of this file.
Functions | |
| ods_lookup_table * | ods_lookup_by_id (ods_lookup_table *table, int id) |
| const char * | ods_status2str (ods_status status) |
Variables | |
| ods_lookup_table | ods_status_str [] |
| ods_lookup_table* ods_lookup_by_id | ( | ods_lookup_table * | table, | |
| int | id | |||
| ) |
Look up item in table.
| [in] | table | table |
| [in] | id | identifier |
Definition at line 66 of file status.c.
References ods_struct_lookup_table::id, and ods_struct_lookup_table::name.
Referenced by ods_status2str().
| const char* ods_status2str | ( | ods_status | status | ) |
Look up a descriptive text by each status.
Definition at line 83 of file status.c.
References ods_struct_lookup_table::name, and ods_lookup_by_id().
Referenced by adbackup_read(), adfile_read(), engine_start(), engine_update_zones(), rrset_commit(), signconf_update(), tools_input(), zone_load_signconf(), and zonelist_update().
{
{ ODS_STATUS_OK, "All OK" },
{ ODS_STATUS_ASSERT_ERR, "Assertion error"},
{ ODS_STATUS_CFG_ERR, "Configuration error"},
{ ODS_STATUS_CHDIR_ERR, "Change directory failed"},
{ ODS_STATUS_CHROOT_ERR, "Change root failed"},
{ ODS_STATUS_CMDHANDLER_ERR, "Command handler error"},
{ ODS_STATUS_CONFLICT_ERR, "Conflict detected"},
{ ODS_STATUS_ERR, "General error"},
{ ODS_STATUS_FOPEN_ERR, "Unable to open file"},
{ ODS_STATUS_FORK_ERR, "fork() failed"},
{ ODS_STATUS_FREAD_ERR, "Unable to read file"},
{ ODS_STATUS_FWRITE_ERR, "Unable to write file"},
{ ODS_STATUS_HSM_ERR, "HSM error"},
{ ODS_STATUS_INSECURE, "Insecure"},
{ ODS_STATUS_MALLOC_ERR, "Memory allocation error"},
{ ODS_STATUS_PARSE_ERR, "Parse error"},
{ ODS_STATUS_PRIVDROP_ERR, "Unable to drop privileges"},
{ ODS_STATUS_RNG_ERR, "RelaxNG error"},
{ ODS_STATUS_SETSID_ERR, "setsid() failed"},
{ ODS_STATUS_UNCHANGED, "Status unchanged"},
{ ODS_STATUS_WRITE_PIDFILE_ERR, "Unable to write process id to pidfile"},
{ ODS_STATUS_XML_ERR, "XML error"},
{ 0, NULL }
}
Status.
1.7.1