result.h revision b2df2dafcd42e0ffefc9a9a47d72afcb551a9c2b
1633838b8255282d10af15c5c84cee5a51466712Bob Halley/*
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * Copyright (C) 1998 Internet Software Consortium.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley *
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * Permission to use, copy, modify, and distribute this software for any
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * purpose with or without fee is hereby granted, provided that the above
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * copyright notice and this permission notice appear in all copies.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley *
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * SOFTWARE.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley */
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley#ifndef ISC_RESULT_H
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley#define ISC_RESULT_H 1
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley
5f74ac33a07148f2f28b26870c5beccb778b4bd3Bob Halleytypedef unsigned int isc_result_t;
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley#define ISC_R_SUCCESS 0
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley#define ISC_R_NOMEMORY 1
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley#define ISC_R_TIMEDOUT 2
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley#define ISC_R_NOTHREADS 3
3cddfdd29969046e598e9465c72936ccd30df233Bob Halley#define ISC_R_ADDRNOTAVAIL 4
3cddfdd29969046e598e9465c72936ccd30df233Bob Halley#define ISC_R_ADDRINUSE 5
3cddfdd29969046e598e9465c72936ccd30df233Bob Halley#define ISC_R_NOPERM 6
3cddfdd29969046e598e9465c72936ccd30df233Bob Halley#define ISC_R_NOCONN 7
3cddfdd29969046e598e9465c72936ccd30df233Bob Halley#define ISC_R_NETUNREACH 8
3cddfdd29969046e598e9465c72936ccd30df233Bob Halley#define ISC_R_HOSTUNREACH 9
3cddfdd29969046e598e9465c72936ccd30df233Bob Halley#define ISC_R_NETDOWN 10
3cddfdd29969046e598e9465c72936ccd30df233Bob Halley#define ISC_R_HOSTDOWN 11
3cddfdd29969046e598e9465c72936ccd30df233Bob Halley#define ISC_R_CONNREFUSED 12
35921f41cfcbde6c5bdcb54abd3d5e0ed2256205Michael Graff#define ISC_R_NORESOURCES 13 /* not enough resources */
f02c1d9431a7bad59ef2d40a341fa2f68a8a7550Michael Graff#define ISC_R_EOF 14 /* end of file */
f02c1d9431a7bad59ef2d40a341fa2f68a8a7550Michael Graff#define ISC_R_BOUND 15 /* already bound */
59b2e9c36162bf5868fb98082f3e131b1a85ca04Michael Graff#define ISC_R_TASKSHUTDOWN 16 /* task was shut down */
903c1c35fcec1aa32b6cea9cbdf0a2f055abed2dBob Halley#define ISC_R_LOCKBUSY 17
6a632f69681d2af06026345f92f8ee879ce18e08Bob Halley#define ISC_R_EXISTS 18
a0084eaa9f134e32d456537c67d2db7516aba867Michael Graff#define ISC_R_TOOSMALL 19 /* buffer is too small */
a0084eaa9f134e32d456537c67d2db7516aba867Michael Graff#define ISC_R_CANCELED 20
3ee2a218d778588094889b1cfb40dd32e9ce02c4Bob Halley#define ISC_R_TASKNOSEND 21
3ee2a218d778588094889b1cfb40dd32e9ce02c4Bob Halley#define ISC_R_TASKSHUTTINGDOWN 22 /* task is shutting down */
b2df2dafcd42e0ffefc9a9a47d72afcb551a9c2bBob Halley#define ISC_R_NOTFOUND 23
b2df2dafcd42e0ffefc9a9a47d72afcb551a9c2bBob Halley#define ISC_R_LASTENTRY 23 /* last entry in the list */
35921f41cfcbde6c5bdcb54abd3d5e0ed2256205Michael Graff
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley#define ISC_R_UNEXPECTED 0xFFFFFFFFL
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley
3cddfdd29969046e598e9465c72936ccd30df233Bob Halleychar * isc_result_totext(isc_result_t);
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley
fda0ab6a96a7edb1acbde0c77ead0542979b0f24Bob Halley#endif /* ISC_RESULT_H */