Mark Andrews
27809a2ee5
3379. [bug] isc_interval_zero and isc_time_epoch should be
...
"const (type)* const". [RT #31069 ]
2012-09-26 14:58:53 +10:00
Tinderbox User
5fa46bc916
update copyright notice
2012-03-10 23:45:53 +00:00
Mark Andrews
269c07173e
3295. [bug] Adjust isc_time_secondsastimet range check to be more
...
portable. [RT # 26542]
2012-03-08 15:30:51 +11:00
Mark Andrews
28a8f5b0de
set $Id$
2012-03-08 00:21:15 +11:00
Automatic Updater
c1aef54e14
update copyright notice
2011-03-12 04:59:49 +00:00
Mark Andrews
0874abad14
3069. [cleanup] Silence warnings messages from clang static analysis.
...
[RT #20256 ]
2011-03-11 06:11:27 +00:00
Automatic Updater
6475e22cc9
update copyright notice
2008-02-15 23:46:51 +00:00
Mark Andrews
9e8947d9e6
2333. [bug] Fix off by one error in isc_time_nowplusinterval().
...
[RT #17608 ]
2008-02-15 02:24:04 +00:00
Automatic Updater
ec5347e2c7
update copyright notice
2007-06-18 23:47:57 +00:00
Mark Andrews
cdce8b88c6
update copyright notice
2007-02-14 00:27:27 +00:00
Mark Andrews
96ea716328
2134. [func] Additional statistics support. [RT #16666 ]
2007-02-13 02:49:08 +00:00
Mark Andrews
148f27aee6
update copyright notice
2006-12-22 01:59:44 +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
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
5eb91bd90e
silence compiler warnings (HPUX/11i)
2003-07-25 00:01:16 +00:00
Danny Mayer
13f20ab1fa
Update isc_time_formattimestamp to use the 12-Dec-2001 style of datestamp. Fix badtime to be 99-Bad-9999
2001-12-19 03:46:57 +00:00
Mark Andrews
c36f45e354
1163. [func] isc_time_formattimestamp() will now reports the year.
...
The format matches BIND 8 date stamp.
2001-12-17 02:55:06 +00:00
Andreas Gustafsson
1f1d36a87b
Check return values or cast them to (void), as required by the coding
...
standards; add exceptions to the coding standards for cases where this is
not desirable
2001-11-30 01:59:49 +00:00
Mark Andrews
ae5df22719
iadd missing const
2001-09-20 06:50:34 +00:00
Andreas Gustafsson
26f327f1f5
const correctness
2001-09-05 17:22:55 +00:00
Andreas Gustafsson
ff6e834f7d
check return value of strftime()
2001-09-05 17:05:47 +00:00
Andreas Gustafsson
33f87146a8
needs #include <isc/print.h>
2001-09-05 17:03:42 +00:00
Andreas Gustafsson
6184f9fc1e
REQUIRE(len > 0)
2001-08-31 21:58:49 +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
6db92bd107
string formats
2001-08-31 04:47:59 +00:00
Andreas Gustafsson
e76d4c91bf
coding style
2001-07-09 21:06:30 +00:00
Mark Andrews
70ec7dd741
fix tv_usec in isc_time_nowplusinterval() also.
2001-02-24 10:22:20 +00:00
Mark Andrews
0fd53e151b
unse not sec
2001-02-24 02:53:38 +00:00
Mark Andrews
df0f58959e
752. [func] Correct bad tv_usec elements returned by gettimeofday().
2001-02-23 23:12:28 +00:00
Brian Wellington
499b34cea0
copyright update
2001-01-09 22:01:04 +00:00
Andreas Gustafsson
c89ac488df
472. [bug] Off-by-one error caused isc_time_add() to sometimes
...
produce invalid time values.
2000-09-18 18:43:03 +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
826c281a05
Solaris 5.6 gives this warning about a left shift to set the high bit:
...
warning: integer overflow detected: op "<<"
unless the operand is unsigned/
2000-05-24 21:36:01 +00:00
David Lawrence
604a596b5f
added an UNUSED() to shut up the irix compiler.
2000-05-24 02:39:01 +00:00
Michael Sawyer
232fd751ed
Require nanoseconds is valid, instead of t->nanoseconds, which is what we're
...
getting ready to set.
2000-05-18 18:59:38 +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
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
Bob Halley
364a82f7c2
include isc/util.h
2000-04-28 01:12:23 +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
David Lawrence
114d0d1642
added isc_time_seconds, isc_time_nanoseconds
2000-03-10 17:49:27 +00:00
Bob Halley
ca41b452ed
update copyrights
2000-02-03 23:08:31 +00:00
Bob Halley
f924db5119
1000 nanoseconds in a microsecond, not 10000
1999-11-04 21:40:49 +00:00
David Lawrence
4ad9b25e6d
new function isc_time_microdiff
1999-10-09 02:40:32 +00:00