Commit Graph
1026 Commits
Author SHA1 Message Date
Andreas Gustafsson eb5670ecd2 send task trace output to stderr, not stdout, so that
it gets buffered synchronously with logging output sent to stderr
2000-08-24 01:40:46 +00:00
Andreas Gustafsson ce4ccd5d7f const correctness 2000-08-24 01:38:46 +00:00
Andreas Gustafsson 6cab5e204c write ASCII NUL as '\0', not 0 2000-08-23 02:21:16 +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
Andreas Gustafsson a3e7b6450e style 2000-08-10 23:42:17 +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
Brian Wellington 3d37f10b91 On send, treat EPERM like ISC_R_HOSTUNREACH. send() seems to return EPERM
on Linux when firewall rules block the send.
2000-08-10 21:47:46 +00:00
Brian Wellington cd7ffa4c12 381. [bug] Check for IPV6_RECVPKTINFO and use it instead of
IPV6_PKTINFO if found. [RT #229]
2000-08-10 00:05:45 +00:00
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