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

1782 Commits

Author SHA1 Message Date
James Brister
54570ba7ff Added isc_sockaddr_eqaddr and its protoype: compares only the addresses
(and not the port values) of two isc_sockaddr_t.
1999-10-25 10:07:37 +00:00
Bob Halley
d409ceeda4 do not require ': ' in module/category names 1999-10-22 19:30:38 +00:00
Michael Graff
88d0cafafc add random.h 1999-10-22 00:58:47 +00:00
Andreas Gustafsson
584ba0e67d Created a new type isc_taskpool_t, a pool of isc_task_t
objects to be shared by multiple users.  This is intended for use by things
like zones, which would need hordes of tasks if each one had a separate task.
1999-10-21 00:32:15 +00:00
Michael Graff
09dbb18c6d add isc_random_t, and all the isc_random_*() function to use it. Right now it is
a pretty empty type, but it would be good to flesh it out so each random state
will be separated from one another.  Right now they all just lock
around rand(), which isn't perfect, but good enough for what I need
today.
1999-10-20 23:25:17 +00:00
Michael Graff
78b2f25c9a add isc_mem_setname() 1999-10-19 01:22:39 +00:00
David Lawrence
899f7f9af5 ah, oops. need stdargs.h for va_list type. 1999-10-11 14:12:31 +00:00
David Lawrence
00a1623a59 isc_log_vwrite is now a public function 1999-10-11 13:16:42 +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
83e8c58817 moved to unix/include/isc/int.h 1999-10-07 02:39:23 +00:00
David Lawrence
09da984c2c commandline.h added to HEADERS 1999-10-06 19:40:20 +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
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
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
Bob Halley
3c5c6fc345 ISC_R_TASKDONE and ISC_R_TASKNOSEND are not relevant anymore 1999-09-24 01:39:56 +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
fc80027fb5 logging interface & test program. not yet NT portable because of syslog. 1999-09-23 17:43:51 +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
Michael Graff
2f072c2982 Update copyrights 1999-09-15 23:03:43 +00:00
Michael Graff
50dfb7ee4a implement mempool locking 1999-09-15 17:47:08 +00:00
Mark Andrews
0da4fbb842 added print.h 1999-09-14 04:32:26 +00:00
Mark Andrews
b1f833cea5 Allow isc/print.h to be included multiple times.
cvs: ----------------------------------------------------------------------
1999-09-14 02:40:49 +00:00
Mark Andrews
cd71050434 ISC versions of vsnprint and snprintf. 1999-09-14 02:07:03 +00:00
Michael Graff
aca2a14afc Implement MSG_TRUNC faking for UDP, on systems where recvmsg() doesn't set that
flag for us.  To see if a UDP packet was truncated, look at
done_event->attributes and see if ISC_SOCKEVENTATTR_TRUNC is set.
1999-09-13 22:00:28 +00:00
Michael Graff
07a9b8b588 Make a few helper macros which will return lengths of regions rather than
requiring an isc_region_t to fill in.  Use these macros in a few places.
1999-09-10 21:13:39 +00:00
Michael Graff
3df43dad43 Make the ISC_BUFFER_VALID() be exported from buffer.h, so bufferlist.h
can use internal buffer pointers without fear by first performing the
same validity check used in the buffer.c file.  This eliminates a
function call inside a loop, and the bufferlist.c file is really a
superset of buffers in many ways already.
1999-09-10 01:54:08 +00:00
Bob Halley
ac70da9a27 allow malloc() and free() to be replaced 1999-09-09 19:32:03 +00:00
Andreas Gustafsson
b1a67f989f ISC_LIST_APPENDLIST now clears list2 consistently 1999-09-08 05:56:21 +00:00
Bob Halley
1819606910 add bitstring 1999-09-07 01:32:27 +00:00
Michael Graff
e4f133deed Add isc_buffer_usedcount() and availablecount() -- which should become macros 1999-09-06 04:45:13 +00:00
Michael Graff
c520793fb9 Add isc_socket_sendv(), sendtov(), and recvv() that work 1999-09-06 04:44:40 +00:00
Michael Graff
85f0f10eeb add bufferlist.c and bufferlist.h 1999-09-06 04:41:38 +00:00
Bob Halley
453f3213e9 undo ISC_MEM_RECORD 1999-09-03 17:45:17 +00:00
Michael Graff
c138fc2791 multi-buffer isc_socket_recvv() -- needs testing 1999-09-03 16:38:08 +00:00
Mark Andrews
feb72cfbe7 Record where memory requests and releases were made.
Double isc_mem_put()'s well now cause an INSIST failures.
	These are on by default during development but can be turned
	off by "#define ISC_MEM_RECORD 0" or equivalent.
1999-09-03 13:19:17 +00:00
Michael Graff
9f1c521285 change some flags (so we can use internal ones, too) 1999-09-02 20:52:44 +00:00
Mark Andrews
1d23294e9a Add isc_sockaddr_totext() 1999-09-02 12:08:07 +00:00
Michael Graff
4556681e19 snapshot socket.[ch] code and commit dynbuf_t -> buffer_t changes 1999-09-02 02:10:44 +00:00
Michael Graff
0fe778098d Remove one compiler's warning by casting both sides to (void *) in a comparison. Lame, but there you have it. 1999-08-31 20:55:26 +00:00
Mark Andrews
c4ef94b1a2 Add 32 bit serial arithmetic support. 1999-08-30 14:45:01 +00:00
Michael Graff
7b0fde02e4 define a few socket event (read/write) attributes 1999-08-28 04:26:16 +00:00
Michael Graff
287a9e6ce0 reserve lower 8 bits for task library, higher 24 for application/library use 1999-08-28 04:25:48 +00:00