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
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
8cbd9988dc
the ipv6.h header file is now platform independent
2000-06-21 20:50:55 +00:00
David Lawrence
4acd8d2afe
build fsaccess
2000-06-20 04:09:48 +00:00
David Lawrence
a904de0bc8
OS-independent filesystem permissions
2000-06-20 04:06:01 +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
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
5610876d1b
win32 isc/condition.h did not need <isc/result.h>
2000-04-28 23:55:08 +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
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
a2605214c2
135. [cleanup] Win32's <isc/condition.h> did not need
...
<isc/boolean.h>, now uses <isc/types.h> in place
of <isc/time.h>, and needed ISC_LANG_BEGINDECLS
and ISC_LANG_ENDDECLS.
2000-04-28 21:39:34 +00:00
David Lawrence
2c9c974d98
undef ISC_PLAFORM_HAVESALEN and remove obsolete emacs c-mode comment
2000-04-28 21:22:15 +00:00
David Lawrence
738922ba7b
133. [cleanup] <isc/ipv6.h> needs <isc/platform.h>.
2000-04-28 21:19:55 +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
2d78d06402
125. [cleanup] <isc/eventclass.h>, <isc/ipv6.h>, <isc/magic.h>,
...
<isc/mutex.h>, <isc/once.h>, <isc/region.h>, and
<isc/resultclass.h> do not need <isc/lang.h>.
2000-04-28 17:19:11 +00:00
David Lawrence
37cc3f596b
oops, isc__file_mktemplate instead of isc_file_mktemplate
2000-04-26 00:44:36 +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
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
David Lawrence
11d732daac
added isc_time_seconds, isc_time_nanoseconds
...
fixed isc_time_settoepoch and isc_time_isepoch
2000-03-10 17:50:36 +00:00
Bob Halley
ca41b452ed
update copyrights
2000-02-03 23:08:31 +00:00
Mark Andrews
b1058f88f9
Add isc_mktemplate and isc_ufile
2000-01-31 07:31:31 +00:00
David Lawrence
bd3195dcec
lint
2000-01-04 20:21:03 +00:00
Michael Graff
58aaab3687
isc_stdtime_get() now returns void, not isc_result_t.
1999-12-16 23:29:07 +00:00
Bob Halley
0e1bef59f0
add isc_dir_chdir; change argument order of isc_dir_open
1999-10-31 19:08:17 +00:00
Bob Halley
89acdfd744
add comment documenting needed conversion
1999-10-30 03:52:58 +00:00
David Lawrence
ea872078bf
define isc_interval_zero and isc_time_epoch
1999-10-17 22:26:09 +00:00
James Brister
5f42ef032d
Fixed CPP macro name that wasn't changed when platform.h was created.
1999-10-10 17:11:41 +00:00
David Lawrence
d3e7d196cd
isc_time_millidiff is now isc_time_microdiff
1999-10-09 02:39:53 +00:00
David Lawrence
25ebcfe710
fixed some string manipulation that was aesthetically unpleasing to me.
...
it must have been the percocet that made me do it the other way. sorry.
1999-10-08 21:55:31 +00:00
David Lawrence
7c47a2a03c
netdb.h for win32
1999-10-06 19:43:19 +00:00
David Lawrence
a72b5fec9d
makefiles and cvsignores for the win32 subtree
1999-10-06 19:41:39 +00:00
David Lawrence
f164ff7b52
win32 needs inet_pton()
1999-10-06 19:37:25 +00:00
David Lawrence
a91a5c2322
New CPP macros ISC_DIR_NAMEMAX and ISC_DIR_PATHMAX; win32 are based
...
on _MAX_FNAME and _MAX_PATH, unix are "reasonable values" (256 and 1024)
because unix is inconsistent about this.
1999-10-06 19:36:13 +00:00
David Lawrence
b21507bc8d
makefiles and cvsignores for the win32 subtree
1999-10-06 19:32:37 +00:00
David Lawrence
7182ad9121
removed the mutex method
1999-10-06 19:25:41 +00:00
David Lawrence
8671e8306b
configure ISC_NET_NEEDPORTT if "typedef isc_uint16_t in_port_t" is needed
1999-10-01 02:11:34 +00:00
David Lawrence
b8255b5084
First stab at NT networking interface via the ISC header files.
...
Though source modules things compile, no programs have yet been
built and tested that actually use networking (as opposed to support
functions, like inet_aton).
1999-09-27 21:15:35 +00:00
Michael Graff
e141888b93
protect with <isc/lang.h> and ISC_LANG_BEGINDECLS/ISC_LANG_ENDDECLS
1999-09-24 23:24:51 +00:00
David Lawrence
bdec0dc85e
win32 interface for isc_stdtime_get
1999-09-23 18:34:27 +00:00
David Lawrence
e904ee6c52
Include process.h for _beginthreadex prototype.
1999-09-23 18:26:12 +00:00
David Lawrence
cb73e2bfac
isc_once_do() for NT. Two different methods were coded and one
...
should be decided on; it is kind of a toss-up to me personally.
One method is slightly more complicated but the other uses a spin lock.
See once.c for details.
1999-09-23 18:14:16 +00:00
David Lawrence
05d763d642
Fixed prototype for isc_condition_waituntil.
...
Fixed calls to isc_time_now and isc_time_millidiff.
1999-09-23 18:06:47 +00:00
David Lawrence
d5069ac954
Fixed function prototypes to match unix/include/isc/time.h protos.
...
Wrote isc_time_nowplusinterval, a new function added to unix/time.c.
Made some LARGE_INTEGERS to be ULARGE_INTEGERS to ameliorate any
possible hint of a signed vs unsigned problem, even though it would
not happen for 28,847 more years from now.
Assert t1 and t2 not NULL in isc_time_millidiff.
1999-09-23 18:03:39 +00:00