Andreas Gustafsson
02940eaf0f
736. [func] New functions isc_task_{begin,end}exclusive().
2001-02-13 04:11:44 +00:00
Brian Wellington
9f708f9014
isc_mem_stats() should print memory statistics even when there are no
...
allocated blocks at the time it's called.
2001-02-13 01:07:54 +00:00
Andreas Gustafsson
ea16b37d71
install refcount.h
2001-02-12 23:11:05 +00:00
Brian Wellington
1f7f8d5c07
Add isc_socket_sendto2() and isc_socket_recv2(). These versions take
...
a partially constructed event and flags. The flags can include
ISC_SOCKFLAG_IMMEDIATE, which means that if the operation completes, the
event is filled in and not sent.
2001-02-12 21:43:17 +00:00
Brian Wellington
a13ca8a125
Add ISC_R_INPROGRESS (operation in progress)
2001-02-12 20:03:16 +00:00
Brian Wellington
7c3996209b
fix a "statement is unreachable" warning
2001-02-11 00:52:31 +00:00
Andreas Gustafsson
1d625775ee
note that max_size and target_size apply only when
...
ISC_MEM_USE_INTERNAL_MALLOC is set
2001-02-09 19:19:17 +00:00
Andreas Gustafsson
50179a15d1
UNUSED()
2001-02-09 19:08:11 +00:00
Andreas Gustafsson
dd0ef1a9d3
removed the unused and undocumented functions
...
isc_mem_preallocate(), isc_mem_valid(), isc_mem_setsplit(), and
isc_mem_restore()
2001-02-09 19:05:23 +00:00
Andreas Gustafsson
c674a8d5e7
documented the isc_mem_* interface
2001-02-09 18:51:20 +00:00
Andreas Gustafsson
780db05762
use the UNUSED() macro
2001-02-09 18:27:18 +00:00
Andreas Gustafsson
3f53ec3bd7
added missing copyright message; ISC_REFERENCE_H -> ISC_REFCOUNT_H
2001-02-09 00:26:20 +00:00
Andreas Gustafsson
b7f7a77d56
#include <isc/mutex.h>
2001-02-09 00:20:01 +00:00
Brian Wellington
1938554ccc
consolidate duplicated code
2001-02-08 00:04:11 +00:00
Mark Andrews
df0bcff664
extend change #727 to check returned address length for zero.
2001-02-07 23:40:28 +00:00
Brian Wellington
744304361c
actually call isc_thread_setconcurrency()
2001-02-07 21:16:12 +00:00
Andreas Gustafsson
1964de81da
UNUSED() macro added in 1.79 was in the wrong place
2001-02-07 20:05:15 +00:00
Andreas Gustafsson
91f74728a7
UNUSED()
2001-02-07 20:03:23 +00:00
Brian Wellington
abc0c36dc3
The ISC__BUFFER_INIT macro had a typo.
2001-02-07 01:36:12 +00:00
Andreas Gustafsson
9a3ee1570d
"hard" errors in accept() were handled really badly. They were logged
...
twice, and the socket object for the new socket was never destroyed,
causing the server to hang on exit (if multithreaded) or dump core on exit
(if singlethreaded). Now the only difference between "hard" and "soft" errors
is that the latter are not logged.
2001-02-06 23:43:01 +00:00
Andreas Gustafsson
8dab78b566
as a workaround for various OS bugs, do not INSIST() that
...
accept() returns a valid peer address; instead just log an ugly error message
and continue if the peer address is left unchanged or insane by accept()
[RT #809 ]
2001-02-06 23:04:02 +00:00
Brian Wellington
2305225a1c
The interface name field was only partially initialized.
2001-02-06 01:20:46 +00:00
Brian Wellington
770d3b36da
ctx->checkfree was only being initialized if USE_INTERNAL_MALLOC was on.
2001-02-05 23:48:25 +00:00
Brian Wellington
0ef3f4fb41
When memsetting the entropy pool to 0, the count should be the size in bytes,
...
not words.
2001-02-05 23:00:18 +00:00
Andreas Gustafsson
7e361074bc
724. [func] New libisc functions isc_netaddr_any(),
...
isc_netaddr_any6().
2001-02-02 02:48:47 +00:00
Brian Wellington
63ca494e7e
Added the isc_refcount_t type, which is a generic locked reference counter,
...
and make the rbtdb, zone, and view objects use it.
This should reduce contention on other locks, since (in the normal)
implementation, the reference count has its own lock. In the future, it
should also be possible to implement an isc_refcount_t with atomic operations
instead of mutexes, which should also help performance.
2001-01-30 02:50:51 +00:00
Mark Andrews
fd50497bbe
isc_dir_chroot()
2001-01-29 03:17:45 +00:00
Brian Wellington
6f9786fdcf
Consolidate duplicated code in isc_socket_sendto[v] and isc_socket_recv[v].
2001-01-27 06:41:36 +00:00
Brian Wellington
3a66efb0cb
remove the completely unused timer->mctx field.
2001-01-27 02:44:07 +00:00
Brian Wellington
562f162981
remove unused labels
2001-01-27 01:16:09 +00:00
Brian Wellington
dd66e6306b
Remove isc_socket/[send|recv]mark, which were never used.
2001-01-26 23:17:26 +00:00
Damien Neil
dfb0717d75
- Receive and send operations on UDP sockets no longer need to acquire
...
the socket lock. (Assuming the operation succeeds immediately, and doesn't
need to be queued.)
- Communications with the watcher thread tweaked to reduce the need for
locking.
2001-01-25 22:25:10 +00:00
Andreas Gustafsson
b586eb4408
revert half of 711. - there was no off by one error in the v6 case,
...
only in the v4 case
2001-01-25 20:10:02 +00:00
Brian Wellington
1ac2c28488
711. [bug] The libisc and liblwres implementations of
...
inet_ntop contained an off by one error.
2001-01-25 19:39:48 +00:00
Damien Neil
3c31899857
Fix warning in the overrun detection code.
2001-01-25 01:38:01 +00:00
Damien Neil
823eed5ea9
Made the internal malloc() optional, selected by the
...
ISC_MEM_USE_INTERNAL_MALLOC preprocessor constant.
2001-01-25 01:18:00 +00:00
Brian Wellington
f6478f5e44
formatting & macro updates
2001-01-24 21:12:48 +00:00
Brian Wellington
1e3bc7eaeb
only use data from accept() if accept succeeds.
2001-01-23 21:07:12 +00:00
Andreas Gustafsson
b346ae570d
style
2001-01-23 20:45:31 +00:00
Brian Wellington
e90441d922
INSIST that accept() returns a socket of the correct protocol family. Also
...
assign the "pf" field in the new socket.
2001-01-23 20:42:46 +00:00
Mark Andrews
ab0380976c
add isc/platform.h
2001-01-23 06:00:11 +00:00
Mark Andrews
4ae98f5100
Use approptiate typoe based on configure results.
2001-01-23 05:13:25 +00:00
Mark Andrews
66ad1d85cb
703. [port] sys/select.h is needed on older platforms. [RT #695 ]
2001-01-23 04:47:56 +00:00
Mark Andrews
07d6480b68
704. [port] RLIMIT_NOFILE in to available on all platforms.
...
[RT #695 ]
2001-01-23 03:14:28 +00:00
Mark Andrews
363cb30a83
703. [port] sys/select.h is needed on older platforms. [RT #695 ]
2001-01-23 03:07:18 +00:00
Brian Wellington
47f65caf30
The msgcat text contained an extra %s.
2001-01-23 02:27:19 +00:00
Andreas Gustafsson
e8af4e1524
699. [bug] The lexer mishandled empty quoted strings. [RT #694 ]
2001-01-22 02:46:34 +00:00
Andreas Gustafsson
eed89be339
incremented library version number for 9.2
2001-01-19 01:55:11 +00:00
Bob Halley
5c7d67e3e6
include <stdlib.h> to get prototype for exit()
2001-01-17 19:48:45 +00:00
Mark Andrews
fb0663dbdd
687. [bug] Only say we have IPv6, with sufficent functionality,
...
if it has actually been tested. [RT #586 ]
2001-01-17 02:11:20 +00:00