mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 07:22:08 -04:00
add ISC_R_LOCKBUSY
This commit is contained in:
parent
b10b0bdf3f
commit
903c1c35fc
2 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
#include <isc/result.h>
|
||||
|
||||
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]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue