2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

210 Commits

Author SHA1 Message Date
Mark Andrews
cf573ce6fb More ISC_LINK_INIT fixes. 2000-10-20 13:29:37 +00:00
Mark Andrews
5e589b5356 Uninitalised link fixes, batch 1. 2000-10-20 02:21:58 +00:00
Mark Andrews
b55c30f2de 525. [func] New arguement 'exact' for dns_db_subtractrdataset(),
and dns_rdataslab_subtract() requesting that the RR's
                        must exist prior to deletion.  DNS_R_NOTEXACT is
                        returned if the condition is not met.
2000-10-18 23:53:31 +00:00
David Lawrence
40f53fa8d9 Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
own CVS tree will help minimize CVS conflicts.  Maybe not.
Blame Graff for getting me to trim all trailing whitespace.
2000-08-01 01:33:37 +00:00
David Lawrence
15a4474541 word wrap copyright notice at column 70 2000-07-27 09:55:03 +00:00
David Lawrence
9c3531d72a add RCS id string 2000-06-22 22:00:42 +00:00
David Lawrence
29953187b6 ok, this is The Last Time mucking with the dang
offset overflow check.  the expression has been simplified and if
this causes warnings on any platform now i'm gonna go postal.
2000-06-19 17:16:44 +00:00
Michael Graff
eadfacf1f5 journal.c doesn't really seem to need <unistd.h> 2000-06-15 18:29:45 +00:00
Andreas Gustafsson
374606311f removed incorrect cast from offset wraparound check (patch from tale) 2000-06-14 16:25:12 +00:00
David Lawrence
b7c94aa070 maybe that cast to off_t i took out wasn't right, but that's because it should
have been a cast to isc_offset_t rather than being removed
2000-06-08 23:29:59 +00:00
David Lawrence
49f64feb02 removed an irrelevant cast to off_t in the offset wraparound check.
the expression in question is already of type isc_offset_t, which
is just a typedef for off_t.
2000-06-06 22:28:21 +00:00
Andreas Gustafsson
f266030dc3 RT #129: the journalling code assumed (and indeed INSISTed) that the
in-core and on-disk representations of a journal file offset be the same size.
This restriction has now been lifted.
2000-06-02 23:43:17 +00:00
David Lawrence
e13efecaa5 made journal_pos_t.offset be an isc_offset_t, resolving some
"comparison between signed and unsigned" warnings and allowing for 64 bit
offsets on machines that support it (though there is an issue, there
with journal_rawpos_t being only 4 bytes.)
2000-05-25 03:41:12 +00:00
David Lawrence
ed019cabc1 fixed lines > 79 columns wide 2000-05-24 05:10:00 +00:00
Michael Graff
341323e0e7 move dns_db_getsoaserial() from journal.c to db.c 2000-05-20 01:32:03 +00:00
David Lawrence
34b394b43e DNS_R_RANGE -> ISC_R_RANGE 2000-05-15 21:14:38 +00:00
David Lawrence
56a2bee133 Silence IRIX warning:
"journal.c", line 169: remark(1552): variable "zoneclass" was set but never
          used

by removing zoneclass declaration and zoneclass = dns_db_class(db) from
dns_db_createsoatuple.
2000-05-13 20:21:45 +00:00
David Lawrence
d8e34837cd isc_file_{stdiofunc} -> isc_stdio_* 2000-05-11 16:14:05 +00:00
David Lawrence
f2fdfe7c42 Silence "end-of-loop condition not reached" warnings from Solaris compiler 2000-05-10 03:33:57 +00:00
Andreas Gustafsson
996f4a8bc3 164. [cleanup] Added functions isc_file_fopen(), isc_file_fclose(),
isc_file_fseek(), isc_file_fread(), isc_file_fwrite(),
                        isc_file_fflush(), isc_file_ffsync(), isc_file_remove()
                        to encapsulate nonportable usage of errno and fflush().
2000-05-09 23:19:32 +00:00
David Lawrence
5d49890aca isc/net.h required for ntohl on some platforms 2000-05-08 20:18:35 +00:00
David Lawrence
1a69a1a78c Megacommit of dozens of files.
Cleanup of redundant/useless header file inclusion.

ISC style lint, primarily for function declarations and standalone
comments -- ie, those that appear on a line without any code, which
should be written as follows:
   /*
    * This is a comment.
    */
