2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Merge branch '719-make-isc_result-static-CHANGES' into 'main'

Update isc_result_t developer documentation and CHANGES

Closes #719

See merge request isc-projects/bind9!5475
This commit is contained in:
Ondřej Surý
2021-10-07 06:48:02 +00:00
2 changed files with 9 additions and 3 deletions

View File

@@ -1,3 +1,10 @@
5735. [cleanup] The result codes which BIND 9 uses internally are now
all defined as a single list of enum values rather than
as multiple sets of integers scattered around shared
libraries. This prevents the need for locking in some
functions operating on result codes, and makes result
codes more debugger-friendly. [GL #719]
5734. [bug] Fix "dig" aborting with error in some cases
like when doing zone transfers. [GL #2884]

View File

@@ -392,12 +392,11 @@ A result code can be converted to a human-readable error message by
calling `isc_result_totext(result)`.
Many result codes have been defined and can be found in the source tree
in header files called `result.h` (for example, the result codes defined
for the ISC library are in `lib/isc/include/isc/result.h`.
in `lib/isc/include/isc/result.h`.
ISC library result codes (many of which are generically useful elsewhere)
begin with `ISC_R`: examples include `ISC_R_SUCCESS`, `ISC_R_FAILURE`,
`ISC_R_NOMEMORY`, etc.
`ISC_R_NOMEMORY`, etc.
DNS library result codes begin with `DNS_R`: `DNS_R_SERVFAIL`, `DNS_R_NXRRSET`,
etc). Other sets of result codes are defined for crypto functions (`DST_R`