David Lawrence
a2605214c2
135. [cleanup] Win32's <isc/condition.h> did not need
...
<isc/boolean.h>, now uses <isc/types.h> in place
of <isc/time.h>, and needed ISC_LANG_BEGINDECLS
and ISC_LANG_ENDDECLS.
2000-04-28 21:39:34 +00:00
David Lawrence
344e909ce9
134. [cleanup] <isc/dir.h> does not need <limits.h>.
2000-04-28 21:29:27 +00:00
David Lawrence
2c9c974d98
undef ISC_PLAFORM_HAVESALEN and remove obsolete emacs c-mode comment
2000-04-28 21:22: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
eefea43215
132. [cleanup] <isc/app.h> does not need <isc/task.h>, but does
...
need <isc/eventclass.h>.
2000-04-28 21:08:52 +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
c403d3f7d6
130. [cleanup] <isc/condition.h> does not need <pthread.h> or
...
<isc/boolean.h>, and now includes <isc/types.h>
instead of <isc/time.h>.
(does not need pthread.h because it *does* need isc/mutex.h, which
will be guaranteed to provide pthread.h)
2000-04-28 18:58:40 +00:00
David Lawrence
63d56ac555
removed extraneous includes; style lint
2000-04-28 18:54:49 +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
dc91d010db
128. [cleanup] <isc/dir.h> had ISC_LANG_BEGINDECLS instead of
...
ISC_LANG_ENDDECLS at end of header.
2000-04-28 17:46:30 +00:00
Michael Graff
2d3a9eee3f
namespace protection via 'static'
2000-04-28 17:29:25 +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
David Lawrence
6b7257f756
include config.h
2000-04-28 02:08:20 +00:00
Bob Halley
5188f8c6a5
include isc/util.h
2000-04-28 01:44:45 +00:00
Andreas Gustafsson
82ca33427b
declare arguments as UNUSED() when used in assertions only
2000-04-28 01:24:18 +00:00
Bob Halley
364a82f7c2
include isc/util.h
2000-04-28 01:12:23 +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
9d26bfb436
grrrrrr ... order wrong in typedef
2000-04-28 00:39:11 +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
Mark Andrews
d2ed254fb8
(..., "%03u", 2) was not zero filling
2000-04-26 21:15:14 +00:00
David Lawrence
6b526894f4
Quieted EGCS warnings from lib/isc/print.c
2000-04-26 17:45:15 +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
94da1ee12c
Needs <ctype.h>, <stdio.h> and <stdlib.h> for isdigit, snprintf and strtoul
...
respectively.
#error if ISC_PLATFORM_NEEDVSNPRINTF is not defined.
2000-04-26 02:20:31 +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