From af0fce400bfa79289aae239c10ae7f4fb2be8fa6 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Wed, 30 Dec 1998 20:17:41 +0000 Subject: [PATCH] add new codes --- lib/isc/include/isc/result.h | 7 +++++-- lib/isc/result.c | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/isc/include/isc/result.h b/lib/isc/include/isc/result.h index fa22965831..642fdf777b 100644 --- a/lib/isc/include/isc/result.h +++ b/lib/isc/include/isc/result.h @@ -39,12 +39,15 @@ typedef unsigned int isc_result_t; #define ISC_R_TASKSHUTDOWN 16 /* task was shut down */ #define ISC_R_LOCKBUSY 17 #define ISC_R_EXISTS 18 -#define ISC_R_TOOSMALL 19 /* buffer is too small */ +#define ISC_R_NOSPACE 19 /* ran out of space */ #define ISC_R_CANCELED 20 #define ISC_R_TASKNOSEND 21 #define ISC_R_TASKSHUTTINGDOWN 22 /* task is shutting down */ #define ISC_R_NOTFOUND 23 -#define ISC_R_LASTENTRY 23 /* last entry in the list */ +#define ISC_R_UNEXPECTEDEND 24 /* unexpected end of input */ +#define ISC_R_FAILURE 25 /* generic failure */ +#define ISC_R_IOERROR 26 +#define ISC_R_LASTENTRY 26 /* last entry in the list */ #define ISC_R_UNEXPECTED 0xFFFFFFFFL diff --git a/lib/isc/result.c b/lib/isc/result.c index b529ba9f60..426192f8cb 100644 --- a/lib/isc/result.c +++ b/lib/isc/result.c @@ -39,11 +39,14 @@ static char *text_table[ISC_R_LASTENTRY + 1] = { "task is shut down", /* 16 */ "lock busy", /* 17 */ "already exists", /* 18 */ - "buffer too small", /* 19 */ + "ran out of space", /* 19 */ "operation canceled", /* 20 */ "sending events is not allowed", /* 21 */ "task is shutting down", /* 22 */ - "Not found", /* 23 */ + "not found", /* 23 */ + "unexpected end of input", /* 24 */ + "failure", /* 25 */ + "I/O error", /* 26 */ }; char *