Commit graph

483 commits

Author SHA1 Message Date
David Lawrence
d3e7d196cd isc_time_millidiff is now isc_time_microdiff 1999-10-09 02:39:53 +00:00
Andreas Gustafsson
91c49d591c use ISC_PLATFORM_HAVESALEN, not ISC_NET_HAVESALEN 1999-10-09 01:31:29 +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
Bob Halley
139154bd98 fix the makefile fixes added because nmake sucks 1999-10-08 16:40:38 +00:00
Bob Halley
5d454a5920 using $? is bad 1999-10-07 16:28:23 +00:00
David Lawrence
83e8c58817 moved to unix/include/isc/int.h 1999-10-07 02:39:23 +00:00
David Lawrence
eac339874d no more unistd.h; use remove() from stdio rather than unlink() 1999-10-07 02:10:10 +00:00
David Lawrence
bc39100623 added "-I ../unix/include" ... because ultimately int.h needs to go there, and currently i need the unix string changed to win32 when building on NT 1999-10-06 19:48:27 +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
156d37e2dc dir.h added to HEADERS 1999-10-06 19:41:01 +00:00
David Lawrence
09da984c2c commandline.h added to HEADERS 1999-10-06 19:40:20 +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
af97e49f21 + commandline.c
+ WIN32OBJS
1999-10-06 19:23:36 +00:00
David Lawrence
d209a67373 BSD short option getopt, name mangled for the ISC. 1999-10-06 19:23:05 +00:00
Bob Halley
66100d11b5 define socket types in types.h 1999-10-05 21:22:02 +00:00
Bob Halley
51917258db build system cleanups; improved include handling 1999-10-05 19:52:30 +00:00
Bob Halley
10ba7f6f56 lint 1999-10-05 19:50:53 +00:00
James Brister
0ef59eaa9f Let client turn off the INSIST that all memory is freed (parser needs this
due to yacc).
1999-10-02 21:20:03 +00:00
David Lawrence
a252c2771f include isc/net.h, do not include sys/socket.h, netinet/in.h or arpa/inet.h,
and/or use type in_port_t instead of unsigned int for ports
1999-10-02 02:54:16 +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
0307846c71 AIX does not define NAME_MAX or PATH_MAX by default. It would either
need a special cpp macro like _XPG4 defined or the name buffer would
need to be dynamically allocated based on pathconf(), which is
undesirably complicated.  Instead 255 is used as a suitably sized NAME_MAX
and 1024 in place of PATH_MAX.
1999-10-01 01:12:04 +00:00
David Lawrence
72c99dbd09 no longer needs dirent.h 1999-09-30 22:14:53 +00:00
David Lawrence
fd35453765 use AR, ARFLAGS, O and A macros 1999-09-30 20:10:31 +00:00
David Lawrence
b05363a2b9 include string.h for strcpy/strlen protos 1999-09-28 03:37:36 +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
David Lawrence
2af4e7e0e6 Remove #include <unistd.h>. Not portable to NT and is apparently
not needed for any unix-standard thing, at least none that I could
identify in the file, and removing it did not generate any errors
on BSD/OS.
1999-09-27 19:23:57 +00:00
Michael Graff
5d9d8d114f Add magic.h, which should eventually contain all isc magic numbers, perhaps
macros to validate structures using them, and perhaps a do-all function
which can be used by debugging code to identify a structure and print
the contents by calling the correct dump function.
1999-09-25 01:23:39 +00:00
Michael Graff
fb6b65a005 I just can't win today. Remove redundant 'block' from function names. 1999-09-24 23:47:21 +00:00
Michael Graff
783e10df2c mutexblock, not just mutex. Duh. 1999-09-24 23:32:14 +00:00
Michael Graff
9c91aa2641 add a function to initialize a block of mutexes, and to destroy them. 1999-09-24 23:26:23 +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
Bob Halley
3c5c6fc345 ISC_R_TASKDONE and ISC_R_TASKNOSEND are not relevant anymore 1999-09-24 01:39:56 +00:00
David Lawrence
1c333c1415 Not all dirents have d_namlen.
include stdlib.h to define NULL; BSD/OS managed to define it in
one of the other files already included, but that was not portable.

Thanks for pointing these issues out for Linux, Brian.
1999-09-23 21:35:19 +00:00
Bob Halley
271d5bfc5c conforming changes for task API simplification 1999-09-23 21:31:03 +00:00
Bob Halley
3bff571ab2 Simply task API:
Tasks now terminate when

		Any shutdown events have been posted

		There are no references

		The event queue is empty

	If a task has no references and the event queue
	is empty, then a shutdown will be triggered if
	it hasn't been already.

	allowdone and allowsend are gone

	sending events can no longer fail
1999-09-23 21:30:26 +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
David Lawrence
c910282c40 Shut up MSVC++ compiler warning about loss of precision when assigning
8 bits masked out of a 32 bit int to individual bytes.
1999-09-23 17:54:57 +00:00
David Lawrence
fc80027fb5 logging interface & test program. not yet NT portable because of syslog. 1999-09-23 17:43:51 +00:00
David Lawrence
49e558760e directory scanning API for unix/nt portability 1999-09-23 17:31:59 +00:00
Bob Halley
cae6ddd340 add isc_buffer_copyregion 1999-09-22 00:35:59 +00:00
Michael Graff
5f0e2c8913 update copyright text 1999-09-16 00:02:20 +00:00
Michael Graff
0ed6a92981 clean up print.h in make distclean step 1999-09-15 23:15:57 +00:00