Commit Graph
55 Commits
Author SHA1 Message Date
Tinderbox User 2a074779d4 update copyright notice / whitespace 2015-09-18 23:46:09 +00:00
Mark Andrews 0ae238037c 4216. [cleanup] Silence static analysis warnings. [RT #40649]
(cherry picked from commit 705d56b47a)
2015-09-18 23:36:48 +10:00
Tinderbox User 864ca7ce33 update copyright notice 2014-01-09 23:45:53 +00:00
Evan Hunt 8c7ce6d3e6 [v9_9] replace memcpy() with memmove().
3698.	[cleanup]	Replaced all uses of memcpy() with memmove().
			[RT #35120]

(cherry picked from commit ebe54c7d2221c6a0a4b3d96bcae3280c823a45e6)
2014-01-08 16:38:56 -08:00
Tinderbox User 1a963ae410 update copyright notice 2012-12-08 23:45:39 +00:00
Mark Andrews 037445e774 3437. [bug] isc_buffer_init -> isc_buffer_constinit to initialise
buffers with constant data. [RT #32064]

Squashed commit of the following:

commit 3433b96bf11f8c90ccbe412f01d02a6d8bbc2d33
Author: Mark Andrews <marka@isc.org>
Date:   Sat Dec 8 12:41:16 2012 +1100

    isc_buffer_init -> isc_buffer_constinit

commit c22dbcc1122a0a44f7b46068e0ccbc25353a57d5
Author: Mark Andrews <marka@isc.org>
Date:   Sat Dec 8 12:38:39 2012 +1100

    isc_buffer_init -> isc_buffer_constinit

commit 900820416c45c1887d0d22d7a010df60a903bd56
Author: Mark Andrews <marka@isc.org>
Date:   Sat Dec 8 12:24:19 2012 +1100

    remove isc_buffer_reconstinit

commit f815711c17b05f9961786a90b9bae902d3c01494
Author: Mark Andrews <marka@isc.org>
Date:   Wed Dec 5 15:42:57 2012 +1100

    add isc_buffer_constinit
2012-12-08 12:51:42 +11:00
Automatic Updater 3398334b3a update copyright notice 2008-09-25 04:02:39 +00:00
Mark Andrews 6098d364b6 2448. [func] Add NSEC3 support. [RT #15452] 2008-09-24 02:46:23 +00:00
Automatic Updater 70e5a7403f update copyright notice 2007-06-19 23:47:24 +00:00
Automatic Updater ec5347e2c7 update copyright notice 2007-06-18 23:47:57 +00:00
Mark Andrews 186e7f37c9 2122. [func] Experimental http server and statistics support
for named via xml.
2006-12-21 06:03:37 +00:00
Mark Andrews 377231eb95 update copyright notice 2006-12-05 00:13:48 +00:00
Mark Andrews 289ae548d5 2105. [func] GSS-TSIG support (RFC 3645). 2006-12-04 01:54:53 +00:00
Mark Andrews 69fe9aaafd update copyright notice 2005-04-29 00:24:12 +00:00
Rob Austein ab023a6556 1851. [doc] Doxygen comment markup. [RT #11398] 2005-04-27 04:57:32 +00:00
Mark Andrews dafcb997e3 update copyright notice 2004-03-05 05:14:21 +00:00
Mark Andrews a7038d1a05 copyrights 2002-02-20 03:35:59 +00:00
Brian Wellington e74100e3f4 move isc_region_compare to isc/region.[ch], not isc/buffer.[ch] 2002-01-05 07:28:44 +00:00
Olafur Gudmundsson 90e303b114 Adding function isc_region_compare and using in instead of compare_region in lib/dns 2002-01-05 07:05:28 +00:00
Brian Wellington 499b34cea0 copyright update 2001-01-09 22:01:04 +00:00
Brian Wellington acba1142b4 The region passed to isc_buffer_copyregion() should be const. 2000-08-17 02:09:12 +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 9c3531d72a add RCS id string 2000-06-22 22:00:42 +00:00
David Lawrence 49dbdb0186 update_copyrights 2000-06-21 22:05:07 +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
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
Bob Halley 364a82f7c2 include isc/util.h 2000-04-28 01:12:23 +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
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
Bob Halley ca41b452ed update copyrights 2000-02-03 23:08:31 +00:00
Bob Halley f8d63d12dd Cast to (unsigned char *) in isc_buffer_putstr() because pointer arithmetic
on (void *) is not well defined.
1999-12-15 22:29:21 +00:00
Mark Andrews 8a21ac0f09 Add isc_buffer_putstr(). 1999-12-13 02:18:02 +00:00
Andreas Gustafsson 74da83876c don't do pointer arithmetic on null pointers 1999-10-30 01:35:18 +00:00
Andreas Gustafsson e5b0c46fbb added isc_buffer_putmem() 1999-10-29 23:50:55 +00:00
David Lawrence c910282c40 Shut up MSVC++ compiler warning about loss of precision when assigning
8 bits masked out of a 32 bit int to individual bytes.
1999-09-23 17:54:57 +00:00
Bob Halley cae6ddd340 add isc_buffer_copyregion 1999-09-22 00:35:59 +00:00
Michael Graff 07a9b8b588 Make a few helper macros which will return lengths of regions rather than
requiring an isc_region_t to fill in.  Use these macros in a few places.
1999-09-10 21:13:39 +00:00
Michael Graff 3df43dad43 Make the ISC_BUFFER_VALID() be exported from buffer.h, so bufferlist.h
can use internal buffer pointers without fear by first performing the
same validity check used in the buffer.c file.  This eliminates a
function call inside a loop, and the bufferlist.c file is really a
superset of buffers in many ways already.
1999-09-10 01:54:08 +00:00
Michael Graff e4f133deed Add isc_buffer_usedcount() and availablecount() -- which should become macros 1999-09-06 04:45:13 +00:00
Michael Graff 4556681e19 snapshot socket.[ch] code and commit dynbuf_t -> buffer_t changes 1999-09-02 02:10:44 +00:00
Brian Wellington 71b306bf33 add isc_buffer_{get,put}uint8 1999-05-18 13:44:52 +00:00
Michael Graff 84d79ecd50 implement isc_dynbuffer_reset() 1999-04-29 05:59:51 +00:00
Michael Graff 441a57f959 Add support for dyamic buffers. These are allocated using
isc_dynbuffer_allocate() and freed with isc_dynbuffer_free(), and are
a linkable buffer type with a built-in data area.
1999-04-19 23:56:36 +00:00
Michael Graff 22f735acbc implement and use isc_buffer_putuint{16,32}() 1999-01-27 06:18:45 +00:00
Bob Halley c98d185d0c add active region; enforce invariants about current 1999-01-20 02:42:22 +00:00
Bob Halley 08dbab20ef lint 1999-01-09 02:39:39 +00:00
Bob Halley 63bd57250e add isc_buffer_getuint{16,32} 1999-01-07 02:06:48 +00:00