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; ...@@ -18,7 +18,9 @@ typedef unsigned int isc_result_t;
#define ISC_R_HOSTDOWN 11 #define ISC_R_HOSTDOWN 11
#define ISC_R_CONNREFUSED 12 #define ISC_R_CONNREFUSED 12
#define ISC_R_NORESOURCES 13 /* not enough resources */ #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 #define ISC_R_UNEXPECTED 0xFFFFFFFFL
......
...@@ -2,20 +2,22 @@ ...@@ -2,20 +2,22 @@
#include <isc/result.h> #include <isc/result.h>
static char *text_table[ISC_R_LAST_ENTRY + 1] = { static char *text_table[ISC_R_LAST_ENTRY + 1] = {
"success", "success", /* 0 */
"out of memory", "out of memory", /* 1 */
"timed out", "timed out", /* 2 */
"no available threads", "no available threads", /* 3 */
"address not available", "address not available", /* 4 */
"address in use", "address in use", /* 5 */
"permission denied", "permission denied", /* 6 */
"no pending connections", "no pending connections", /* 7 */
"network unreachable", "network unreachable", /* 8 */
"host unreachable", "host unreachable", /* 9 */
"network down", "network down", /* 10 */
"host down", "host down", /* 11 */
"connection refused", "connection refused", /* 12 */
"not enough free resources", "not enough free resources", /* 13 */
"end of file", /* 14 */
"socket already bound", /* 15 */
}; };
char * 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