Commit Graph

1062 Commits

Author SHA1 Message Date
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
Brian Wellington
a44038277a MOre calls to DESTROYLOCK 2000-08-26 01:31:56 +00:00
Brian Wellington
6714319d0f Add a DESTROYLOCK macro to wrap isc_mutex_destroy() 2000-08-26 01:23:17 +00:00
Brian Wellington
bba01d378b Since the result of isc_mutex_destroy() is being ignored, cast it to void. 2000-08-26 01:10:54 +00:00
Brian Wellington
569c05295c removed a chunk of dead debugging code. 2000-08-25 22:07:52 +00:00
Brian Wellington
960d37edc3 Setting event->ev_sender to a bogus non-null value is no longer necessary. 2000-08-25 18:58:35 +00:00
Brian Wellington
f5ad7569cb #include <stddef.h> 2000-08-24 23:26:13 +00:00
Brian Wellington
d07ef64ed1 #include <time.h> 2000-08-24 23:22:40 +00:00
Brian Wellington
3cab47dbea A read lock could incorrectly be granted in some cases. 2000-08-24 19:06:38 +00:00
Andreas Gustafsson
dcfbc7c73e do not clear lctx->buffer before it is has been locked 2000-08-24 18:21:40 +00:00
Andreas Gustafsson
249b19d917 print lock address and thread ID in rwlock trace messages 2000-08-24 17:06:31 +00:00
Andreas Gustafsson
eb5670ecd2 send task trace output to stderr, not stdout, so that
it gets buffered synchronously with logging output sent to stderr
2000-08-24 01:40:46 +00:00
Andreas Gustafsson
ce4ccd5d7f const correctness 2000-08-24 01:38:46 +00:00
Andreas Gustafsson
6cab5e204c write ASCII NUL as '\0', not 0 2000-08-23 02:21:16 +00:00
Brian Wellington
4e0c5cba87 Added isc_consttextregion_t 2000-08-17 23:33:04 +00:00
Andreas Gustafsson
708c4ac042 stubbed out ISLOCKED() 2000-08-17 18:33:41 +00:00
Mark Andrews
2910719100 Add ISLOCKED macro. 2000-08-17 09:25:38 +00:00
Brian Wellington
acba1142b4 The region passed to isc_buffer_copyregion() should be const. 2000-08-17 02:09:12 +00:00
Brian Wellington
90c917523e entropy.h was missing from HEADERS, so it wasn't being installed. 2000-08-17 00:18:00 +00:00
David Lawrence
cd5a526372 ISC_R_NRESULTS was not bumped when ISC_R_FAMILYNOSUPPORT was added. 2000-08-15 23:30:22 +00:00
Mark Andrews
44215b932d 392. [func] Add ISC_R_FAMILYNOSUPPORT. Returned when OS does
not support the given address family requested.

 391.   [clarity]       ISC_R_FAMILY -> ISC_R_FAMILYMISMATCH.
2000-08-15 01:43:38 +00:00
Andreas Gustafsson
a3e7b6450e style 2000-08-10 23:42:17 +00:00
Brian Wellington
5e989d1777 If isc_socket_bind tries to bind to a socket with a different address
family than the address specified, return a meaningful error.
2000-08-10 23:11:12 +00:00
Brian Wellington
3d37f10b91 On send, treat EPERM like ISC_R_HOSTUNREACH. send() seems to return EPERM
on Linux when firewall rules block the send.
2000-08-10 21:47:46 +00:00
Brian Wellington
cd7ffa4c12 381. [bug] Check for IPV6_RECVPKTINFO and use it instead of
IPV6_PKTINFO if found. [RT #229]
2000-08-10 00:05:45 +00:00