From 903c1c35fcec1aa32b6cea9cbdf0a2f055abed2d Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Wed, 11 Nov 1998 19:02:52 +0000 Subject: [PATCH] add ISC_R_LOCKBUSY --- lib/isc/include/isc/result.h | 3 ++- lib/isc/result.c | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/isc/include/isc/result.h b/lib/isc/include/isc/result.h index 941c04ebf7..be4fbefdaa 100644 --- a/lib/isc/include/isc/result.h +++ b/lib/isc/include/isc/result.h @@ -21,7 +21,8 @@ typedef unsigned int isc_result_t; #define ISC_R_EOF 14 /* end of file */ #define ISC_R_BOUND 15 /* already bound */ #define ISC_R_TASKSHUTDOWN 16 /* task was shut down */ -#define ISC_R_LAST_ENTRY 16 /* last entry in the list */ +#define ISC_R_LOCKBUSY 17 +#define ISC_R_LASTENTRY 17 /* last entry in the list */ #define ISC_R_UNEXPECTED 0xFFFFFFFFL diff --git a/lib/isc/result.c b/lib/isc/result.c index 2d0e69c77e..4ce9f871e8 100644 --- a/lib/isc/result.c +++ b/lib/isc/result.c @@ -1,7 +1,7 @@ #include -static char *text_table[ISC_R_LAST_ENTRY + 1] = { +static char *text_table[ISC_R_LASTENTRY + 1] = { "success", /* 0 */ "out of memory", /* 1 */ "timed out", /* 2 */ @@ -19,13 +19,14 @@ static char *text_table[ISC_R_LAST_ENTRY + 1] = { "end of file", /* 14 */ "socket already bound", /* 15 */ "task was shut down", /* 16 */ + "lock busy", /* 17 */ }; char * isc_result_totext(isc_result_t result) { if (result == ISC_R_UNEXPECTED) return ("unexpected error"); - if (result > ISC_R_LAST_ENTRY) + if (result > ISC_R_LASTENTRY) return ("unknown result code"); return (text_table[result]); }