Commit graph

570 commits

Author SHA1 Message Date
David Lawrence
bd3195dcec lint 2000-01-04 20:21:03 +00:00
David Lawrence
dcf8825fd7 BSD/OS 4.01 returns EPROTONOSUPPORT for failure in try_proto() 2000-01-04 20:15:53 +00:00
Mark Andrews
1205f38a4c max_token is now a hint as to largest token. 1999-12-23 05:24:12 +00:00
Mark Andrews
202e42a230 Print lock tracing to stderr.
Decrement granted read lock when releasing a read lock if there are no
pending write locks.  This still allows fair queuing between read and
write locks but does not block on aquiring a new read relock if we are
below quota of active locks and there are no pending writes.
1999-12-23 05:05:04 +00:00
Mark Andrews
4d22a83c38 RWLOCK/RWUNLOCK to return __FILE__ and __LINE__.
Use #ifdef ISC_UTIL_TRACEON so that tracing can be turned on per file.
e.g.
	#define ISC_UTIL_TRACEON
	#include <isc/util.h>
1999-12-22 06:14:59 +00:00
Michael Graff
58aaab3687 isc_stdtime_get() now returns void, not isc_result_t. 1999-12-16 23:29:07 +00:00
Andreas Gustafsson
9416e9751e need #include <config.h> to define away inline 1999-12-16 23:25:09 +00:00
Michael Graff
ec075c6efb revert assertions.h, and add UNUSED() to util.h 1999-12-16 22:42:05 +00:00
Michael Graff
78fed22afc install util.h, too, and add a warning about its use 1999-12-16 22:29:13 +00:00
Michael Graff
440be4c866 move util.h to <isc/util.h> 1999-12-16 22:24:22 +00:00
Michael Graff
b8ef99c3a7 make the lfsr's real lfsr's, and use two of them to generate random-looking IDs 1999-12-16 00:07:21 +00:00
Bob Halley
f8d63d12dd Cast to (unsigned char *) in isc_buffer_putstr() because pointer arithmetic
on (void *) is not well defined.
1999-12-15 22:29:21 +00:00
Michael Graff
f39add73bc Actually commit the ipv6 socket code I wrote last week. 1999-12-15 20:47:38 +00:00
Michael Graff
21cbbc3e83 document functions. Add isc_lfsr_init() and unimplemented isc_lfsr_findlfsr() 1999-12-15 02:55:27 +00:00
Michael Graff
8752677649 store the taps as unsigned longs, rather than 1<<x notation 1999-12-15 02:26:25 +00:00
Michael Graff
ad91a3d204 add lfsr.c 1999-12-15 01:49:36 +00:00
Michael Graff
cb5f37d93b add lfsr.h 1999-12-15 01:49:07 +00:00
Michael Graff
4534478a8b Define UNUSED() in assertions.h. I can't think of a better place, and
changing many, many .c files to include <isc/unused.h> seems somehow wrong.
1999-12-15 01:48:46 +00:00
Mark Andrews
8a21ac0f09 Add isc_buffer_putstr(). 1999-12-13 02:18:02 +00:00
Michael Graff
efff2a52af Make this compile (without ipv6 socket support) on half-done implementations. 1999-12-10 16:51:39 +00:00
Michael Graff
c2b450fa72 don't hide the fact that some ipv6 stacks aren't all there. 1999-12-09 00:19:31 +00:00
Michael Graff
8b7f596003 Use one more returned-event attribute to indicate fatal error, where
retrying on a socket is pointless, as it will immediately fail.
1999-12-08 22:53:08 +00:00
Michael Graff
633c5ee7b9 remove a debugging statement that is no longer useful, and fix an error return 1999-12-06 23:07:05 +00:00
Michael Graff
857f8bd11b Cast to (void *) to shut up compiler warnings re signed/unsigned char *. It
would be so nice if people would define 'msg_control' in a msghdr to be
consistant with other pointers...
1999-12-06 22:33:20 +00:00
James Brister
ce84c593e8 gcc 2.7.2.3 and 2.95.1 both dislike '#warn' but will accept '#warning' cpp
statements.
1999-12-06 12:35:19 +00:00
Michael Graff
6149906644 ipv6 changes 1999-12-04 01:27:44 +00:00
Michael Graff
f684e54a0d remove _S6_u64 from the in6_addr, and define struct in6_pktinfo 1999-12-03 01:22:40 +00:00
Michael Graff
f6f4ceece4 more fully implement the 'standard' in6_addr, and use the macros correctly
in adb.c
1999-12-02 23:45:30 +00:00
Michael Graff
443ad8c09c add IPV6 macros for unspecified, loopback, v4compat, and v4mapped addresses 1999-12-02 22:50:17 +00:00
Andreas Gustafsson
be3fa6d82f typo 1999-12-01 20:30:16 +00:00
Andreas Gustafsson
97ad774ae2 commented purging of timer events on timer destruction 1999-12-01 03:12:22 +00:00
Andreas Gustafsson
79c08618e9 use NULL (not 0) for null pointers; use size_t (not unsigned int) in
sysctl() arguments
1999-11-30 22:13:26 +00:00
Andreas Gustafsson
37eebcb917 isc_sockaddr_eqaddrprefix() checked prefix length against wrong value 1999-11-30 22:03:16 +00:00
Andreas Gustafsson
33911b409b added isc_sockaddr_eqaddrprefix() 1999-11-29 20:00:19 +00:00
Andreas Gustafsson
add0155318 added isc_ratelimiter_t, a helper object that lets you
dispatch events to a task with a guaranteed minimum interval
1999-11-17 01:29:44 +00:00
Bob Halley
f924db5119 1000 nanoseconds in a microsecond, not 10000 1999-11-04 21:40:49 +00:00
Mark Andrews
19c5c23ef6 fix compiler warning: While loop condition is always non-zero.
nxt_30.c enforce type range to 1..127. DNS_R_RANGE otherwise.
1999-11-03 01:07:02 +00:00
Bob Halley
89c250649e initialize uninitialized variable 1999-11-01 22:57:30 +00:00
Bob Halley
176323fd5e set msg_namelen to the right size 1999-11-01 22:51:19 +00:00
Mark Andrews
a81da453ff remove compiler warnings 1999-11-01 04:45:19 +00:00
Bob Halley
431fb211db include unistd.h to get prototype for chdir 1999-10-31 19:29:48 +00:00
Bob Halley
8d43223900 isc_dir_open api change 1999-10-31 19:09:23 +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
4a73cf8ee0 update copyrights 1999-10-31 18:42:01 +00:00
Bob Halley
a5cda71d84 fix bad return value 1999-10-31 00:06:38 +00:00
Bob Halley
8393bb7925 eliminate type warning 1999-10-31 00:01:47 +00:00
Bob Halley
eb2c85b103 ISC_NET_HAVEIPV6 -> ISC_PLATFORM_HAVEIPV6 1999-10-30 03:53:19 +00:00
Bob Halley
89acdfd744 add comment documenting needed conversion 1999-10-30 03:52:58 +00:00
Andreas Gustafsson
297d85a324 silenced compiler warning 1999-10-30 01:37:55 +00:00
Andreas Gustafsson
74da83876c don't do pointer arithmetic on null pointers 1999-10-30 01:35:18 +00:00