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

178 Commits

Author SHA1 Message Date
Andreas Gustafsson
1299e93989 1011. [cleanup] Removed isc_dir_current(). 2001-09-20 21:21:53 +00:00
Mark Andrews
ad8e6236a4 add missing const to declaration. 2001-09-20 06:50:08 +00:00
Andreas Gustafsson
26f327f1f5 const correctness 2001-09-05 17:22:55 +00:00
Andreas Gustafsson
c8563aaf86 added isc_time_formattimestamp() (Unix only so far);
call it from log.c [RT #1687]
2001-08-31 21:51:27 +00:00
Mark Andrews
4b87939256 strerror() -> isc__strerror() [RT #1689] 2001-08-31 05:57:58 +00:00
Mark Andrews
c654449ccf isc__strerror 2001-08-30 04:33:20 +00:00
Mark Andrews
28fc90e6c8 #857 was incomplete, ISC_MAGIC was not being used everwhere it should have been.
'magic' was not being declared consistantly.
some #include <isc/magic.h> were missing from other include files.
NS_SERVER_VALID was not using ISC_MAGIC_VALID.
2001-08-28 03:58:29 +00:00
Mark Andrews
bddfe77128 936. [func] Warn when non dotted decimal quad's are used.
[RT #1084]

 935.   [bug]           inet_pton failed to reject leading zeros.
2001-07-16 03:06:53 +00:00
Mark Andrews
9d99e3fda1 924. [port] Extend pre-RFC2133 support. [RT #987] 2001-07-09 08:07:41 +00:00
Andreas Gustafsson
305795c093 finish app.h move 2001-07-06 22:12:21 +00:00
Andreas Gustafsson
675a191f43 moved <isc/app.h> to OS-independent include directory 2001-07-06 19:50:05 +00:00
Mark Andrews
2bc98b7d91 910. [port] Some pre-RFC2133 IPv6 do not define IN6ADDR_ANY_INIT. 2001-06-25 03:56:58 +00:00
David Lawrence
04260c5c48 895. [func] New function, isc_dir_current(), akin to POSIX's
getcwd().
2001-06-08 23:50:32 +00:00
Brian Wellington
d0b6ece407 ISC_LANG_BEGINDECLS -> ISC_LANG_ENDDECLS 2001-06-01 01:11:28 +00:00
David Lawrence
64c7a503c2 ensure that INADDR_LOOPBACK is defined 2001-05-31 10:54:51 +00:00
Brian Wellington
303243b9d4 Add isc/unix/syslog.c with a function to convert strings to syslog facilities. 2001-03-02 19:25:19 +00:00
Mark Andrews
fd50497bbe isc_dir_chroot() 2001-01-29 03:17:45 +00:00
Brian Wellington
499b34cea0 copyright update 2001-01-09 22:01:04 +00:00
Mark Andrews
4e7942dc76 648. [port] Add support for pre-RFC2133 IPv6 implementations. 2001-01-03 13:13:14 +00:00
David Lawrence
b8ebf57228 fix a rather stupid incomplete cut-n-pasting job of in the
ISC_PLATFORM_FIXIN6ISADDR block for UnixWare.
2001-01-01 22:02:27 +00:00
David Lawrence
e544b507b8 602. [func] Cope automatically with UnixWare's broken
IN6_IS_ADDR_* macros. [RT #539]
2000-12-08 00:55:51 +00:00
David Lawrence
1097943242 would have helped if the MIN/MAX for all of the signed integers were not
reversed.
2000-11-14 23:41:46 +00:00
David Lawrence
be9a4bd82a symbolic constants for integral maximums and signed integral minimums 2000-11-14 23:35:43 +00:00
Andreas Gustafsson
922e6a3c2a 478. [bug] "make install" failed if the directory specified with
--prefix did not already exist.
2000-09-20 19:06:16 +00:00
Brian Wellington
1b32bc7da1 417. [func] Add isc_app_block() and isc_app_unblock(), which
allow an application to handle signals while
                        blocking.
2000-09-01 21:31:54 +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
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
Brian Wellington
da892e9733 Typo in comment - isc_time_microdiff returns microseconds, not milliseconds. 2000-07-14 16:59:32 +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
David Lawrence
438d4a305d include order lint 2000-06-23 21:43:46 +00:00
David Lawrence
544f8fd0be protect sys/types.h from check-includes.pl removal recommendation 2000-06-23 03:08:18 +00:00
David Lawrence
b654509b18 protect limits.h from check-includes.pl removal recommendation 2000-06-23 03:07:45 +00:00
David Lawrence
9c3531d72a add RCS id string 2000-06-22 22:00:42 +00:00
Michael Graff
9f95b0199c add an argument to indicate how long to wait before draining the keyboard's input queue. This keeps people from overrunning input into the shell, etc. 2000-06-22 00:25:33 +00:00
David Lawrence
49dbdb0186 update_copyrights 2000-06-21 22:05:07 +00:00
Michael Graff
890fb60939 add keyboard API 2000-06-21 01:45:21 +00:00
Michael Graff
57ded06933 fix multicast test 2000-06-16 22:35:36 +00:00
Michael Graff
d80da258e3 Add isc_netaddr_ismulticast() and isc_sockaddr_ismulticast() 2000-06-15 18:23:54 +00:00
David Lawrence
5fda9ca75a redefined ISC_OFFSET_MAXIMUM 2000-06-06 22:10:10 +00:00
David Lawrence
05e3940191 made operand to left shift in ISC_OFFSET_MAXIMUM unsigned to avoid
integer overflow.
2000-05-25 16:44:25 +00:00
David Lawrence
6deb631b20 208. [func] Added ISC_OFFSET_MAXIMUM for the maximum value
of an isc_offset_t.
2000-05-25 03:34:34 +00:00
Andreas Gustafsson
b291fec7c9 offset.h was not installed by 'make install' 2000-05-22 22:46:53 +00:00
David Lawrence
e6ce1a0ea9 use _PLATFORM_NEEDINETIN6H 2000-05-18 22:43:48 +00:00
David Lawrence
6fa1cb5754 189. [func] isc_time_secondsastimet(), a new function, will ensure
that the number of seconds in an isc_time_t does not
                        exceed the range of a time_t, or return ISC_R_RANGE.
                        Similarly, isc_time_now(), isc_time_nowplusinterval(),
                        isc_time_add() and isc_time_subtract() now check the
                        range for overflow/underflow.  In the case of
                        isc_time_subtract, this changed a calling requirement
                        (ie, something that could generate an assertion)
                        into merely a condition that returns an error result.
                        isc_time_add() and isc_time_subtract() were void-
                        valued before but now return isc_result_t.

The seconds member isc_time_t on Unix platforms was changed from time_t
to unsigned int.

unix/time.c now uses macros for nanoseconds per second, nanoseconds per
microsecond and microseconds per second to make sure that the right
number of zeros appears each place the constant is used.

unix/time.c functions which take initialized isc_(interval|time)_t arguments
INSIST() that the nanoseconds value is less than one full second.

unix/time.c's isc_time_microdiff was broken because it did multiplication and
addition with unsigned integers and attempted to set them a 64 bit int to
avoid overflow, but C's ints don't promote to 64 bits on machines that only
have 32 bit longs.  Fixed.

Added all the pertinent documentation to time.h.
2000-05-18 17:08:32 +00:00
David Lawrence
e52750239e Changed the CPP symbol it uses from *_HAVENETINET6* to *_NEEDNETINET6*
to better clarify what is going on with regard to the symbol.
2000-05-13 18:18:08 +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
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