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
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
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
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
abc0c36dc3
The ISC__BUFFER_INIT macro had a typo.
2001-02-07 01:36:12 +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
Brian Wellington
dd66e6306b
Remove isc_socket/[send|recv]mark, which were never used.
2001-01-26 23:17:26 +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
Brian Wellington
499b34cea0
copyright update
2001-01-09 22:01:04 +00:00
Brian Wellington
7357590bee
656. [func] Treat an unescaped newline in a quoted string as
...
an error. This means that TXT records with missing
close quotes should have meaningful errors printed.
2001-01-05 01:02:26 +00:00
Mark Andrews
4e7942dc76
648. [port] Add support for pre-RFC2133 IPv6 implementations.
2001-01-03 13:13:14 +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
8ab1d97093
sigh. "define" -> "defined". never make trivial changes without retesting.
2000-12-26 21:06:49 +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
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
Brian Wellington
a644e87df7
Move the msgcat stuff into socket_log(), to avoid unnecessary calls to
...
isc_msgcat_get() and speed things up.
2000-12-19 20:35:37 +00:00
Andreas Gustafsson
6c29053a20
614. [bug] Checks for uninitialized link fields were prone
...
to false positives, causing assertion failures.
The checks are now disabled by default and may
be re-enabled by defining ISC_LIST_CHECKINIT.
2000-12-15 00:20:55 +00:00
David Lawrence
b74896ead5
599. [func] Added four new functions to the libisc log API to
...
support i18n messages. isc_log_iwrite(),
isc_log_ivwrite(), isc_log_iwrite1() and
isc_log_ivwrite1() were added.
(The log.h/log.c changes were just minor formatting changes.)
2000-12-12 05:29:33 +00:00
Andreas Gustafsson
fc6f5743aa
use isc_log_iwrite() for localized logging,
...
to keep backwards compatibility
2000-12-12 00:18:01 +00:00
Andreas Gustafsson
dea478db31
isc_symexists_ policies were not referred to by their
...
true names in the header comments
2000-12-11 04:08:52 +00:00
Andreas Gustafsson
10e22ebcc3
605. [func] New function isc_lex_getlasttokentext().
2000-12-09 02:05:26 +00:00
David Lawrence
e544b507b8
602. [func] Cope automatically with UnixWare's broken
...
IN6_IS_ADDR_* macros. [RT #539 ]
2000-12-08 00:55:51 +00:00
Mark Andrews
6fda157766
ISC_LINK_*UNSAFE -> ISC_LINK_INITAND*
2000-12-07 20:15:58 +00:00
David Lawrence
b161f87be8
Updated API to support i18n message arguments to isc_log_{,v}write{,1}.
...
Provided isc_log_i{,v}write{,1}, with appropriate macro substitutions,
for files that are not yet converted to the new API. When everything
is converted, the added functions will be removed.
2000-12-07 19:30:28 +00:00
David Lawrence
77078ddc9a
added msgs.h
2000-12-06 01:24:24 +00:00
David Lawrence
87762baad1
oops, guess you guys need this
2000-12-06 01:21:51 +00:00
David Lawrence
9cd6d409b7
first pass at using isc_msgcat_get for message strings in libisc
2000-12-06 00:30:32 +00:00
Andreas Gustafsson
c52e5c8ed1
test the various memory debug flags with #if instead of #ifdef
...
so that they can be turned off by passing -DISC_MEM_FOO=0 on the compiler
command line; removed some historical cruft
2000-12-01 00:32:02 +00:00
Andreas Gustafsson
78aa86abc6
typos
2000-11-27 17:49:41 +00:00
Mark Andrews
8a0ff6c15c
576. [doc] isc_log_create() description did not match reality.
...
575. [bug] isc_log_create() was not setting internal state
correctly to reflect the default channels created.
2000-11-24 01:37:26 +00:00
Brian Wellington
cffe50abf6
Lots of copyright updates
2000-11-18 03:01:17 +00:00
Andreas Gustafsson
fcf28b759c
Don't log ENFILE and EMFILE as unexpected errors
2000-11-18 02:56:48 +00:00
David Lawrence
21ec512685
some systems do not implement all of the resources of
...
the isc_resource_t enum, so the API was changed to return
ISC_R_NOTIMPLEMENTED in such cases.
2000-11-15 02:11:50 +00:00
Andreas Gustafsson
4b7018f4cc
illegal token after #endif
2000-11-15 01:31:45 +00:00
David Lawrence
6c7b702df1
symbolic constant for the format string of a 64 bit long
2000-11-14 23:40:31 +00:00
David Lawrence
d653744935
isc_resource_t, isc_resourcevalue_t
2000-11-14 23:39:34 +00:00
David Lawrence
015c481e8b
new functions, isc_resource_getlimit and isc_resource_setlimit, via new
...
header file, <isc/resource.h>
2000-11-14 23:39:15 +00:00
Brian Wellington
add4043305
The identical gettoken() routines in rdata.c, hex.c, and base64.c have
...
been replaced with isc_lex_getmastertoken().
2000-11-08 01:56:15 +00:00
Brian Wellington
19e0a2c2d1
Add isc_hex_* routines, which handle conversion to and from hex strings.
2000-11-07 20:58:08 +00:00
Andreas Gustafsson
b28d2a3d7b
the established alternate spelling of 'template' is
...
'templet', not 'templat'
2000-10-20 22:09:01 +00:00
Mark Andrews
4b6d5b2312
528. [func] The ISC_LIST_XXXX macros now perform sanity checks
...
on their arguements. ISC_LIST_XXXXUNSAFE can be use
to skip the checks however use with caution.
2000-10-20 13:35:58 +00:00
Mark Andrews
643f42815f
Modified list macros w/ checking currently disabled.
2000-10-20 01:57:57 +00:00
Mark Andrews
9282d220f4
New functions isc_file_template(), isc_file_renameunique().
...
isc_file_template() allows the caller to specify the prefix unlike
isc_file_mktemplate(). The later is now written using isc_file_template().
2000-10-03 05:45:39 +00:00