chiark
/
gitweb
/
~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Regression test scripts set EF_DISABLE_BANNER (for Electric Fence).
[adns]
/
src
/
adns.h
diff --git
a/src/adns.h
b/src/adns.h
index ad3e224cac60a0c8dae6941f81a7f11f21db3ae6..296b9dba9695ccf09d8dd360e4cfa97acf7ab64b 100644
(file)
--- a/
src/adns.h
+++ b/
src/adns.h
@@
-51,7
+51,7
@@
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*
- * $Id: adns.h,v 1.6
6 1999/10/12 19:14:49
ian Exp $
+ * $Id: adns.h,v 1.6
8 1999/10/13 00:23:01
ian Exp $
*/
#ifndef ADNS_H_INCLUDED
*/
#ifndef ADNS_H_INCLUDED
@@
-231,7
+231,9
@@
typedef enum {
/* permanent errors */
adns_s_nxdomain,
/* permanent errors */
adns_s_nxdomain,
- adns_s_nodata
+ adns_s_nodata,
+
+ adns_s_max_permfail= 499
} adns_status;
} adns_status;
@@
-320,9
+322,9
@@
typedef struct {
* values.
*
* For _wait and _check failures are reported in the answer
* values.
*
* For _wait and _check failures are reported in the answer
- * structure, and only 0, ESRCH or (for _check) E
WOULDBLOCK
is
+ * structure, and only 0, ESRCH or (for _check) E
AGAIN
is
* returned: if no (appropriate) requests are done adns_check returns
* returned: if no (appropriate) requests are done adns_check returns
- * E
WOULDBLOCK
; if no (appropriate) requests are outstanding both
+ * E
AGAIN
; if no (appropriate) requests are outstanding both
* adns_query and adns_wait return ESRCH.
*
* Additionally, _wait can return EINTR if you set adns_if_eintr.
* adns_query and adns_wait return ESRCH.
*
* Additionally, _wait can return EINTR if you set adns_if_eintr.
@@
-533,7
+535,7
@@
void adns_checkconsistency(adns_state ads, adns_query qu);
* adns_submit 2
* adns_submit 3
* adns_wait 1
* adns_submit 2
* adns_submit 3
* adns_wait 1
- * adns_check 3 -> E
WOULDBLOCK
+ * adns_check 3 -> E
AGAIN
* adns_wait 2
* adns_wait 3
* ....
* adns_wait 2
* adns_wait 3
* ....
@@
-796,9
+798,12
@@
adns_status adns_rr_info(adns_rrtype type,
const char *adns_strerror(adns_status st);
const char *adns_errabbrev(adns_status st);
const char *adns_strerror(adns_status st);
const char *adns_errabbrev(adns_status st);
+const char *adns_errtypeabbrev(adns_status st);
/* Like strerror but for adns_status values. adns_errabbrev returns
* the abbreviation of the error - eg, for adns_s_timeout it returns
/* Like strerror but for adns_status values. adns_errabbrev returns
* the abbreviation of the error - eg, for adns_s_timeout it returns
- * "timeout". You MUST NOT call these functions with status values
+ * "timeout". adns_errtypeabbrev returns the abbreviation of the
+ * error class: ie, for values up to adns_s_max_XXX it will return the
+ * string XXX. You MUST NOT call these functions with status values
* not returned by the same adns library.
*/
* not returned by the same adns library.
*/