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
Mark Andrews
cd5475efa4
Describe and enforce the contract for isc_event_allocate().
...
Silent failure for bad args is not the BIND 9 way.
2000-09-27 22:53:33 +00:00
Brian Wellington
c76926d714
comment updates
2000-09-26 22:14:35 +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
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
Bob Halley
3302ed8d6e
bitstring assertion addition; doc fixes
2000-09-13 00:11:45 +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
Michael Graff
1deaf52c98
kill persistent errors. Always retry the I/O now.
2000-09-07 01:59:57 +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
Andreas Gustafsson
50a3152b70
clarified comment
2000-08-31 16:58:28 +00:00
Mark Andrews
3a34b87c87
Add cache cleaning support (disabled).
2000-08-31 12:15:17 +00:00
Mark Andrews
68e32e13a5
#include <isc/platform.h>
2000-08-30 21:24:57 +00:00
Brian Wellington
3c7f352550
single-threaded versions.
2000-08-29 00:33:36 +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
762b1edceb
DESTROYLOCK does not need a do { } while (0) construct.
2000-08-28 19:49:38 +00:00
Brian Wellington
6714319d0f
Add a DESTROYLOCK macro to wrap isc_mutex_destroy()
2000-08-26 01:23:17 +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
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
Andreas Gustafsson
ff92fcaff3
some isc_sockaddr_* functions were undocumented, and others were
...
documented in the source file rather than the header file
2000-08-09 19:09:09 +00:00
Andreas Gustafsson
5bba7216f3
added isc_sockaddr_anyofpf()
2000-08-09 18:57:16 +00:00
David Lawrence
40f53fa8d9
Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
...
own CVS tree will help minimize CVS conflicts. Maybe not.
Blame Graff for getting me to trim all trailing whitespace.
2000-08-01 01:33:37 +00:00
David Lawrence
15a4474541
word wrap copyright notice at column 70
2000-07-27 09:55:03 +00:00
David Lawrence
f6f4d7ee0f
separate the ISC_R_NRESULTS macro from those that define result codes, for
...
clarity
2000-07-26 21:34:11 +00:00
Michael Graff
bfab56849d
Revamp memory stuff.
...
Now, if you define ISC_MEM_TRACKLINES, and set isc_mem_debugging = 2 first
thing in main(), isc_mem_stats() will dump the file/line where any leaking
allocations were made.
2000-07-26 19:06:20 +00:00
Andreas Gustafsson
97684ed87d
new functions isc_task_getname() and isc_task_gettag(),
...
to be used for debugging
2000-07-26 17:11:14 +00:00
Brian Wellington
9c4cba349f
334. [func] Added hmac-md5 to libisc.
2000-07-17 17:33:39 +00:00
Andreas Gustafsson
30576c592b
330. [func] New function isc_log_wouldlog().
2000-07-13 00:19:02 +00:00
David Lawrence
9bf765ab3a
328. [func] Added isc_base64_decodestring().
...
(This is basically bin/named/server.c:base64_cstring_tobuffer(), which I
will remove in another revision that will not need to be pulled up. I also
would like to change isc_base64_totext() and isc_base64_tobuffer() to be
isc_base64_encoderegion() and isc_base64_decodelexer(), unless there are
exceptions. I find their existing names to be quite confusing with regard to
what translation function each performs.)
2000-07-11 21:51:13 +00:00
Mark Andrews
b47f3dc885
Add isc_lex_isfile().
2000-07-10 05:11:18 +00:00
David Lawrence
de8e189332
300. [bug] Using both <isc/net.h> and <lwres/net.h> didn't work
...
on platforms lacking IPv6 because each included their
own ipv6 header file for the missing definitions. Now
each library's ipv6.h defines the wrapper symbol of
the other (ISC_IPV6_H and LWRES_IPV6_H).
2000-07-01 01:41:54 +00:00
Andreas Gustafsson
fe8d130967
make install didn't work when using separate build dir
2000-06-30 00:29:29 +00:00
David Lawrence
de88422aec
only define ISC_MEM_DEBUG if it is not already defined, or if ISC_MEM_DEBUGOFF
...
is not defined. no need to pull this one up to v9_0.
2000-06-28 03:46:37 +00:00
David Lawrence
ac9e556e49
use isc/lang.h and fix ISC_STDIO_H wrapper
2000-06-23 03:03:14 +00:00
David Lawrence
e9acb52098
use isc/lang.h and fix ISC_SHA1_H wrapper
2000-06-23 03:02:58 +00:00
David Lawrence
76d6c9e54f
protect isc/formatcheck.h from check-includes.pl removal recommendation
2000-06-23 03:02:41 +00:00
David Lawrence
d7984899c8
use isc/lang.h
2000-06-23 03:02:04 +00:00
David Lawrence
bac5798358
use isc/lang.h and add protective ISC_FSACCESS_H wrapper
2000-06-23 03:01:46 +00:00
David Lawrence
8dfc0c1ab0
does not need isc/magic.h
2000-06-23 03:01:12 +00:00
David Lawrence
9c3531d72a
add RCS id string
2000-06-22 22:00:42 +00:00
David Lawrence
7c74e180c2
update_copyrights
2000-06-22 03:00:36 +00:00
Brian Wellington
386a52a5ea
Add isc/unix/os.c, which has isc_os_ncpus()
2000-06-22 01:06:35 +00:00
David Lawrence
49dbdb0186
update_copyrights
2000-06-21 22:05:07 +00:00
Andreas Gustafsson
0302c5670c
do includes in alphabetical order
2000-06-21 17:27:55 +00:00
Michael Graff
96e79f7ede
Fully implement callback sources, and add a test program to test it.
2000-06-21 00:04:57 +00:00
Michael Graff
b9672b61d8
add processing of sample sources, and of callback sources
2000-06-20 19:01:13 +00:00
David Lawrence
4acd8d2afe
build fsaccess
2000-06-20 04:09:48 +00:00
David Lawrence
1f5eafd61b
added ISC_R_NOTFILE and ISC_R_NOTDIRECTORY
2000-06-20 04:07:21 +00:00
David Lawrence
60f67141b8
added isc_fsaccess_t
2000-06-20 04:06:23 +00:00
David Lawrence
a904de0bc8
OS-independent filesystem permissions
2000-06-20 04:06:01 +00:00
Michael Graff
6d81064bf7
include isc/formatcheck.h
2000-06-19 22:16:25 +00:00
Michael Graff
9550eb2dab
add formatcheck.h
2000-06-19 21:45:05 +00:00
David Lawrence
afd7f38277
style lint
2000-06-19 19:18:45 +00:00
Brian Wellington
0c7b7a19e5
Use GCC's format attribute for better error checking when possible.
2000-06-19 18:02:32 +00:00
Michael Graff
7685c082c8
remove flags from source types. It was never used, and probably shouldn't be there.
2000-06-17 01:42:21 +00:00
Michael Graff
fd316ab4f9
snapshot
2000-06-17 01:30:40 +00:00
Michael Graff
9ceb50ed04
protect isc_entropy_stats() with a lock, and use a static dumpstats() internally when a lock is already held, for debugging. Add isc_entropy_putdata() which can be used to prime the pool.
2000-06-17 00:43:11 +00:00
Michael Graff
e92d6ed5e7
snapshot
2000-06-16 01:38:13 +00:00
Michael Graff
f64ded0ac7
set ISC_SOCKEVENTATTR_MULTICAST on packets received from a multicast address
2000-06-15 18:25:49 +00:00
Michael Graff
d80da258e3
Add isc_netaddr_ismulticast() and isc_sockaddr_ismulticast()
2000-06-15 18:23:54 +00:00
Michael Graff
d2e9c94edb
Add ISC_R_MULTICAST
2000-06-15 18:21:38 +00:00
Michael Graff
c3581e2bcc
No need to destroy filesources -- they will clean up when the source is destroyed
2000-06-15 18:15:26 +00:00
Andreas Gustafsson
aa79283a0d
257. [bug] The server detached the last zone manager reference
...
too early, while it could still be in use by queries.
This manifested itself as assertion failures during the
shutdown process for busy name servers (RT #133 ).
256. [func] isc_ratelimiter_t now has attach/detach semantics, and
isc_ratelimiter_shutdown guarantees that the rate
limiter is detached from its task.
255. [func] New function dns_zonemgr_attach().
2000-06-15 17:40:22 +00:00
Andreas Gustafsson
7e86b27bc0
typos in comments
2000-06-15 16:46:24 +00:00
Michael Graff
f8b50c193f
snapshot
2000-06-09 22:24:22 +00:00
Michael Graff
79fdce6aff
add blocking mode, and add a flag to indicate the input is a device
2000-06-09 21:36:51 +00:00
Michael Graff
b90f80957a
use create/attach/detach semantics
2000-06-09 19:18:56 +00:00
Michael Graff
b48abf6b85
snapshot
2000-06-09 17:25:41 +00:00
Michael Graff
c6e2d36708
snapshot
2000-06-09 02:00:22 +00:00
Michael Graff
60a7475dd8
checkpoint
2000-06-08 22:18:53 +00:00
Michael Graff
81b7c342c4
s/ISC_R_ENTROPY/ISC_R_NOENTROPY/g
2000-06-08 22:17:03 +00:00
Michael Graff
d10733a5a3
add ISC_R_ENTROPY
2000-06-08 19:23:04 +00:00
Michael Graff
016742f7d8
add stirring functions and other bits. Snapshot.
2000-06-08 06:35:49 +00:00
Michael Graff
270ad529d3
snapshot
2000-06-07 22:15:55 +00:00
Michael Graff
17b8fc714a
snapshot
2000-06-07 20:55:12 +00:00
Brian Wellington
1ee3b153b6
Added length constants, changed _final parameter from array to pointer.
2000-06-07 02:28:43 +00:00
Michael Graff
f2314fbd79
fix comments
2000-06-07 01:17:06 +00:00
Michael Graff
bb2d54f1b3
build md5.c
2000-06-07 00:49:04 +00:00
Michael Graff
801c511ecd
s/u_int/unsigned int/g
2000-06-07 00:30:42 +00:00
Michael Graff
676c534c8d
We really don't need to export the sha1 transform() function, it is internal only.
2000-06-07 00:22:32 +00:00
Michael Graff
74da616f07
add sha1 implementation
2000-06-07 00:15:19 +00:00
Brian Wellington
54ef500660
Turn on ISC_MEM_DEBUG by default and define isc_mem_debugging as an extern
...
defaulting to ISC_FALSE.
2000-06-06 18:07:38 +00:00
Andreas Gustafsson
f6684513fa
style; no functional change
2000-06-06 17:50:38 +00:00
Andreas Gustafsson
ee03a00244
changed references to 'binary buffer' in comments
...
to just 'buffer', as there is no longer a distinction between binary
and text buffers
2000-06-06 17:47:54 +00:00
David Lawrence
ed71ea51c6
Silence a few more warnings:
...
+ missing sigwait prototype on BSD/OS 4.0/4.0.1
+ PTHREAD_ONCE_INIT unbraced initializer warnings on Solaris 2.8.
+ IN6ADDR_ANY_INIT unbraced initializer warnings on BSD/OS 4.*, Linux and
Solaris 2.8.
2000-06-06 16:06:50 +00:00
Michael Graff
2f1059efb7
checkpoint
2000-06-03 02:15:08 +00:00
David Lawrence
87cafc5e70
Megacommit of many files.
...
Mostly, several functions that take pointers as arguments, almost
always char * pointers, had those pointers qualified with "const".
Those that returned pointers to previously const-qualified arguments
had their return values qualified as const. Some structure members
were qualified as const to retain that attribute from the variables
from which they were assigned.
The macro DE_CONST was added to isc/util.h to deal with a handful of very
special places where something is qualified as const but really needs to have
its const qualifier removed.
Also cleaned up a few places where variable names clashed with reserved
identifiers. (Which mostly works fine, but strictly speaking is undefined
by the standard.)
Minor other ISC style cleanups.
2000-06-01 17:20:56 +00:00
Andreas Gustafsson
6c7bfa7c59
added ISC_NETADDR_FORMATSIZE as a counterpart to
...
ISC_SOCKADDR_FORMATSIZE and commented them both
2000-05-26 16:39:28 +00:00
Andreas Gustafsson
8eaa51a699
new functions isc_netaddr_totext() and isc_netaddr_format()
2000-05-26 00:41:03 +00:00
Andreas Gustafsson
1b106e224d
typo: *lcfgp points to a logging configuration
...
not a logging context
2000-05-25 05:07:21 +00:00
David Lawrence
ed019cabc1
fixed lines > 79 columns wide
2000-05-24 05:10:00 +00:00
Andreas Gustafsson
bac6f7fd14
the comments for isc_ratelimiter_create() said the
...
events are executed in the context of 'task'; this is no longer true
2000-05-22 19:47:43 +00:00
Michael Graff
24d3d0ecff
fix a slight documentation bug
2000-05-20 01:30:16 +00:00
David Lawrence
e6ce1a0ea9
use _PLATFORM_NEEDINETIN6H
2000-05-18 22:43:48 +00:00
Mark Andrews
1aae402fc3
187. [func] isc_ratelimter_enqueue() has an additional arguement
...
'task'.
checkpoint zone maintence / notify work.
2000-05-18 04:43:00 +00:00
Mark Andrews
fc1feadb61
Add ISC_SOCKADDR_FORMATSIZE macro.
2000-05-17 02:20:58 +00:00
David Lawrence
600cfa2ba4
184. [cleanup] Variables/functions which began with two leading
...
underscores were made to conform to the ANSI/ISO
standard, which says that such names are reserved.
2000-05-16 05:19:47 +00:00
David Lawrence
6d8cdbaff4
185. [bug] Fixed up handling of ISC_MEMCLUSTER_LEGACY. Several
...
public functions did not have an isc__ prefix, and
referred to functions that had previously been
renamed.
184. [cleanup] Variables/functions which began with two leading
underscores were made to conform to the ANSI/ISO
function declaration and comment reformatting in accordance with coding
style document.
check_overrun conditionally compiled based on ISC_MEM_FILL and
ISC_MEM_CHECKOVERRUN to avoid compiler warnings about being defined
but not used if one of those two CPP symbols is not defined.
2000-05-16 05:17:31 +00:00
David Lawrence
a120694df8
conform variable names in isc_.*region_consume to ANSI/ISO standard
2000-05-16 03:37:40 +00:00
David Lawrence
2918b5bda6
ISC_LOG_PRINTTAG/isc_log_settag()/isc_log_gettag() added
2000-05-16 03:37:39 +00:00
Mark Andrews
5273184ae1
Add isc_file_settime() set access and modification times.
2000-05-16 02:13:08 +00:00
David Lawrence
c5c3b17a0a
added ISC_R_RANGE
2000-05-15 20:37:06 +00:00
Andreas Gustafsson
527ea00c17
174. [func] New public function isc_sockaddr_format(), for
...
formatting socket addresses in log messages.
2000-05-14 20:42:43 +00:00
David Lawrence
2467f3cafd
Removed comment about some day prefixing members of ISC_EVENT_COMMON
...
with ev_ prefix, since that has been done.
2000-05-14 02:12:18 +00:00
David Lawrence
e52750239e
Changed the CPP symbol it uses from *_HAVENETINET6* to *_NEEDNETINET6*
...
to better clarify what is going on with regard to the symbol.
2000-05-13 18:18:08 +00:00
Michael Graff
3ee8ba5e32
expand on why magic numbers need to be first in the structure
2000-05-11 16:18:01 +00:00
David Lawrence
d8e34837cd
isc_file_{stdiofunc} -> isc_stdio_*
2000-05-11 16:14:05 +00:00
Mark Andrews
c052487cdf
169. [func] ratelimiter can now process N events per interval.
2000-05-11 09:23:29 +00:00
Michael Graff
2fc337ec38
add isc_socket_isbound()
2000-05-11 07:39:17 +00:00
Michael Graff
8321dd2150
add ISC_R_NOTBOUND and ISC_R_NOTCONNECTED and return them where appropriate.
2000-05-11 05:43:53 +00:00
Michael Graff
2968701c3a
require that magic numbers be the first item in the structure.
2000-05-10 17:45:45 +00:00
Michael Graff
86bf5e8c34
add ISC_MAGIC('a','b','c','d') to make specifying magic numbers a bit more
...
readable
2000-05-10 17:06:57 +00:00
Andreas Gustafsson
996f4a8bc3
164. [cleanup] Added functions isc_file_fopen(), isc_file_fclose(),
...
isc_file_fseek(), isc_file_fread(), isc_file_fwrite(),
isc_file_fflush(), isc_file_ffsync(), isc_file_remove()
to encapsulate nonportable usage of errno and fflush().
2000-05-09 23:19:32 +00:00
Andreas Gustafsson
6a13d6f3c6
Added result codes ISC_R_FILENOTFOUND and ISC_R_FILEEXISTS
2000-05-09 23:10:34 +00:00
David Lawrence
681bd61239
isc/{unix,win32}/include/isc/ipv6.h moved to isc/include/isc/ipv6.h
2000-05-09 00:55:59 +00:00
David Lawrence
1a69a1a78c
Megacommit of dozens of files.
...
Cleanup of redundant/useless header file inclusion.
ISC style lint, primarily for function declarations and standalone
comments -- ie, those that appear on a line without any code, which
should be written as follows:
/*
* This is a comment.
*/
2000-05-08 14:38:29 +00:00
Michael Graff
6c41175537
add isc_sockaddr_any() and isc_sockaddr_any6 to set up a wildcarded address/port for v4 and v6 sockaddrs
2000-05-06 01:49:43 +00:00
Michael Graff
96e3bc37e6
document that before send*() or recv*() may be called, the socket must be bound either via connect() or bind()
2000-05-06 01:49:07 +00:00
Michael Graff
ece3d6c356
Cause runtime probing of v6 addresses to fail, even if we can actually
...
make v6 sockets, but we do not have struct in6_pktinfo.
Add a check in configure.in for struct in6_pktinfo.
Use the result of that check to define (if needed) in6_pktinfo in net.h.
This change makes us build on platforms that have SOME ipv6 structures
(like in6_addr, etc) but not enough to be useful to us.
Note: Before making an ipv6 socket the code should verify that ipv6
sockets can be made using isc_net_probeipv6(). It should also
check for v4 sockets using isc_net_probeipv4() to be consistant.
2000-05-06 01:30:32 +00:00
Michael Graff
1a487fb7d2
Add isc_log_setcontext() to set the isc_lctx global (ala dns_lctx) and add module names for isc/socket
2000-05-03 21:09:34 +00:00
David Lawrence
b887048653
move prototype for isc_string_separate outside of ISC_PLATFORM_NEEDSTRSEP test
2000-04-28 22:47:45 +00:00
David Lawrence
358628c8f4
138. [cleanup] isc_strtouq moved from str.[ch] to string.[ch] and
...
renamed isc_string_touint64. isc_strsep moved from
strsep.c to string.c and renamed isc_string_separate.
2000-04-28 22:40:10 +00:00
David Lawrence
54a2e7e8a2
137. [cleanup] <isc/commandline.h>, <isc/mem.h>, <isc/print.h>
...
<isc/serial.h>, <isc/string.h> and <isc/offset.h>
made to conform to the same style for multiple
inclusion protection.
2000-04-28 22:13:15 +00:00
David Lawrence
027212247d
136. [cleanup] <isc/commandline.h>, <isc/interfaceiter.h>,
...
<isc/net.h> and Win32's <isc/thread.h> needed
ISC_LANG_BEGINDECLS/ISC_LANG_ENDDECLS.
2000-04-28 22:09:15 +00:00
David Lawrence
738922ba7b
133. [cleanup] <isc/ipv6.h> needs <isc/platform.h>.
2000-04-28 21:19:55 +00:00
David Lawrence
9c4f33b671
131. [cleanup] <isc/mutex.h> and <isc/util.h> need <isc/result.h>
...
for ISC_R_* codes used in macros.
2000-04-28 19:03:50 +00:00
David Lawrence
b22879b057
include <isc/asssertions.h> since several defines depend on it
2000-04-28 18:32:30 +00:00
David Lawrence
904463e94c
126. [cleanup] <isc/quota.h> and <isc/taskpool.h> need <isc/lang.h>.
2000-04-28 17:24:26 +00:00
David Lawrence
2d78d06402
125. [cleanup] <isc/eventclass.h>, <isc/ipv6.h>, <isc/magic.h>,
...
<isc/mutex.h>, <isc/once.h>, <isc/region.h>, and
<isc/resultclass.h> do not need <isc/lang.h>.
2000-04-28 17:19:11 +00:00
David Lawrence
bf6f755a74
<isc/magic.h> does not need <isc/lang.h>.
2000-04-28 16:55:58 +00:00
David Lawrence
dd518cf33d
make conforming inclusion wrapper
2000-04-28 16:54:53 +00:00
David Lawrence
56433595bb
<isc/event.h> does not need <stddef.h>.
2000-04-28 04:34:30 +00:00
David Lawrence
fc9e755ba3
<isc/task.h> does not need <isc/mem.h> or <isc/result.h>.
2000-04-28 04:26:08 +00:00
David Lawrence
7896e45912
121. [cleanup] <isc/symtab.h> does not need <isc/mem.h> or
...
<isc/result.h>. Multiple inclusion protection
symbol fixed from ISC_SYMBOL_H to ISC_SYMTAB_H.
isc_symtab_t moved to <isc/types.h>.
2000-04-28 04:16:34 +00:00
David Lawrence
ed94876a19
missing ifndef ISC_STRING_H wrapper for body
2000-04-28 03:56:27 +00:00
David Lawrence
32eddfc189
120. [cleanup] <isc/socket.h> does not need <isc/boolean.h>,
...
<isc/bufferlist.h>, <isc/task.h>, <isc/mem.h> or
<isc/net.h>.
2000-04-28 03:53:48 +00:00
Bob Halley
4e507aaa4e
add assertion and error macros
2000-04-28 01:03:42 +00:00
Bob Halley
35ffe86508
namespace goodness
2000-04-28 01:03:24 +00:00
David Lawrence
61e9c1cdbe
116. [func] Added <isc/offset.h> for isc_offset_t
2000-04-28 00:36:56 +00:00
David Lawrence
d1baeb3888
sys/types.h needed for some (BSD/OS pre-4.1) systems
2000-04-27 23:44:44 +00:00
David Lawrence
2cc1d2536d
114. [cleanup] <isc/sockaddr.h> does not need <isc/buffer.h> or <isc/list.h>.
2000-04-27 23:29:28 +00:00
David Lawrence
6d208969b3
112. [cleanup] <isc/serial.h> does not need <isc/boolean.h>.
2000-04-27 23:08:18 +00:00
David Lawrence
145bd6ea33
111. [cleanup] <isc/rwlock.h> does not need <isc/result.h> or
...
<isc/mutex.h>.
2000-04-27 23:01:34 +00:00
David Lawrence
0c33e418cb
110. [cleanup] <isc/result.h> does not need <isc/boolean.h> or
...
<isc/list.h>.
2000-04-27 22:48:57 +00:00
Bob Halley
6699408663
rename internal functions
2000-04-27 20:20:12 +00:00
Michael Graff
d8d845eb47
Call the macros from within the compiled functions. This puts the implementation in one place (buffer.h) and the REQUIRE() checking in buffer.c
2000-04-27 02:12:10 +00:00
Michael Graff
35a8d16d61
Make many functions (optionally) inlined. Currently disabled. To enable, see the top of buffer.h
2000-04-27 01:46:16 +00:00
David Lawrence
6e49e91bd0
103. [func] libisc buffer API changes for <isc/buffer.h>:
...
Added:
isc_buffer_base(b) (pointer)
isc_buffer_current(b) (pointer)
isc_buffer_active(b) (pointer)
isc_buffer_used(b) (pointer)
isc_buffer_length(b) (int)
isc_buffer_usedlength(b) (int)
isc_buffer_consumedlength(b) (int)
isc_buffer_remaininglength(b) (int)
isc_buffer_activelength(b) (int)
isc_buffer_availablelength(b) (int)
Removed:
ISC_BUFFER_USEDCOUNT(b)
ISC_BUFFER_AVAILABLECOUNT(b)
isc_buffer_type(b)
Changed names:
isc_buffer_used(b, r) ->
isc_buffer_usedregion(b, r)
isc_buffer_available(b, r) ->
isc_buffer_available_region(b, r)
isc_buffer_consumed(b, r) ->
isc_buffer_consumedregion(b, r)
isc_buffer_active(b, r) ->
isc_buffer_activeregion(b, r)
isc_buffer_remaining(b, r) ->
isc_buffer_remainingregion(b, r)
Buffer types were removed, so the ISC_BUFFERTYPE_*
macros are no more, and the type argument to
isc_buffer_init and isc_buffer_allocate were removed.
isc_buffer_putstr is now void (instead of isc_result_t)
and requires that the caller ensure that there
is enough available buffer space for the string.
2000-04-27 00:03:12 +00:00
David Lawrence
f6cdcafa33
100. [cleanup] <isc/random.h> does not need <isc/int.h> or
...
<isc/mutex.h>. isc_random_t moved to <isc/types.h>.
2000-04-26 17:25:03 +00:00
Andreas Gustafsson
16a107c904
rate limiter now has separate shutdown() and
...
destroy() functions, and it guarantees that all queued
events are delivered even in the shutdown case
2000-04-26 17:10:32 +00:00
David Lawrence
b5dbab9c3f
typedef isc_ondestroy_t moved to <isc/types.h>
2000-04-26 17:06:44 +00:00
Andreas Gustafsson
8e04f382b6
updated comments based on API review
2000-04-26 17:04:11 +00:00
Andreas Gustafsson
bfcb9c7878
added ISC_EVENTCLASS_RATELIMITER
2000-04-26 16:59:18 +00:00
Andreas Gustafsson
e2e72750af
added ISC_EVENTATTR_CANCELED
2000-04-26 16:58:17 +00:00
David Lawrence
33e927bf86
98. [cleanup] <isc/print.h> does not need <stdarg.h> or <stddef.h>
...
unless ISC_PLATFORM_NEEDVSNPRINTF is defined.
2000-04-26 02:18:59 +00:00
David Lawrence
3e6b98586e
<isc/ondestroy.h> does not need <stddef.h> or <isc/event.h>.
2000-04-26 01:54:48 +00:00
David Lawrence
947bd6c648
<isc/mutex.h> does not need <isc/lang.h> or <isc/result.h>.
2000-04-26 01:29:27 +00:00
David Lawrence
878363c06b
95. [cleanup] <isc/mutexblock.h> does not need <isc/result.h>.
2000-04-26 01:18:24 +00:00
David Lawrence
a890fbefa3
C++ reserves the word "template"; use "templet" as the parameter to
...
isc_file_openunique
2000-04-26 00:45:24 +00:00
David Lawrence
b8957f3496
93. [cleanup] <isc/msgcat.h> does not need <isc/result.h>.
2000-04-26 00:21:42 +00:00
David Lawrence
c7f22f83aa
92. [cleanup] <isc/mem.h> does not need <stddef.h>, <isc/boolean.h>,
...
or <isc/result.h>.
2000-04-26 00:15:39 +00:00
David Lawrence
c4717613e4
<isc/log.h> does not need <sys/types.h> or <isc/result.h>
2000-04-25 23:44:20 +00:00
Andreas Gustafsson
fc4256ffdd
need <isc/lang.h>
2000-04-25 23:29:02 +00:00
David Lawrence
e8d3d40f0b
do not include obsolete rbtgen.h in HEADERS
2000-04-25 23:16:59 +00:00
David Lawrence
11e0238bbe
do not include obsolete mktemplate.h and ufile.h in HEADERS
2000-04-25 23:15:38 +00:00
David Lawrence
d41c9885ec
<isc/lex.h> does not need <stddef.h>
2000-04-25 23:08:16 +00:00
David Lawrence
334a4057e0
added isc_interface_t and isc_interfaceiter_t
2000-04-25 23:07:46 +00:00
David Lawrence
38feb01f1b
88. [cleanup] <isc/interfaceiter.h> does not need <isc/result.h> or
...
<isc/mem.h>. isc_interface_t and isc_interfaceiter_t
moved to <isc/types.h>.
2000-04-25 22:55:50 +00:00
David Lawrence
802aa6f2b7
87. [cleanup] <isc/heap.h> does not need <isc/boolean.h>,
...
<isc/mem.h> or <isc/result.h>.
(... and now heap.c needs <isc/mem.h>.)
2000-04-25 22:32:26 +00:00
David Lawrence
f42e994baf
added isc_bufferlist_t
2000-04-25 22:30:13 +00:00
David Lawrence
5baea3a021
Move isc_bufferlist_t to isc/types.h.
...
Do not need isc/buffer.h or isc/list.h.
2000-04-25 22:29:55 +00:00
David Lawrence
9cd39d7306
include <isc/types.h> instead of <isc/time.h> and <isc/result.h>
2000-04-25 22:04:08 +00:00
David Lawrence
408c676732
85. [cleanup] <isc/bufferlist.h> does not need <isc/mem.h>,
...
<isc/region.h> or <isc/int.h>.
2000-04-25 22:02:54 +00:00
David Lawrence
cc43f2461d
82. [cleanup] <isc/buffer.h> does not need <isc/list.h>.
2000-04-25 21:44:27 +00:00
David Lawrence
58bc93c3dd
81. [cleanup] <isc/int.h> and <isc/boolean.h> do not need
...
<isc/lang.h>.
2000-04-25 21:16:12 +00:00
David Lawrence
7ce81e15fa
80. [cleanup] <isc/print.h> does not need <stdio.h> or <stdlib.h>.
...
(and now dns/ttl.c needs it since it was taken out of isc/print.h)
2000-04-25 20:20:31 +00:00
David Lawrence
0a7bde9fa8
isc_interval_t and isc_time_t typedefs moved to isc/types.h
2000-04-25 19:33:07 +00:00
David Lawrence
cc19a2200f
Removed mktemplate.h, ufile.h. Install file.h instead.
2000-04-24 21:49:50 +00:00
David Lawrence
8b7304a34c
73. [func] New "file" API in libisc, including new function
...
isc_file_getmodtime, isc_mktemplate renamed to
isc_file_mktemplate and isc_ufile renamed to
isc_file_openunique. By no means an exhaustive API,
it is just what's needed for now.
2000-04-24 21:36:10 +00:00
David Lawrence
945874face
rbtgen was never used by anything
2000-04-24 20:45:19 +00:00
Michael Graff
e44487bfc2
convert sender, arg, action, etc. to ev_sender, ev_arg, ev_action, etc.
2000-04-17 19:22:44 +00:00
Bob Halley
64b1a68e10
isc_task_create() no longer takes an mctx.
...
isc_task_mem() has been eliminated.
Use memory context reference counting.
2000-04-12 01:34:16 +00:00
Bob Halley
fd3271152c
Add isc_mem_attach(), isc_mem_detach(), isc_mem_preallocate(), and
...
isc_mem_setsplit(). Rename isc_mem_destroy_check() to
isc_mem_setdestroycheck(). Add isc_mem_inuse().
2000-04-12 01:24:17 +00:00
Andreas Gustafsson
0f7045b0c4
moved a few more typedefs to <isc/types.h>: isc_region_t,
...
isc_textregion_t, isc_lex_t
2000-04-10 21:57:24 +00:00
Andreas Gustafsson
e9da40a783
no need to include <isc/buffer.h>, <isc/result.h> from <isc/base64.h>
2000-04-10 21:35:48 +00:00
Andreas Gustafsson
e3b279bfa9
no need to include <isc/buffer.h>, <isc/result.h>, <isc/mem.h> from <isc/base64.h>
2000-04-10 21:33:36 +00:00
Andreas Gustafsson
dc46294525
added log.h and ondestroy.h to HEADERS
2000-04-04 23:04:30 +00:00
Andreas Gustafsson
e247a05711
need <sys/types.h>
2000-04-04 23:03:44 +00:00
Andreas Gustafsson
8f804834e2
moved logging typedefs from <isc/log.h> to <isc/types.h>
2000-04-04 20:09:05 +00:00
Andreas Gustafsson
e6e674f6a5
no need to include <isc/ondestroy.h> from <isc/mem.h>
2000-04-04 20:06:29 +00:00
Andreas Gustafsson
b7bd8a11e4
headers should not #include themselves
2000-04-04 19:25:33 +00:00
Brian Wellington
fcdd365bbf
Moved isc_buffer_t typedef from buffer.h to types.h
2000-03-28 02:59:46 +00:00
Andreas Gustafsson
5fe5a0c026
revised logging categories
2000-03-23 00:55:12 +00:00
Bob Halley
435532822d
deal with systems missing in6addr_any
2000-03-22 22:07:17 +00:00
Andreas Gustafsson
a782776175
do not indent CVS ID comments by one space
2000-03-21 00:37:36 +00:00
David Lawrence
0e766071d0
clarified requires/ensures for isc_task_detach and isc_task_sendanddetach
2000-03-18 00:41:27 +00:00
David Lawrence
d5db7668a7
added ISC_EVENTCLASS_OMAPI
2000-03-18 00:40:33 +00:00
Bob Halley
6a02971368
don't define ISC_MEMPOOL_NAMES
2000-03-16 22:40:48 +00:00
Michael Graff
ae8d0aedd6
implement pktinfo through dispatcher -> named client
2000-03-14 03:30:52 +00:00
David Lawrence
1be10d46cb
require name != NULL in *byname
2000-03-04 16:41:14 +00:00
David Lawrence
ff30a206ec
added isc_log_categorybyname and isc_log_modulebyname
2000-03-04 00:43:40 +00:00
James Brister
20fc568036
isc_mem_allocate debug macro had too many arguments.
2000-03-02 04:00:46 +00:00
David Lawrence
a8d34ca88c
remove ISC_LOG_DEBUGONLY from comment about default_debug
2000-03-01 21:30:49 +00:00
David Lawrence
863ac191b4
ISC_LOG_DEBUGONLY flag added.
...
Documentation updates to reflect recent code changes:
isc_logconfig_*
ISC_LOG_DEBUGONLY
2000-03-01 17:33:04 +00:00
David Lawrence
5f89718b7d
Debugging versions of isc_mem_allocate, isc_mem_free and isc_mem_strdup.
...
This allows memory allocation/freeing to be tracked with ISC_MEM_DEBUG
as with isc_mem_get/isc_mem_put. (To get the debugging information
before, mem.c itself needed to be recompiled with ISC_MEM_DEBUG on.)
2000-02-26 19:59:30 +00:00
David Lawrence
edcd1247ad
isc_log_create now has three parameters, the additional one used to
...
return an isc_logconfig_t. isc_log_cretechannel and isc_log_usechannel
now take an isc_logconfig_t instead of an isc_log_t; this is to address
reconfiguration in a multithreaded environment.
isc_logconfig_create, isc_logconfig_get, isc_logconfig_use and
isc_logconfig_destroy were added to work with the new isc_logconfig_t type.
isc_logregister_categories and dns_log_init are now both void rather than
returning isc_result_t.
2000-02-26 19:57:02 +00:00
Andreas Gustafsson
b356893425
added isc_netaddr_equal()
2000-02-15 00:28:48 +00:00
James Brister
80d19f3523
Support ondestroy notification for isc_mem_t.
2000-02-10 16:10:41 +00:00
James Brister
e32ccd2b77
Supporting type and routines for ondestroy event notifcation.
2000-02-10 16:05:13 +00:00
Andreas Gustafsson
5d82424f5d
New source file netaddr.c; new functions isc_netaddr_eqprefix(),
...
isc_netaddr_masktoprefixlen(), isc_netaddr_fromsockaddr(),
isc_netaddr_fromin(), isc_netaddr_fromin6(), isc_sockaddr_fromnetaddr();
new result code ISC_R_MASKNONCONTIG
2000-02-09 22:52:37 +00:00
Bob Halley
a2f3208f7f
add DESTDIR support
2000-02-08 21:50:23 +00:00
Andreas Gustafsson
3a2487c9e3
added new result code ISC_R_IGNORE, to be used
...
by the interface iterator internals to indicate that an
interface is to be ignored. Previously ISC_R_FAILURE was
used for this purpose.
2000-02-07 18:35:37 +00:00
Bob Halley
4dafa5b8ed
add missing .h files
2000-02-04 01:41:25 +00:00
Bob Halley
ca41b452ed
update copyrights
2000-02-03 23:08:31 +00:00
David Lawrence
2b556032fd
(un)define ISC_PLATFORM_HAVENETINET6IN6H
2000-02-02 13:25:22 +00:00
Andreas Gustafsson
d5017b061c
typo in comment
2000-02-02 00:38:28 +00:00
David Lawrence
c5f33ba0f0
added isc_sockaddr_getport
2000-01-31 21:52:17 +00:00
Andreas Gustafsson
994a1996e4
spell ISC_*_H in uppercase
2000-01-31 17:41:49 +00:00
Mark Andrews
b1058f88f9
Add isc_mktemplate and isc_ufile
2000-01-31 07:31:31 +00:00
Mark Andrews
8a1930d026
Add test for long long int == long int.
2000-01-28 01:47:25 +00:00
Bob Halley
043c6c62e6
add isc_sockaddr_setport()
2000-01-26 19:22:41 +00:00
Bob Halley
a790a11730
allow tasks to be named and tagged
2000-01-25 19:25:20 +00:00
Bob Halley
010170f711
add ISC_R_RELOAD
2000-01-22 01:39:17 +00:00
Mark Andrews
76ede14af1
Add strsep test results to platform.h
2000-01-21 02:01:10 +00:00
Mark Andrews
483a5a91ad
add isc_strsep() and isc/string.h
2000-01-21 01:40:27 +00:00
Mark Andrews
5152622c34
update comment
2000-01-18 05:38:19 +00:00
Bob Halley
e0d8e8073f
If creating a task and the manager is exiting, return ISC_R_SHUTTINGDOWN
2000-01-17 23:41:33 +00:00
Andreas Gustafsson
8c36d7eeb9
added isc_quota_attach(), isc_quota_detach()
2000-01-15 00:32:42 +00:00
Bob Halley
f511a9e219
add isc_sockaddrlist_t
2000-01-12 03:01:19 +00:00
Andreas Gustafsson
5f2d1b96ac
new type isc_quota_t, for client (and other) quotas
2000-01-11 21:08:13 +00:00
Andreas Gustafsson
c12e9c47b3
changed comments for isc_socket_detach() to reflect reality
2000-01-10 22:22:53 +00:00
Michael Graff
0fd03d2a66
fix up comments
2000-01-06 23:07:21 +00:00
David Lawrence
0bd4e3591a
reversing bogus checkin
2000-01-06 15:02:16 +00:00
David Lawrence
cc1b6f86f2
added ISC_RESULTCLASS_OMAPI
2000-01-06 14:47:39 +00:00
Mark Andrews
1205f38a4c
max_token is now a hint as to largest token.
1999-12-23 05:24:12 +00:00
Mark Andrews
4d22a83c38
RWLOCK/RWUNLOCK to return __FILE__ and __LINE__.
...
Use #ifdef ISC_UTIL_TRACEON so that tracing can be turned on per file.
e.g.
#define ISC_UTIL_TRACEON
#include <isc/util.h>
1999-12-22 06:14:59 +00:00
Michael Graff
ec075c6efb
revert assertions.h, and add UNUSED() to util.h
1999-12-16 22:42:05 +00:00