2000-05-08 14:38:29 +00:00
Andreas Gustafsson
fd63a046d6 added an INSIST(), making use of the new isc_buffer_availablelength()
macro
2000-05-04 22:16:00 +00:00
Bob Halley
364a82f7c2 include isc/util.h 2000-04-28 01:12:23 +00:00
David Lawrence
61e9c1cdbe 116. [func] Added <isc/offset.h> for isc_offset_t 2000-04-28 00:36:56 +00:00
Andreas Gustafsson
d11241a247 make good use of isc_buffer_remaininglength() 2000-04-27 00:24:21 +00:00
David Lawrence
6e49e91bd0 103. [func] libisc buffer API changes for <isc/buffer.h>:
Added:
                                isc_buffer_base(b)          (pointer)
                                isc_buffer_current(b)       (pointer)
                                isc_buffer_active(b)        (pointer)
                                isc_buffer_used(b)          (pointer)
                                isc_buffer_length(b)            (int)
                                isc_buffer_usedlength(b)        (int)
                                isc_buffer_consumedlength(b)    (int)
                                isc_buffer_remaininglength(b)   (int)
                                isc_buffer_activelength(b)      (int)
                                isc_buffer_availablelength(b)   (int)
                        Removed:
                                ISC_BUFFER_USEDCOUNT(b)
                                ISC_BUFFER_AVAILABLECOUNT(b)
                                isc_buffer_type(b)
                        Changed names:
                                isc_buffer_used(b, r) ->
                                        isc_buffer_usedregion(b, r)
                                isc_buffer_available(b, r) ->
                                        isc_buffer_available_region(b, r)
                                isc_buffer_consumed(b, r) ->
                                        isc_buffer_consumedregion(b, r)
                                isc_buffer_active(b, r) ->
                                        isc_buffer_activeregion(b, r)
                                isc_buffer_remaining(b, r) ->
                                        isc_buffer_remainingregion(b, r)

                        Buffer types were removed, so the ISC_BUFFERTYPE_*
                        macros are no more, and the type argument to
                        isc_buffer_init and isc_buffer_allocate were removed.
                        isc_buffer_putstr is now void (instead of isc_result_t)
                        and requires that the caller ensure that there
                        is enough available buffer space for the string.
2000-04-27 00:03:12 +00:00
Brian Wellington
e9a9ae4fc6 Added dns_trust_ultimate for zone data (can be renamed later if necessary). 2000-04-20 18:47:21 +00:00
Michael Graff
4195904998 s/DNS_R_/ISC_R_/ change for some codes. 2000-04-06 22:03:35 +00:00
Andreas Gustafsson
ec9f7bd203 report journal file errors using isc_log_write(), not
UNEXPECTED_ERROR()
2000-02-14 19:26:23 +00:00
Bob Halley
7d32c065c7 update copyright 2000-02-03 23:50:32 +00:00
Bob Halley
08af8bf5ad conform to dns_db_addrdataset() API change 2000-01-25 19:30:51 +00:00
Andreas Gustafsson
c398950a42 fixed memory leak introduced by previous change 2000-01-12 00:59:08 +00:00
Andreas Gustafsson
2bbbbfaeb8 warn if SOA RR is unexpectedly missing from a zone 2000-01-11 21:21:07 +00:00
Michael Graff
3ddd814a97 dns_result_t is no more. s/dns_result_t/isc_result_t/ -- more later, when I need a break. 1999-12-23 00:09:04 +00:00
Andreas Gustafsson
8146ee1fac make an unexpectedly empty journal file cause a DNS_R_UNEXPECTED return,
like other forms of journal corruption do.
1999-12-14 01:26:03 +00:00
Mark Andrews
33a2ca5a71 dns_journal_print() nor returns DNS_R_NOJOURNAL if the journal does not exist. 1999-12-13 02:58:06 +00:00
Mark Andrews
6cefa82d9a dns_journal_rollforward() now returns DNS_R_JOURNAL if the file does not exist. 1999-12-07 06:26:59 +00:00
Bob Halley
875e88e734 move some debugging output from level 1 to level 3 1999-11-23 20:52:34 +00:00
Andreas Gustafsson
e7e74c22de the 'covers' field was not being set in dns_diff_load() 1999-11-03 00:24:47 +00:00
Andreas Gustafsson
1fbb35f902 isc_buffer_putmem() is now in the library 1999-10-29 23:54:37 +00:00
Andreas Gustafsson
b84463c2f7 writing multiple transactions to the journal without
closing and reopening it did not work, and IXFR sometimes does that
1999-10-29 18:04:07 +00:00
Andreas Gustafsson
7a15b51ff1 eliminated extra newline at end of RRs being logged 1999-10-29 00:25:54 +00:00
Andreas Gustafsson
c0227b1e1f fixed infinite memory allocation loop introduced by previous change 1999-10-27 23:38:54 +00:00
Mark Andrews
412e2345a7 Add a FILE * arguement to dns_journal_print() and dns_diff_print(). 1999-10-27 05:53:59 +00:00
Andreas Gustafsson
9e933a78a3 sorted dns includes;
use the logging library, not printf
(this probably breaks bin/tests/zone2_test.c)
1999-10-27 00:32:50 +00:00
Andreas Gustafsson
e1ac02b216 removed trailing comma from enumerator list 1999-10-25 22:17:36 +00:00
David Lawrence
f0131db6c3 INSIST rdata.length < 65536 before using it in a call to isc_buffer_putuint16.
I was not entirely sure that all paths to the places where the INSISTS are
would have guaranteed that the unsigned int rdata.length was in the range
of an unsigned short.

Cast bitshifts to isc_uint8_t in encode_win32(); yes, dear compiler, we know
there is a loss of precision.  That's exactly what we want to happen here.
1999-10-17 22:18:45 +00:00
Mark Andrews
e26a96b245 add DNS_R_UPTODATE check to roll_forward(). 1999-10-13 22:47:12 +00:00
Andreas Gustafsson
9b0d518110 moved dns_db_diff() from xfrin.c to journal.c; const correctness 1999-09-27 06:30:15 +00:00