result.c File Reference

#include <config.h>
#include <stddef.h>
#include <stdlib.h>
#include <isc/lib.h>
#include <isc/msgs.h>
#include <isc/mutex.h>
#include <isc/once.h>
#include <isc/resultclass.h>
#include <isc/util.h>

Go to the source code of this file.

Data Structures

struct  resulttable

Defines

#define ISC_RESULT_RESULTSET   2
#define ISC_RESULT_UNAVAILABLESET   3

Functions

static ISC_LIST (resulttable)
static void initialize_action (void)
static void initialize (void)
const char * isc_result_totext (isc_result_t result)
 Convert an isc_result_t into a string message describing the result.
isc_result_t isc_result_register (unsigned int base, unsigned int nresults, const char **text, isc_msgcat_t *msgcat, int set)

Variables

static const char * description [ISC_R_NRESULTS]
static isc_once_t once = ISC_ONCE_INIT


Detailed Description

Definition in file result.c.


Define Documentation

#define ISC_RESULT_RESULTSET   2

Definition at line 109 of file result.c.

Referenced by initialize_action().

#define ISC_RESULT_UNAVAILABLESET   3

Definition at line 110 of file result.c.

Referenced by isc_result_totext().


Function Documentation

static ISC_LIST ( resulttable   )  [static]

Definition at line 113 of file result.c.

References resulttable::base, ISC_LINK_INIT, ISC_LIST_APPEND, ISC_R_NOMEMORY, ISC_R_SUCCESS, ISC_RESULTCLASS_SIZE, resulttable::last, LOCK, resulttable::msgcat, REQUIRE, resulttable::set, resulttable::text, and UNLOCK.

static void initialize_action ( void   )  [static]

Definition at line 150 of file result.c.

References description, ISC_LIST_INIT, ISC_MSG_FAILED, isc_msgcat_get(), ISC_MSGSET_GENERAL, isc_mutex_init, ISC_R_NRESULTS, ISC_R_SUCCESS, ISC_RESULT_RESULTSET, ISC_RESULTCLASS_ISC, RUNTIME_CHECK, and UNEXPECTED_ERROR.

static void initialize ( void   )  [static]

Definition at line 167 of file result.c.

References initialize_action(), isc_lib_initmsgcat(), isc_once_do, ISC_R_SUCCESS, once, and RUNTIME_CHECK.

const char* isc_result_totext ( isc_result_t  result  ) 

Convert an isc_result_t into a string message describing the result.

Definition at line 173 of file result.c.

References resulttable::base, initialize(), ISC_LIST_HEAD, ISC_LIST_NEXT, isc_msgcat_get(), ISC_RESULT_UNAVAILABLESET, resulttable::last, LOCK, resulttable::msgcat, resulttable::set, resulttable::text, and UNLOCK.

