From f02c1d9431a7bad59ef2d40a341fa2f68a8a7550 Mon Sep 17 00:00:00 2001 From: Michael Graff Date: Fri, 6 Nov 1998 01:44:19 +0000 Subject: [PATCH] define more return codes --- lib/isc/include/isc/result.h | 4 +++- lib/isc/result.c | 30 ++++++++++++++++-------------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/lib/isc/include/isc/result.h b/lib/isc/include/isc/result.h index 48ecd9d10e..e655b3ebcd 100644 --- a/lib/isc/include/isc/result.h +++ b/lib/isc/include/isc/result.h @@ -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 diff --git a/lib/isc/result.c b/lib/isc/result.c index d048dfa7f0..85f7e382c1 100644 --- a/lib/isc/result.c +++ b/lib/isc/result.c @@ -2,20 +2,22 @@ #include 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 *