Commit Graph
1862 Commits
Author SHA1 Message Date
Brian Wellington 281fce5ed7 When tracing allocations, don't die with an assertion failure if
isc_mem_setdestroycheck(mctx, ISC_FALSE) was called.  Also, print the
context in the trace statement.
2000-08-09 23:03:15 +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 450e48205f Ensure argument to isdigit() is within valid range by "&"ing with 0xff. 2000-08-03 13:44:02 +00:00
David Lawrence e15ecf08f2 use ISC_TF() to set an isc_boolean_t return value 2000-08-02 15:28:13 +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
Brian Wellington 153d59973f Allow keyboard operations to be interrupted by the interrupt or quit
character.
2000-07-31 20:36:08 +00:00
Brian Wellington eefb0a0720 If there are no writers waiting, always let new readers in. Also change the
hardcoded default read and write quota values to #defines.
2000-07-30 17:57:48 +00:00
Michael Graff a4cb99bf12 pasto 2000-07-27 23:31:20 +00:00
Brian Wellington 677045ed61 356. [cleanup] isc_task_send no longer requires event->sender to
be non-null.
2000-07-27 22:24:54 +00:00
David Lawrence 15a4474541 word wrap copyright notice at column 70 2000-07-27 09:55:03 +00:00
David Lawrence febf5f8b55 355. [func] Added isc_dir_createunique(), similar to mkdtemp(). 2000-07-27 02:04:36 +00:00
David Lawrence 976f44baa3 needed isc/string.h for memset() prototype 2000-07-26 22:36:34 +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 6d016e34bf minor formatting issue -- kill trailing whitespace 2000-07-26 20:56:39 +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
Brian Wellington da892e9733 Typo in comment - isc_time_microdiff returns microseconds, not milliseconds. 2000-07-14 16:59:32 +00:00
Andreas Gustafsson 4532e9e7c6 in isc_log_wouldlog(), deal with the possibility of lctx
being NULL
2000-07-13 02:28:18 +00:00
Andreas Gustafsson 0072e42780 use isc_log_wouldlog() in manager_log() 2000-07-13 01:38:40 +00:00
Brian Wellington 2935e25e99 Removed debugging code that is no longer useful. 2000-07-13 01:22:56 +00:00
Brian Wellington febc974d0f Use isc_log_wouldlog() to avoid calling strerror() whenever possible. 2000-07-13 01:13:53 +00:00
Andreas Gustafsson 211ac47e07 use isc_log_wouldlog() to avoid unnecessary formatting work
when the debug level does not warrant logging
2000-07-13 00:25:38 +00:00
Andreas Gustafsson 30576c592b 330. [func] New function isc_log_wouldlog(). 2000-07-13 00:19:02 +00:00
Brian Wellington a6f31a3fd0 Only install default handlers for SIGTERM and SIGWAIT if we haven't installed
other handlers already.
2000-07-12 01:46:57 +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
Brian Wellington 838f13fbdc Set default signal handlers for SIGINT and SIGTERM (SIGHUP already had one).
This doesn't appear to have an effect on any platform, but it seems like a
good idea.
2000-07-11 19:18:05 +00:00
Mark Andrews 5c0a406664 325. [bug] isc_lex_gettoken was processing octal strings when
ISC_LEXOPT_CNUMBER was not set.
2000-07-11 02:44:54 +00:00
Andreas Gustafsson a4db2a47f5 incremented library version numbers to 1.0.0 2000-07-10 22:20:43 +00:00
Michael Graff 401bea7527 set connected and bound when the connect completes 2000-07-10 19:40:06 +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
David Lawrence 641689bff4 note in the comment that isc_time_microdiff returns 0 if t1 < t2.
no need to pull up.
2000-06-30 22:40:32 +00:00
Andreas Gustafsson fe8d130967 make install didn't work when using separate build dir 2000-06-30 00:29:29 +00:00
Michael Graff 2e0e781ba4 use the correct function name in debugging statements 2000-06-29 07:40:58 +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
Andreas Gustafsson 33e482fa3e edited comment, no functional change 2000-06-27 21:04:12 +00:00
Michael Sawyer d8afbf2f30 Force SIGHUP to be in state SIG_DFL when starting, since Solaris would break
that, if run from under cron.
2000-06-27 18:49:14 +00:00
Andreas Gustafsson a7d4703552 commented 2000-06-26 22:59:22 +00:00
David Lawrence 2298aec5a1 test for high bit being set in isc_file_settime needed to use an
unsigned long long constant to work correctly on platforms that have
a 64 bit timeval.tv_sec and 32 bit ints.
2000-06-26 21:33:57 +00:00
Brian Wellington 98164bc1ad Printing a size_t as either %d or %u doesn't work on some 64 bit architectures. 2000-06-26 20:27:42 +00:00
Michael Graff a72ca8608c revert part of a previous commit. This makes net/host unreachable hard errors again. 2000-06-26 20:16:01 +00:00
Brian Wellington 0191211ce5 Casting void * to unsigned long works better than casting to isc_uint32_t 2000-06-26 18:41:06 +00:00
Michael Graff 53b63f5467 minor change to make certain 'on' is defined. This used to be used only by USE_CMSG, but is also used to turn on BSD compatibility, so test on SO_BSDCOMPAT too. 2000-06-26 18:20:25 +00:00
Michael Graff 18a8c21c77 turn on BSD compatibility to avoid the annoying linux 'return host unreachable for unconnected UDP datagrams' bug. 2000-06-26 17:48:26 +00:00
James Brister 8775909be9 282. [bug] lexer now returns ISC_R_RANGE if parsed integer is
too big for an usigned long.
2000-06-23 22:32:10 +00:00
David Lawrence 24de6390c1 "entropy.c", line 1319: remark(1552): variable "ent" was set but never used 2000-06-23 22:06:47 +00:00
David Lawrence 438d4a305d include order lint 2000-06-23 21:43:46 +00:00
Michael Graff 79f9369c4f gc DOIO_UNEXPECTED as it was never used 2000-06-23 19:58:38 +00:00