Referenced by active_node(), add_cidr(), add_initial_keys(), add_listener(), assignwork(), ATF_TC_BODY(), authvalidated(), begin_cleaning(), bind9_check_key(), build_final_keylist(), byaddr_done(), category_fromconf(), cfg_gettoken(), channel_fromconf(), check_result(), check_trusted_key(), check_zoneconf(), cleannode(), client_accept(), client_newconn(), client_request(), client_senddone(), client_udprecv(), closeandrename(), cnamevalidated(), configure_forward(), configure_listener(), configure_view_dnsseckeys(), configure_view_nametable(), configure_zone_ssutable(), connect_done(), control_accept(), control_listen(), control_newconn(), control_recvmessage(), control_senddone(), create_managers(), createnode(), db_load_from_stream(), del_name(), delete_node(), directory_callback(), dlvvalidated(), dns_acache_setcleaninginterval(), dns_cache_detach(), dns_cache_setcleaninginterval(), dns_dnssec_findmatchingkeys(), dns_dnssec_findzonekeys2(), dns_dnssec_keylistfromrdataset(), dns_ecdb_create(), dns_journal_print(), dns_keytable_dump(), dns_master_dumpnode(), dns_ntatable_covered(), dns_ntatable_dump(), dns_resolver_logfetch(), dns_result_totext(), dns_rootns_create(), dns_rpz_find_ip(), dns_rpz_find_name(), dns_rpz_ready(), dns_sdlzregister(), dns_view_create(), dns_zone_setacache(), do_addzone(), do_modzone(), do_scan(), dsfetched(), dst_result_totext(), dstkey_fromconfig(), dsvalidated(), dump_rdataset(), emit(), evaluate_key(), expecttofindkey(), fatal(), fctx_create(), fctx_stoptimer(), fetch_callback_validator(), findnode(), findnodeintree(), flushandsync(), followup_lookup(), force_timeout(), freezezones(), generate_session_key(), get_addresses(), get_dispsocket(), get_rndckey(), get_soa_ttls(), getaddresses(), getoriginnode(), gettoken(), got_transfer_quota(), isc_httpdmgr_create(), ISC_LIST(), isc_log_doit(), isc_log_open(), isccc_result_totext(), journal_file_create(), journal_fsync(), journal_open(), journal_read(), journal_seek(), journal_write(), keyvalidated(), listener_bind(), listener_startclients(), load_configuration(), load_header(), loadconfig(), loadctx_destroy(), loadexplicitkeys(), loadkey(), loadnode(), loadset(), loadzone(), loadzonekeys(), log_invalid(), log_queryerror(), lookup_done(), main(), make_log_buf(), maybe_free(), newversion(), next_master(), next_server(), ns_add_reserved_dispatch(), ns_client_next(), ns_client_settimeout(), ns_controls_configure(), ns_interface_accepttcp(), ns_interface_create(), ns_interface_listenudp(), ns_lwdclient_recv(), ns_lwdclient_stateidle(), ns_server_flushcache(), ns_server_flushnode(), ns_server_freeze(), ns_server_loadnta(), ns_server_nta(), ns_server_saventa(), ns_server_sync(), ns_statschannels_configure(), ns_xfr_start(), nsec3ify(), nsecify(), openfile_map(), openfile_raw(), opentmp(), parse_args(), parse_netprefix(), parse_rdata(), parse_uint_helper(), parser_openfile(), pk11_result_totext(), previous_closest_nsec(), process_dhtkey(), process_gsstkey(), query_find(), query_recurse(), queue_xfrin(), reconfig(), record_nsec3(), recv_done(), register_keys(), reload(), respond(), resquery_response(), restart_find(), rndc_connected(), rndc_recvdone(), rndc_recvnonce(), rndc_senddone(), roll_log(), rpz_log_fail(), set_limit(), set_nameserver(), setup(), setup_entropy(), setup_file_key(), setup_keyfile(), setup_keystr(), setup_locals(), setup_lookup(), setup_system(), setup_text_key(), signapex(), signname(), signset(), signwithkey(), strtotime(), tcp_length_done(), tcp_recv(), udp_recv(), update_action(), update_addordelete(), update_completed(), update_listener(), validate(), verify(), verifynode(), verifyzone(), wakeup_socket(), warnifallksk(), xfrin_fail(), xfrin_recv_done(), xfrout_fail(), zmgr_resume_xfrs(), zone_attachdb(), zone_load(), and zone_settimer().

isc_result_t isc_result_register ( unsigned int  base,
unsigned int  nresults,
const char **  text,
isc_msgcat_t msgcat,
int  set 
)

Definition at line 209 of file result.c.

References initialize().

Referenced by initialize_action().


Variable Documentation

const char* description[ISC_R_NRESULTS] [static]

Definition at line 43 of file result.c.

Referenced by initialize_action().

isc_once_t once = ISC_ONCE_INIT [static]

Definition at line 112 of file result.c.


Generated on Tue Apr 28 17:41:18 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha