2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 13:08:06 +00:00

259 Commits

Author SHA1 Message Date
Michael Graff
2fc337ec38 add isc_socket_isbound() 2000-05-11 07:39:17 +00:00
Michael Graff
6849d91cd7 mark accepted connections as connected and bound. 2000-05-11 06:35:20 +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
f019e00452 Add (commented out) 'must be bound' checking 2000-05-10 21:17:49 +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
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
8b9ad57c12 Comment about unavoidable HP/UX compiler warning:
warning 541: Integer overflow during conversion.
when their own SIO* macros are used in ioctl calls.
2000-05-08 23:36:19 +00:00
David Lawrence
0c5a46afed comment about why unistd.h is required 2000-05-08 21:10:35 +00:00
Michael Graff
ab7c671292 add <stdlib.h> for mkstemp on NetBSD 2000-05-08 20:05:27 +00:00
David Lawrence
6e3a8256ee need <sys/time.h> on some platforms 2000-05-08 16:30:49 +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
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
99b24bbca2 include <isc/print.h> 2000-05-03 22:04:49 +00:00
Michael Graff
4142e747f2 use new isc_lctx logging 2000-05-03 21:09:49 +00:00
David Lawrence
b99d080717 141. [cleanup] <isc/stdtime.h> does not need <time.h> or <isc/result.h>. 2000-04-28 23:53:55 +00:00
David Lawrence
b905ff7cbe 140. [cleanup] <isc/time.h> does not need <time.h> or <isc/result.h>. 2000-04-28 23:23:52 +00:00
David Lawrence
23a0970477 139. [cleanup] <isc/net.h> now includes <isc/types.h> instead of
<isc/int.h> and <isc/result.h>.
2000-04-28 23:14:45 +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
344e909ce9 134. [cleanup] <isc/dir.h> does not need <limits.h>. 2000-04-28 21:29:27 +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
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
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
364a82f7c2 include isc/util.h 2000-04-28 01:12:23 +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
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
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
2c34cafc1c include <isc/time.h> 2000-04-25 22:04:26 +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
0a7bde9fa8 isc_interval_t and isc_time_t typedefs moved to isc/types.h 2000-04-25 19:33:07 +00:00
David Lawrence
acb62d86dc oops, had not removed ufile.c from SRCS 2000-04-24 22:11:46 +00:00
David Lawrence
c4819ad3e2 subsumed by file.c 2000-04-24 21:51:09 +00:00
David Lawrence
3935db0f04 Include {os}/file.o in libisc.a.
No longer include {os}/ufile.o and {os}/mktemplate.o in libisc.a.
2000-04-24 21:47:34 +00:00
David Lawrence
2cc9a6a0f7 Prototype for new function isc_time_subtract.
Comment cleanups (ie, many "'t' are a valid." comments made grammatically
correct).

win32's file.h added missing ISC_LANG_ENDDECLS.
2000-04-24 21:38:55 +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
585529aaeb 71. [cleanup] Made explicit the implicit REQUIREs of
isc_time_seconds, isc_time_nanoseconds, and
                        isc_time_subtract.

  70.   [func]          isc_time_set() added.
2000-04-24 20:58:03 +00:00
Michael Graff
7ce10e3d8f quiet a compiler warning 2000-04-19 22:36:07 +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
Michael Graff
0ed4c4ee35 make unreachable hard errors. 2000-04-14 15:38:28 +00:00
Mark Andrews
b61bbad878 Freebsd 4.0 needs sys/param.h for ALIGN 2000-04-13 08:10:18 +00:00
Bob Halley
c653686224 fix typo 2000-03-27 23:46:45 +00:00
Bob Halley
435532822d deal with systems missing in6addr_any 2000-03-22 22:07:17 +00:00
Bob Halley
0e58c0998d don't catch SIGQUIT 2000-03-18 01:29:48 +00:00
Michael Graff
b206fa17b2 allocate space for cmsg more correctly. Grr. 2000-03-15 20:05:06 +00:00
Michael Graff
788354c051 Currently, descriptors with changes are sent to the watcher via a pipe.
Previously, both ends were set to non-blocking I/O.  Now, only the
reader is set non-blocking.  This means the writer will block for a while
if the pipe fills, but since the watcher is in a different thread from
the reader, the pipe will eventually drain, and the writer can continue.

This is really nothing more than a lock, just not a mutex-type lock.
2000-03-15 19:48:11 +00:00
Michael Graff
ae8d0aedd6 implement pktinfo through dispatcher -> named client 2000-03-14 03:30:52 +00:00
Michael Graff
0205c5a4ad fix case where CMSG_SPACE() is not a macro 2000-03-13 21:09:56 +00:00
David Lawrence
114d0d1642 added isc_time_seconds, isc_time_nanoseconds 2000-03-10 17:49:27 +00:00