Commit graph

1086 commits

Author SHA1 Message Date
Brian Wellington
c76926d714 comment updates 2000-09-26 22:14:35 +00:00
Brian Wellington
df03463a37 Allow *_log_setcontext() to be called multiple times, so that *_lctx
can be set to NULL once the log context has been freed.
2000-09-26 22:10:44 +00:00
Andreas Gustafsson
94361d5867 simplified isc_random_jitter() and eliminated floating
point from the code using it in zone.c
2000-09-26 17:23:19 +00:00
Brian Wellington
3f123dcc2f 487. [port] flockfile() is not defined on all systems.
Also check for libpthreads, if libpthread isn't found.
2000-09-22 18:52:39 +00:00
Michael Graff
08ad332552 put a break in the switch 2000-09-21 21:40:29 +00:00
Michael Graff
e710c2162a check for more expected error values in connect() case 2000-09-21 21:30:27 +00:00
Andreas Gustafsson
922e6a3c2a 478. [bug] "make install" failed if the directory specified with
--prefix did not already exist.
2000-09-20 19:06:16 +00:00
Andreas Gustafsson
c89ac488df 472. [bug] Off-by-one error caused isc_time_add() to sometimes
produce invalid time values.
2000-09-18 18:43:03 +00:00
Brian Wellington
f3f22040a8 The ipv6 probe fails if IPv6 is disabled. 2000-09-15 20:52:27 +00:00
Bob Halley
3302ed8d6e bitstring assertion addition; doc fixes 2000-09-13 00:11:45 +00:00
Andreas Gustafsson
a9d3c26ed0 some CPP macros were not fully parenthesized 2000-09-12 23:27:44 +00:00
Bob Halley
83d2840b6f fix erroneous isc_bitstring_copy() REQUIRE 2000-09-12 19:26:40 +00:00
Brian Wellington
0fded1c8b7 remove warnings. 2000-09-12 13:46:12 +00:00
Andreas Gustafsson
b7e031d517 435. [bug] dns_zone_dump() overwrote existing zone files
rather than writing to a temporary file and
                        renaming.  This could lead to empty or partial
                        zone files being left around in certain error
                        conditions involving the initial transfer of a
                        slave zone, interfering with subsequent server
                        startup. [RT #282]
2000-09-08 21:47:03 +00:00
Andreas Gustafsson
e881887f18 commented 2000-09-08 21:25:21 +00:00
Andreas Gustafsson
7ec4367f3d 434. [func] New function isc_file_isabsolute(). 2000-09-08 18:37:28 +00:00
Andreas Gustafsson
2c9c7c5bb5 433. [func] isc_base64_decodestring() now accepts newlines
within the base64 data.  This makes it possible
                        to break up the key data in a trusted-keys
                        statement into multiple lines. [RT #284]
2000-09-08 00:34:21 +00:00
Michael Graff
95236b0363 make the returned value sane in all cases 2000-09-08 00:06:39 +00:00
Michael Graff
1deaf52c98 kill persistent errors. Always retry the I/O now. 2000-09-07 01:59:57 +00:00
Michael Graff
e558faa60b make unreachable errors on unconnected UDP sockets be soft errors, rather than hard ones. 2000-09-06 22:55:33 +00:00
Andreas Gustafsson
3bd723c53a clarified comment 2000-09-06 16:25:35 +00:00
Michael Graff
7da0286b54 get rid of isc_random_t -- use a wrapper around rand() instead that doesn't do as much work. Also, implement isc_random_jitter(), used to generate a value between a min, max, with a provided jitter value. 2000-09-06 02:40:00 +00:00
Mark Andrews
6c6bed90cb Add comments describing isc_mem_putanddetach(). 2000-09-05 22:20:36 +00:00
Mark Andrews
1162a4e02a New function isc_mem_putanddetach(). 2000-09-05 03:30:19 +00:00
Brian Wellington
1b32bc7da1 417. [func] Add isc_app_block() and isc_app_unblock(), which
allow an application to handle signals while
                        blocking.
2000-09-01 21:31:54 +00:00
Brian Wellington
4b809ba346 415. [bug] The logging code leaked file descriptors. 2000-08-31 20:58:15 +00:00
Andreas Gustafsson
04cec6dc5b comment style 2000-08-31 17:10:58 +00:00
Andreas Gustafsson
50a3152b70 clarified comment 2000-08-31 16:58:28 +00:00
Mark Andrews
7523838d84 make error message more informative. 2000-08-31 13:38:55 +00:00
Mark Andrews
3a34b87c87 Add cache cleaning support (disabled). 2000-08-31 12:15:17 +00:00
Brian Wellington
5a842a6fc3 The non-threaded version does a better job avoiding starvation. 2000-08-30 23:47:16 +00:00
Mark Andrews
68e32e13a5 #include <isc/platform.h> 2000-08-30 21:24:57 +00:00
Brian Wellington
aa3f41bafc signals were broken in the non-threaded version 2000-08-30 01:43:59 +00:00
Brian Wellington
743add946b Comment out calls to flockfile() and funlockfile(), since it's not
evident that they're needed, and they don't work on all platforms without
threads.
2000-08-30 01:28:10 +00:00
Brian Wellington
5aa95f94c9 don't need <pthread.h> or <isc/platform.h> 2000-08-30 01:11:37 +00:00
Brian Wellington
ae8b7e02a8 Non threaded isc_app_* - basically an event loop that calls into the
task, timer, and socket modules.
2000-08-30 00:58:28 +00:00
Brian Wellington
efafe4fa7f Non-threaded socket manager. 2000-08-29 23:58:17 +00:00
Brian Wellington
8dd5562555 #include <isc/platform.h> 2000-08-29 22:55:57 +00:00
Brian Wellington
0c4887513b add copyright 2000-08-29 22:53:59 +00:00
Brian Wellington
3be0a4382d ALlow the task manager to run without threads. This doesn't handle fairness
too well.
2000-08-29 22:30:14 +00:00
Brian Wellington
8ec174ad4e Allow the timer code to run without threads. 2000-08-29 21:30:03 +00:00
Brian Wellington
5e872705df condition.c needs to be added 2000-08-29 19:22:34 +00:00
Brian Wellington
fafb62400d When --disable-threads is passed, use "nothreads" instead of "pthreads" in
the build process.
2000-08-29 18:24:01 +00:00
Brian Wellington
f05941692e Add an empty lib/isc/nothreads/condition.c, since it greatly simplifies
the build process.
2000-08-29 18:19:29 +00:00
Brian Wellington
3c7f352550 single-threaded versions. 2000-08-29 00:33:36 +00:00
Brian Wellington
9ce781741a don't use DESTROYLOCK, since isc_mutexblock_destroy actually returns
failure if isc_mutex_destroy fails.
2000-08-29 00:25:23 +00:00
Andreas Gustafsson
892abf3178 added configure option --enable-threads/--disable-threads,
define ISC_PLATFORM_USETHREADS
2000-08-28 23:51:21 +00:00
Brian Wellington
bc40028504 Added the "nothreads" directory in lib/isc. These will be used in the
non-threaded libisc.
2000-08-28 23:16:50 +00:00
Brian Wellington
762b1edceb DESTROYLOCK does not need a do { } while (0) construct. 2000-08-28 19:49:38 +00:00
Brian Wellington
fa9a407180 Last set of DESTROYLOCK changes 2000-08-26 01:42:34 +00:00