#include <isc/lang.h>
#include <isc/platform.h>
#include <isc/formatcheck.h>
Go to the source code of this file.
Defines | |
#define | RNDC_UTIL_H 1 |
#define | NS_CONTROL_PORT 953 |
#define | DO(name, function) |
Functions | |
ISC_LANG_BEGINDECLS void | notify (const char *fmt,...) ISC_FORMAT_PRINTF(1 |
ISC_LANG_BEGINDECLS void ISC_PLATFORM_NORETURN_PRE void | fatal (const char *format,...) ISC_FORMAT_PRINTF(1 |
Variables | |
ISC_LANG_BEGINDECLS void ISC_PLATFORM_NORETURN_PRE void | ISC_PLATFORM_NORETURN_POST |
Definition in file util.h.
#define DO | ( | name, | |||
function | ) |
Value:
do { \ result = function; \ if (result != ISC_R_SUCCESS) \ fatal("%s: %s", name, isc_result_totext(result)); \ else \ notify("%s", name); \ } while (0)
Definition at line 33 of file util.h.
Referenced by main(), parse_config(), rndc_connected(), rndc_recvdone(), rndc_recvnonce(), and rndc_startconnect().
ISC_LANG_BEGINDECLS void notify | ( | const char * | fmt, | |
... | ||||
) |
ISC_LANG_BEGINDECLS void ISC_PLATFORM_NORETURN_PRE void fatal | ( | const char * | format, | |
... | ||||
) |
ISC_LANG_BEGINDECLS void ISC_PLATFORM_NORETURN_PRE void ISC_PLATFORM_NORETURN_POST |