result.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2004-2009, 2012, 2014  Internet Systems Consortium, Inc. ("ISC")
00003  * Copyright (C) 1998-2001, 2003  Internet Software Consortium.
00004  *
00005  * Permission to use, copy, modify, and/or distribute this software for any
00006  * purpose with or without fee is hereby granted, provided that the above
00007  * copyright notice and this permission notice appear in all copies.
00008  *
00009  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
00010  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00011  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
00012  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00013  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00014  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00015  * PERFORMANCE OF THIS SOFTWARE.
00016  */
00017 
00018 /* $Id$ */
00019 
00020 #ifndef ISC_RESULT_H
00021 #define ISC_RESULT_H 1
00022 
00023 /*! \file isc/result.h */
00024 
00025 #include <isc/lang.h>
00026 #include <isc/types.h>
00027 
00028 #define ISC_R_SUCCESS                   0       /*%< success */
00029 #define ISC_R_NOMEMORY                  1       /*%< out of memory */
00030 #define ISC_R_TIMEDOUT                  2       /*%< timed out */
00031 #define ISC_R_NOTHREADS                 3       /*%< no available threads */
00032 #define ISC_R_ADDRNOTAVAIL              4       /*%< address not available */
00033 #define ISC_R_ADDRINUSE                 5       /*%< address in use */
00034 #define ISC_R_NOPERM                    6       /*%< permission denied */
00035 #define ISC_R_NOCONN                    7       /*%< no pending connections */
00036 #define ISC_R_NETUNREACH                8       /*%< network unreachable */
00037 #define ISC_R_HOSTUNREACH               9       /*%< host unreachable */
00038 #define ISC_R_NETDOWN                   10      /*%< network down */
00039 #define ISC_R_HOSTDOWN                  11      /*%< host down */
00040 #define ISC_R_CONNREFUSED               12      /*%< connection refused */
00041 #define ISC_R_NORESOURCES               13      /*%< not enough free resources */
00042 #define ISC_R_EOF                       14      /*%< end of file */
00043 #define ISC_R_BOUND                     15      /*%< socket already bound */
00044 #define ISC_R_RELOAD                    16      /*%< reload */
00045 #define ISC_R_SUSPEND         ISC_R_RELOAD      /*%< alias of 'reload' */
00046 #define ISC_R_LOCKBUSY                  17      /*%< lock busy */
00047 #define ISC_R_EXISTS                    18      /*%< already exists */
00048 #define ISC_R_NOSPACE                   19      /*%< ran out of space */
00049 #define ISC_R_CANCELED                  20      /*%< operation canceled */
00050 #define ISC_R_NOTBOUND                  21      /*%< socket is not bound */
00051 #define ISC_R_SHUTTINGDOWN              22      /*%< shutting down */
00052 #define ISC_R_NOTFOUND                  23      /*%< not found */
00053 #define ISC_R_UNEXPECTEDEND             24      /*%< unexpected end of input */
00054 #define ISC_R_FAILURE                   25      /*%< generic failure */
00055 #define ISC_R_IOERROR                   26      /*%< I/O error */
00056 #define ISC_R_NOTIMPLEMENTED            27      /*%< not implemented */
00057 #define ISC_R_UNBALANCED                28      /*%< unbalanced parentheses */
00058 #define ISC_R_NOMORE                    29      /*%< no more */
00059 #define ISC_R_INVALIDFILE               30      /*%< invalid file */
00060 #define ISC_R_BADBASE64                 31      /*%< bad base64 encoding */
00061 #define ISC_R_UNEXPECTEDTOKEN           32      /*%< unexpected token */
00062 #define ISC_R_QUOTA                     33      /*%< quota reached */
00063 #define ISC_R_UNEXPECTED                34      /*%< unexpected error */
00064 #define ISC_R_ALREADYRUNNING            35      /*%< already running */
00065 #define ISC_R_IGNORE                    36      /*%< ignore */
00066 #define ISC_R_MASKNONCONTIG             37      /*%< addr mask not contiguous */
00067 #define ISC_R_FILENOTFOUND              38      /*%< file not found */
00068 #define ISC_R_FILEEXISTS                39      /*%< file already exists */
00069 #define ISC_R_NOTCONNECTED              40      /*%< socket is not connected */
00070 #define ISC_R_RANGE                     41      /*%< out of range */
00071 #define ISC_R_NOENTROPY                 42      /*%< out of entropy */
00072 #define ISC_R_MULTICAST                 43      /*%< invalid use of multicast */
00073 #define ISC_R_NOTFILE                   44      /*%< not a file */
00074 #define ISC_R_NOTDIRECTORY              45      /*%< not a directory */
00075 #define ISC_R_QUEUEFULL                 46      /*%< queue is full */
00076 #define ISC_R_FAMILYMISMATCH            47      /*%< address family mismatch */
00077 #define ISC_R_FAMILYNOSUPPORT           48      /*%< AF not supported */
00078 #define ISC_R_BADHEX                    49      /*%< bad hex encoding */
00079 #define ISC_R_TOOMANYOPENFILES          50      /*%< too many open files */
00080 #define ISC_R_NOTBLOCKING               51      /*%< not blocking */
00081 #define ISC_R_UNBALANCEDQUOTES          52      /*%< unbalanced quotes */
00082 #define ISC_R_INPROGRESS                53      /*%< operation in progress */
00083 #define ISC_R_CONNECTIONRESET           54      /*%< connection reset */
00084 #define ISC_R_SOFTQUOTA                 55      /*%< soft quota reached */
00085 #define ISC_R_BADNUMBER                 56      /*%< not a valid number */
00086 #define ISC_R_DISABLED                  57      /*%< disabled */
00087 #define ISC_R_MAXSIZE                   58      /*%< max size */
00088 #define ISC_R_BADADDRESSFORM            59      /*%< invalid address format */
00089 #define ISC_R_BADBASE32                 60      /*%< bad base32 encoding */
00090 #define ISC_R_UNSET                     61      /*%< unset */
00091 #define ISC_R_MULTIPLE                  62      /*%< multiple */
00092 
00093 /*% Not a result code: the number of results. */
00094 #define ISC_R_NRESULTS                  63
00095 
00096 ISC_LANG_BEGINDECLS
00097 
00098 const char *
00099 isc_result_totext(isc_result_t);
00100 /*%<
00101  * Convert an isc_result_t into a string message describing the result.
00102  */
00103 
00104 isc_result_t
00105 isc_result_register(unsigned int base, unsigned int nresults,
00106                     const char **text, isc_msgcat_t *msgcat, int set);
00107 
00108 ISC_LANG_ENDDECLS
00109 
00110 #endif /* ISC_RESULT_H */

Generated on Tue Apr 28 17:41:04 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha