mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
define more return codes
This commit is contained in:
@@ -18,7 +18,9 @@ typedef unsigned int isc_result_t;
|
||||
#define ISC_R_HOSTDOWN 11
|
||||
#define ISC_R_CONNREFUSED 12
|
||||
#define ISC_R_NORESOURCES 13 /* not enough resources */
|
||||
#define ISC_R_LAST_ENTRY 13 /* last entry in the file */
|
||||
#define ISC_R_EOF 14 /* end of file */
|
||||
#define ISC_R_BOUND 15 /* already bound */
|
||||
#define ISC_R_LAST_ENTRY 15 /* last entry in the file */
|
||||
|
||||
#define ISC_R_UNEXPECTED 0xFFFFFFFFL
|
||||
|
||||
|
@@ -2,20 +2,22 @@
|
||||
#include <isc/result.h>
|
||||
|
||||
static char *text_table[ISC_R_LAST_ENTRY + 1] = {
|
||||
"success",
|
||||
"out of memory",
|
||||
"timed out",
|
||||
"no available threads",
|
||||
"address not available",
|
||||
"address in use",
|
||||
"permission denied",
|
||||
"no pending connections",
|
||||
"network unreachable",
|
||||
"host unreachable",
|
||||
"network down",
|
||||
"host down",
|
||||
"connection refused",
|
||||
"not enough free resources",
|
||||
"success", /* 0 */
|
||||
"out of memory", /* 1 */
|
||||
"timed out", /* 2 */
|
||||
"no available threads", /* 3 */
|
||||
"address not available", /* 4 */
|
||||
"address in use", /* 5 */
|
||||
"permission denied", /* 6 */
|
||||
"no pending connections", /* 7 */
|
||||
"network unreachable", /* 8 */
|
||||
"host unreachable", /* 9 */
|
||||
"network down", /* 10 */
|
||||
"host down", /* 11 */
|
||||
"connection refused", /* 12 */
|
||||
"not enough free resources", /* 13 */
|
||||
"end of file", /* 14 */
|
||||
"socket already bound", /* 15 */
|
||||
};
|
||||
|
||||
char *
|
||||
|
Reference in New Issue
Block a user