util.h File Reference

#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


Detailed Description

Definition in file util.h.


Define Documentation

#define RNDC_UTIL_H   1

Definition at line 21 of file util.h.

#define NS_CONTROL_PORT   953

Definition at line 30 of 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().


Function Documentation

ISC_LANG_BEGINDECLS void notify ( const char *  fmt,
  ... 
)

ISC_LANG_BEGINDECLS void ISC_PLATFORM_NORETURN_PRE void fatal ( const char *  format,
  ... 
)


Variable Documentation

ISC_LANG_BEGINDECLS void ISC_PLATFORM_NORETURN_PRE void ISC_PLATFORM_NORETURN_POST

Definition at line 49 of file util.h.


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