"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.17.5/lib/isc/include/isc/result.h" (4 Sep 2020, 5458 Bytes) of package /linux/misc/dns/bind9/9.17.5/bind-9.17.5.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "result.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
    3  *
    4  * This Source Code Form is subject to the terms of the Mozilla Public
    5  * License, v. 2.0. If a copy of the MPL was not distributed with this
    6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
    7  *
    8  * See the COPYRIGHT file distributed with this work for additional
    9  * information regarding copyright ownership.
   10  */
   11 
   12 #ifndef ISC_RESULT_H
   13 #define ISC_RESULT_H 1
   14 
   15 /*! \file isc/result.h */
   16 
   17 #include <isc/lang.h>
   18 #include <isc/types.h>
   19 
   20 #define ISC_R_SUCCESS          0        /*%< success */
   21 #define ISC_R_NOMEMORY         1        /*%< out of memory */
   22 #define ISC_R_TIMEDOUT         2        /*%< timed out */
   23 #define ISC_R_NOTHREADS        3        /*%< no available threads */
   24 #define ISC_R_ADDRNOTAVAIL     4        /*%< address not available */
   25 #define ISC_R_ADDRINUSE        5        /*%< address in use */
   26 #define ISC_R_NOPERM           6        /*%< permission denied */
   27 #define ISC_R_NOCONN           7        /*%< no pending connections */
   28 #define ISC_R_NETUNREACH       8        /*%< network unreachable */
   29 #define ISC_R_HOSTUNREACH      9        /*%< host unreachable */
   30 #define ISC_R_NETDOWN          10       /*%< network down */
   31 #define ISC_R_HOSTDOWN         11       /*%< host down */
   32 #define ISC_R_CONNREFUSED      12       /*%< connection refused */
   33 #define ISC_R_NORESOURCES      13       /*%< not enough free resources */
   34 #define ISC_R_EOF          14       /*%< end of file */
   35 #define ISC_R_BOUND        15       /*%< socket already bound */
   36 #define ISC_R_RELOAD           16       /*%< reload */
   37 #define ISC_R_SUSPEND          ISC_R_RELOAD /*%< alias of 'reload' */
   38 #define ISC_R_LOCKBUSY         17       /*%< lock busy */
   39 #define ISC_R_EXISTS           18       /*%< already exists */
   40 #define ISC_R_NOSPACE          19       /*%< ran out of space */
   41 #define ISC_R_CANCELED         20       /*%< operation canceled */
   42 #define ISC_R_NOTBOUND         21       /*%< socket is not bound */
   43 #define ISC_R_SHUTTINGDOWN     22       /*%< shutting down */
   44 #define ISC_R_NOTFOUND         23       /*%< not found */
   45 #define ISC_R_UNEXPECTEDEND    24       /*%< unexpected end of input */
   46 #define ISC_R_FAILURE          25       /*%< generic failure */
   47 #define ISC_R_IOERROR          26       /*%< I/O error */
   48 #define ISC_R_NOTIMPLEMENTED   27       /*%< not implemented */
   49 #define ISC_R_UNBALANCED       28       /*%< unbalanced parentheses */
   50 #define ISC_R_NOMORE           29       /*%< no more */
   51 #define ISC_R_INVALIDFILE      30       /*%< invalid file */
   52 #define ISC_R_BADBASE64        31       /*%< bad base64 encoding */
   53 #define ISC_R_UNEXPECTEDTOKEN  32       /*%< unexpected token */
   54 #define ISC_R_QUOTA        33       /*%< quota reached */
   55 #define ISC_R_UNEXPECTED       34       /*%< unexpected error */
   56 #define ISC_R_ALREADYRUNNING   35       /*%< already running */
   57 #define ISC_R_IGNORE           36       /*%< ignore */
   58 #define ISC_R_MASKNONCONTIG    37       /*%< addr mask not contiguous */
   59 #define ISC_R_FILENOTFOUND     38       /*%< file not found */
   60 #define ISC_R_FILEEXISTS       39       /*%< file already exists */
   61 #define ISC_R_NOTCONNECTED     40       /*%< socket is not connected */
   62 #define ISC_R_RANGE        41       /*%< out of range */
   63 #define ISC_R_NOENTROPY        42       /*%< out of entropy */
   64 #define ISC_R_MULTICAST        43       /*%< invalid use of multicast */
   65 #define ISC_R_NOTFILE          44       /*%< not a file */
   66 #define ISC_R_NOTDIRECTORY     45       /*%< not a directory */
   67 #define ISC_R_QUEUEFULL        46       /*%< queue is full */
   68 #define ISC_R_FAMILYMISMATCH   47       /*%< address family mismatch */
   69 #define ISC_R_FAMILYNOSUPPORT  48       /*%< AF not supported */
   70 #define ISC_R_BADHEX           49       /*%< bad hex encoding */
   71 #define ISC_R_TOOMANYOPENFILES 50       /*%< too many open files */
   72 #define ISC_R_NOTBLOCKING      51       /*%< not blocking */
   73 #define ISC_R_UNBALANCEDQUOTES 52       /*%< unbalanced quotes */
   74 #define ISC_R_INPROGRESS       53       /*%< operation in progress */
   75 #define ISC_R_CONNECTIONRESET  54       /*%< connection reset */
   76 #define ISC_R_SOFTQUOTA        55       /*%< soft quota reached */
   77 #define ISC_R_BADNUMBER        56       /*%< not a valid number */
   78 #define ISC_R_DISABLED         57       /*%< disabled */
   79 #define ISC_R_MAXSIZE          58       /*%< max size */
   80 #define ISC_R_BADADDRESSFORM   59       /*%< invalid address format */
   81 #define ISC_R_BADBASE32        60       /*%< bad base32 encoding */
   82 #define ISC_R_UNSET        61       /*%< unset */
   83 #define ISC_R_MULTIPLE         62       /*%< multiple */
   84 #define ISC_R_WOULDBLOCK       63       /*%< would block */
   85 #define ISC_R_COMPLETE         64       /*%< complete */
   86 #define ISC_R_CRYPTOFAILURE    65       /*%< cryptography library failure */
   87 #define ISC_R_DISCQUOTA        66       /*%< disc quota */
   88 #define ISC_R_DISCFULL         67       /*%< disc full */
   89 #define ISC_R_DEFAULT          68       /*%< default */
   90 #define ISC_R_IPV4PREFIX       69       /*%< IPv4 prefix */
   91 
   92 /*% Not a result code: the number of results. */
   93 #define ISC_R_NRESULTS 70
   94 
   95 ISC_LANG_BEGINDECLS
   96 
   97 const char *isc_result_totext(isc_result_t);
   98 /*%<
   99  * Convert an isc_result_t into a string message describing the result.
  100  */
  101 
  102 const char *isc_result_toid(isc_result_t);
  103 /*%<
  104  * Convert an isc_result_t into a string identifier such as
  105  * "ISC_R_SUCCESS".
  106  */
  107 
  108 isc_result_t
  109 isc_result_register(unsigned int base, unsigned int nresults, const char **text,
  110             int set);
  111 
  112 isc_result_t
  113 isc_result_registerids(unsigned int base, unsigned int nresults,
  114                const char **ids, int set);
  115 
  116 ISC_LANG_ENDDECLS
  117 
  118 #endif /* ISC_RESULT_H */