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

8393 Commits

Author SHA1 Message Date
Brian Wellington
ed6d3c9660 remove sanitize cruft 2000-12-29 22:07:25 +00:00
Brian Wellington
917d2db965 if DNS_NAME_USEINLINE was set, DNS_NAME_SETBUFFER was defined, but never used,
since dns_name_setbuffer was never #defined to it.
2000-12-29 21:54:52 +00:00
Brian Wellington
9be0c3d823 typo 2000-12-29 21:01:09 +00:00
Andreas Gustafsson
6867b9d347 rewrote large portions of Chapter 1 while waiting for delayed return flight from IETF 2000-12-29 20:40:35 +00:00
Brian Wellington
0c710d7162 #define isc_mutex_stats to nothing 2000-12-29 19:55:37 +00:00
Brian Wellington
dacf0cc454 Merged the private functions compress_add and compress_find into
dns_compress_add and dns_compress_findglobal.
2000-12-29 19:38:50 +00:00
Brian Wellington
bb88eab95f fix an uninitialized variable; reformat some >80 character lines 2000-12-29 18:49:36 +00:00
Brian Wellington
a0eb4941ff Remove #if ISC_MUTEX_PROFILE ; it should work now. 2000-12-29 18:25:33 +00:00
Brian Wellington
26d20cd51c oops, forgot to commit this yesterday. 2000-12-29 18:19:52 +00:00
Andreas Gustafsson
f1fb5d1b0b compilation failed due to call to nonexistent function isc_mutex_stats();
made call conditional on ISC_MUTEX_PROFILE to make it compile but the issue of
the function being undefined even when ISC_MUTEX_PROFILE is set must still be
resolved
2000-12-29 18:09:31 +00:00
Mark Andrews
02bad0bd51 fix lock heirachy in zone_shutdown() 2000-12-29 13:20:46 +00:00
Brian Wellington
3f160155da ISC_MUTEX_PROFILE can be set to enable basic mutex profiling. Running named
with -s prints the results.
2000-12-29 01:29:56 +00:00
Mark Andrews
253ab81bf2 642. [bug] Break the exit_check() race in the zone module.
[RT #598]
2000-12-29 01:04:10 +00:00
Brian Wellington
8e047d3b74 microoptimizations to make quantize/rmsize more efficient. 2000-12-29 01:02:07 +00:00
Brian Wellington
575737b964 Rewrite the name compression code to use a hashtable instead of an RBT and
avoid allocating memory in most cases.  This increases performance by
about 225% on the rc query test (~305 q/s to 990 q/s).
2000-12-29 00:59:41 +00:00
Brian Wellington
4efa04801e Remove DNS_COMPRESS_GLOBAL, since the only type of global compression
is GLOBAL14.
2000-12-29 00:54:36 +00:00
Brian Wellington
ce7994d137 reorder the pthread_create tests 2000-12-28 07:15:01 +00:00
Andreas Gustafsson
af5995e08f remove unused variable 2000-12-28 03:04:35 +00:00
Mark Andrews
9f28451bca 641. [bug] $GENERATE caused a uninitialized link to be used.
[RT #595]
2000-12-28 02:31:20 +00:00
Andreas Gustafsson
2cb287d2f4 set mainline version to 9.2.0a0 2000-12-28 02:13:04 +00:00
Andreas Gustafsson
a110543bb4 include changes up to 640. in 9.1.0b2 2000-12-28 01:42:00 +00:00
Mark Andrews
de154f65f6 Ensure that ns_client_*() are only called from the client's task. 2000-12-28 01:29:09 +00:00
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