Functions | Variables

/build/buildd-opendnssec_1.3.2-1~bpo60+1-kfreebsd-i386-KuwQV_/opendnssec-1.3.2/signer/src/shared/status.c File Reference

#include "config.h"
#include "shared/status.h"
#include <stdlib.h>
Include dependency graph for status.c:

Go to the source code of this file.

Functions

ods_lookup_tableods_lookup_by_id (ods_lookup_table *table, int id)
const char * ods_status2str (ods_status status)

Variables

ods_lookup_table ods_status_str []

Function Documentation

ods_lookup_table* ods_lookup_by_id ( ods_lookup_table table,
int  id 
)

Look up item in table.

Parameters:
[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  ) 

Variable Documentation

Initial value:
 {
    { 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.

Definition at line 39 of file status.c.