Commit f02c1d94 authored by Michael Graff's avatar Michael Graff
Browse files

define more return codes

parent 5741be0b
......@@ -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 *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment