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

7971 Commits

Author SHA1 Message Date
Brian Wellington
d780c35e54 remove all vestiges of 16 bit global compression 2000-12-28 00:43:12 +00:00
Mark Andrews
af5dc286ff 640. [bug] Memory leak in error path could cause
"mpctx->allocated == 0" failure. [RT #584]
2000-12-27 23:01:25 +00:00
David Lawrence
090432605e isc_file_renameunique() set its result incorrectly if renaming failed; it used
the value of errno from an unlink() call, not from the rename() call.
2000-12-27 17:21:53 +00:00
Brian Wellington
ee303f481d 639. [bug] Reading entropy from the keyboard would sometimes fail.
[RT #591]

note: the entropy callback conventions should really be documented.
2000-12-27 00:11:26 +00:00
David Lawrence
801dceea23 Revert my last change. It was stupid, which I if I had been thinking clearly
I would have seen *before* I commited anything.  So, include isc/thread.h,
isc/mutex.h and isc/condition.h even if ISC_PLATFORM_USETHREADS is not defined.

(What caused me to bother with this at all was a problem that I resolved
a few days ago by fixing configure ... though now that I think about it,
that probably means there is some other latent problem with inconsistent
definitions that could maybe be handled better.  I'll look into it more
later, AFTER vacation.)
2000-12-26 21:45:08 +00:00
David Lawrence
bdcae3560b Only include isc/thread.h, isc/mutex.h and isc/condition.h if
ISC_PLATFORM_USETHREADS is defined.
2000-12-26 21:12:25 +00:00
David Lawrence
8ab1d97093 sigh. "define" -> "defined". never make trivial changes without retesting. 2000-12-26 21:06:49 +00:00
David Lawrence
86b8c48576 638. [port] lib/isc/random.c needed to explicitly include
time.h explicitly to get a prototype for time() when
			pthreads was not being used. [RT #592]
2000-12-26 21:02:14 +00:00
David Lawrence
125a916d1a 637. [port] Use isc_u?int64_t instead of (unsigned) long long in
lib/isc/print.c.  Also allow lib/isc/print.c to
			be compiled even if the platform does not need it.
			[RT #592]

Also cleaned up some const issues.
2000-12-26 21:00:41 +00:00
David Lawrence
0b3427d15c 636. [port] Shut up MSVC++ about a possible loss of precision
in the ISC__BUFFER_PUTUINT*() macros. [RT #592]

This is the basically the same change made to buffer.c before the macros
were created:

   revision 1.18
   date: 1999/09/23 17:54:57;  author: tale;  state: Exp;  lines: +4 -4
   Shut up MSVC++ compiler warning about loss of precision when assigning
   8 bits masked out of a 32 bit int to individual bytes.

Also, an #if 0 around "#define ISC_BUFFER_USEINLINE" was removed, per the
ISC coding style, and instead a comment was used to disable the definition.
2000-12-26 20:51:14 +00:00
David Lawrence
2115bc7d64 636. [port] Shut up MSVC++ about a possible loss of precision
in the ISC__BUFFER_PUTUINT*() macros. [RT #592]

This is the basically the same change made to buffer.c before the macros
were created:

   revision 1.18
   date: 1999/09/23 17:54:57;  author: tale;  state: Exp;  lines: +4 -4
   Shut up MSVC++ compiler warning about loss of precision when assigning
   8 bits masked out of a 32 bit int to individual bytes.

Also, an #if 0 around "#define ISC_BUFFER_USEINLINE" was removed, per the
ISC coding style, and instead a comment was used to disable the definition.
2000-12-26 20:18:50 +00:00
Brian Wellington
02e3821450 635. [bug] Reloading a server with a configured blackhole list
would cause an assertion. [RT #590]
2000-12-26 09:48:41 +00:00
Brian Wellington
5bb8c225cd the last change was missing a ) 2000-12-26 09:34:51 +00:00
David Lawrence
054e999be3 #include <config.h> 2000-12-23 22:02:49 +00:00
David Lawrence
85d10fda1b Some cvs screwage resulted in revision 1.201, which looked for pthread_create
in libc_r for FreeBSD, being backed out when I checked in 1.202, which was
only supposed to be adding rlim_t checking.
2000-12-23 21:56:01 +00:00
David Lawrence
f4ed5931a4 the log config pointer was not initialized to NULL as it should be 2000-12-23 19:24:18 +00:00
David Lawrence
f8da2d9583 634. [bug] A log file will completely stop being written when
it reaches the maximum size in all cases, not just
			when versioning is also enabled. [RT #570]
2000-12-23 19:23:48 +00:00
David Lawrence
9a2574531e Also look in libc for pthread_create before deciding the system doesn't
have pthreads support.  Not all systems have libpthread (eg, BSD/OS).

Many compiler options that were not particular to whether threads were being
used were being set in a threads-specific block, meaning they didn't get
set at all if threads were not being used.

ISC_PLATFORM_USETHREADS could end up still defined even if threading was
later disabled, such as if pthread_create was not found.
2000-12-23 18:27:43 +00:00
David Lawrence
fdb2cda3ed 633. [port] Cope with rlim_t missing on BSD/OS systems. [RT #575] 2000-12-23 02:47:43 +00:00
David Lawrence
17012a8797 632. [port] Cope with rlim_t missing on BSD/OS systems. [RT #575] 2000-12-23 02:46:34 +00:00
Brian Wellington
88842f17b8 regenerate 2000-12-23 00:26:37 +00:00
Brian Wellington
c424b3d796 freebsd needs to check libc_r for pthread_create 2000-12-23 00:26:24 +00:00
Andreas Gustafsson
6094a77749 632. [bug] The index array of the journal file was
corrupted as it was written to disk.
2000-12-23 00:10:30 +00:00
Andreas Gustafsson
642e583687 ...and in two different ways, at that 2000-12-22 23:47:00 +00:00
Andreas Gustafsson
e0a90d7579 journal index array was corrupted on write 2000-12-22 23:37:03 +00:00
Andreas Gustafsson
e4c6adf028 check-instincludes.sh could not be run due to incorrect working directory 2000-12-22 23:05:17 +00:00
Andreas Gustafsson
029ce2f952 need #include <dns/rdataset.h> and <dns/rdatastruct.h> 2000-12-22 23:01:56 +00:00
Brian Wellington
2374f16f5d missing ISC_LANG_ENDDECLS 2000-12-22 22:56:55 +00:00
Andreas Gustafsson
16093c228e added UNUSED() macro 2000-12-22 21:17:59 +00:00
Brian Wellington
8dc3d2006f 631. [port] Build without thread support on systems without
pthreads.
2000-12-22 20:57:09 +00:00
Brian Wellington
b49fb818f6 regenerate 2000-12-22 20:51:33 +00:00
Brian Wellington
489b762926 - if pthreads are not found, build a nonthreaded version
- check for pthread_attr_getstacksize
2000-12-22 20:50:05 +00:00
Brian Wellington
b6ec7affc6 regenerate 2000-12-22 20:07:15 +00:00
Brian Wellington
99d731dbbe remove cruft remaining from sanitizing away nonthreaded version 2000-12-22 20:06:48 +00:00
Andreas Gustafsson
0ad8ee89c5 more request shutdown logic fixes from Mark 2000-12-22 19:39:01 +00:00
Andreas Gustafsson
f131164c62 incorrect root hint directory 2000-12-22 18:57:18 +00:00
Andreas Gustafsson
d1efbb15f9 previous change removed too much code 2000-12-22 18:32:06 +00:00
Andreas Gustafsson
4c1fee4236 don't turn on ISC_MEM_BDEBUGRECORD by default 2000-12-22 18:30:26 +00:00
Andreas Gustafsson
ef9f9001fc begin sentence with capital letter 2000-12-22 17:31:43 +00:00
Andreas Gustafsson
4137fd1295 install checking tools in sbindir, not bindir 2000-12-22 17:25:56 +00:00
Andreas Gustafsson
275c618823 added stress test 2000-12-22 17:03:03 +00:00
Andreas Gustafsson
93ac5ecb55 added shared root.hint file 2000-12-22 17:01:51 +00:00
Mark Andrews
6cc5eac41b more unlocked calls to cancel_refresh(). 2000-12-22 05:55:20 +00:00
Mark Andrews
bd5f2ac188 630. [bug] locking failure in zone code. [RT #582] 2000-12-22 02:43:42 +00:00
Andreas Gustafsson
24c5978e0b thinko 2000-12-22 01:38:53 +00:00
Andreas Gustafsson
a06df85974 typo 2000-12-22 01:38:39 +00:00
Andreas Gustafsson
f0f61db621 629. [bug] 9.1.0b1 derferenced a null pointer and crashed
when responding to a UDP IXFR response.
2000-12-22 01:38:16 +00:00
Brian Wellington
48540261f1 replace (isc_mem_debugging > 1) with (MEM_RECORD) 2000-12-22 00:26:33 +00:00
Andreas Gustafsson
87e15b393c avoid the file name extension '.orig' so as not to conflict with 'patch' 2000-12-21 23:44:51 +00:00
Andreas Gustafsson
bbb71c1c07 terminate output with newline, not newline+space 2000-12-21 22:11:03 +00:00