Witold Kręcicki
cdbac34cba
Get rid of isc_bind9 conditional
2018-10-18 09:19:12 +00:00
Zhaolong Zhang
21966423cd
Fix crash caused by race condition in timer creation
...
The race condition is the timer elapses before isc__timer_create()
returns the pointer to the caller. Assigning the return pointer before
enabling the timer will fix it.
2018-09-27 15:17:52 +02:00
Ondřej Surý
18e3c8d232
Remove legacy support for Tru64
2018-08-28 10:31:47 +02:00
Witold Kręcicki
5cdb38c2c7
Remove unthreaded support
2018-08-16 17:18:52 +02:00
Ondřej Surý
994e656977
Replace custom isc_boolean_t with C standard bool type
2018-08-08 09:37:30 +02:00
Ondřej Surý
55a10b7acd
Remove $Id markers, Principal Author and Reviewed tags from the full source tree
2018-05-11 13:17:46 +02:00
Ondřej Surý
843d389661
Update license headers to not include years in copyright in all applicable files
2018-02-23 10:12:02 +01:00
Tinderbox User
3618b965d1
update copyright notice / whitespace
2017-04-21 23:45:41 +00:00
Evan Hunt
d26ae7fc08
[master] give threads unique names to assist debugging
...
4602. [func] Threads are now set to human-readable
names to assist debugging, when supported by
the OS. [RT #43234 ]
2017-04-21 13:59:40 -07:00
Mark Andrews
0c27b3fe77
4401. [misc] Change LICENSE to MPL 2.0.
2016-06-27 14:56:38 +10:00
Francis Dupont
3759f10fc5
added print.h includes, updated copyrights
2015-05-23 14:21:51 +02:00
Mark Andrews
1deeb567fa
remove const
2014-04-25 14:26:41 +10:00
Mark Andrews
618053b8be
additional places:
...
3818. [bug] Stop lying to the optimizer that 'void *arg' is a
constant in isc_event_allocate.
(cherry picked from commit 39b5269577 )
2014-04-25 12:22:27 +10:00
Tinderbox User
cc2a515684
update copyright notice
2014-03-04 23:46:15 +00:00
Evan Hunt
b454c03196
[master] use ANSI prototypes, clean up some casts
2014-03-04 10:42:25 -08:00
Tinderbox User
12253af346
update copyright notice
2013-04-10 23:46:01 +00:00
Evan Hunt
b99bfa184b
[master] unify internal and export libraries
...
3550. [func] Unified the internal and export versions of the
BIND libraries, allowing external clients to use
the same libraries as BIND. [RT #33131 ]
2013-04-10 13:49:57 -07:00
Evan Hunt
47c5b8af92
[master] silence coverity warnings
...
3401. [bug] Addressed Coverity warnings. [RT #31484 ]
2012-10-23 22:04:06 -07:00
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
28a8f5b0de
set $Id$
2012-03-08 00:21:15 +11: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
784a904bd0
update copyright notice
2011-02-03 12:18:12 +00:00
Mark Andrews
000a8970f8
3011. [func] Change the default query timeout from 30 seconds
...
to 10. Allow setting this in named.conf using the new
'resolver-query-timeout' option, which specifies a max
time in seconds. 0 means 'default' and anything longer
than 30 will be silently set to 30. [RT #22852 ]
2011-02-03 05:41:55 +00:00
Francis Dupont
8b78c993cb
explicit engine rt20230a
2009-10-05 17:30:49 +00:00
Tatuya JINMEI 神明達哉
af55bddf26
cleanup: fixed incorrect ifdef [RT #20210 ]
2009-09-03 21:55:13 +00:00
Tatuya JINMEI 神明達哉
8fec8134ea
suppress compiler warnings [RT #20203 ]
2009-09-02 04:25:19 +00:00
Automatic Updater
823ca3c14f
update copyright notice
2009-09-01 23:47:45 +00:00
Tatuya JINMEI 神明達哉
965b6e2a1b
fixed trivial errors about the type of function return values
2009-09-01 08:12:33 +00:00
Tatuya JINMEI 神明達哉
307d208450
2660. [func] Add a new set of DNS libraries for non-BIND9
...
applications. See README.libdns. [RT #19369 ]
2009-09-01 00:22:28 +00:00
Automatic Updater
3bed8e9913
update copyright notice
2009-01-23 23:47:54 +00:00
Mark Andrews
0cee7fdce3
move formating out of msgcat
2009-01-23 01:27:12 +00:00
Mark Andrews
6bcb646fd1
undo one change from #2536
2009-01-23 01:15:41 +00:00
Automatic Updater
3319413a67
update copyright notice
2009-01-22 23:47:54 +00:00
Mark Andrews
f148f53794
2536. [cleanup] Silence some warnings when -Werror=format-security is
...
specified. [RT #19083 ]
2009-01-22 05:39:29 +00:00
Mark Andrews
a7485cd61d
silence compiler warning
2008-08-22 05:57:53 +00:00
Automatic Updater
2cf81a3d8a
update copyright notice
2008-06-23 23:47:11 +00:00
Tatuya JINMEI 神明達哉
386d3a99c1
2375. [security] Fully randomize UDP query ports to improve
...
forgery resilience. [RT #17949 , #18098 ]
2008-06-23 19:41:20 +00:00
Mark Andrews
f183f4c0cd
2254. [bug] timer.c:dispatch() failed to lock timer->lock
...
when reading timer->idle allowing it to see
intermediate values as timer->idle was reset by
isc_timer_touch(). [RT #17243 ]
2007-10-24 00:57:23 +00:00
Automatic Updater
70e5a7403f
update copyright notice
2007-06-19 23:47:24 +00:00
Automatic Updater
ec5347e2c7
update copyright notice
2007-06-18 23:47:57 +00:00
Mark Andrews
2674e1a455
1940. [bug] Fixed a number of error conditions reported by
...
Coverity.
2005-11-30 03:33:49 +00:00
Mark Andrews
625d1dd4f4
fix isc_timer_gettype return type
2005-10-26 06:46:36 +00:00
Mark Andrews
18d0b5e54b
1900. [port] freebsd: pthread_mutex_init can fail if it runs out
...
of memory. [RT #14995 ]
2005-07-12 01:00:20 +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
c0c9d2b566
Remove layer violation. [RT #3615 ]
2002-09-12 02:44:29 +00:00
Michael Graff
de6aca419d
Rework previous slightly, to only signal if we were using WAITUNTIL() and we
...
actually have a due time
2002-09-09 21:15:58 +00:00
Michael Graff
e5242f042b
When scheduling a new timer, check to see if we missed our last wakeup
...
by more than 15 seconds. If we have, SIGNAL().
2002-09-09 20:04:10 +00:00
Mark Andrews
6125833e82
isc_timer_poke is thread specific
2002-09-09 06:01:06 +00:00
Michael Graff
371147fdc5
add isc_timer_gettype() (useful in debugging code) and a temporary hack of isc_timermgr_poke
2002-09-08 18:35:55 +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
Andreas Gustafsson
91cd0f93ad
sizeof style
2001-11-27 01:56:32 +00:00
Mark Andrews
9234d92d4e
1058. [func] Limited lifetime ticker timers are now available,
...
isc_timertype_limited.
2001-10-18 06:06:13 +00:00
David Lawrence
92ef1a9b9d
use ISC_MAGIC for all magic numbers, for our friends in EBCDIC land
2001-06-04 19:33:39 +00:00
Brian Wellington
3a66efb0cb
remove the completely unused timer->mctx field.
2001-01-27 02:44:07 +00:00
Brian Wellington
499b34cea0
copyright update
2001-01-09 22:01:04 +00:00
David Lawrence
801dceea23
Revert my last change. It was stupid, which I if I had been thinking clearly
...
I would have seen *before* I commited anything. So, include isc/thread.h,
isc/mutex.h and isc/condition.h even if ISC_PLATFORM_USETHREADS is not defined.
(What caused me to bother with this at all was a problem that I resolved
a few days ago by fixing configure ... though now that I think about it,
that probably means there is some other latent problem with inconsistent
definitions that could maybe be handled better. I'll look into it more
later, AFTER vacation.)
2000-12-26 21:45:08 +00:00
David Lawrence
bdcae3560b
Only include isc/thread.h, isc/mutex.h and isc/condition.h if
...
ISC_PLATFORM_USETHREADS is defined.
2000-12-26 21:12:25 +00:00
David Lawrence
9cd6d409b7
first pass at using isc_msgcat_get for message strings in libisc
2000-12-06 00:30:32 +00:00
Mark Andrews
5e589b5356
Uninitalised link fixes, batch 1.
2000-10-20 02:21:58 +00:00
Brian Wellington
0d89afffb2
Make sure #else and #endif for ISC_PLATFORM_USETHREADS are marked as such.
2000-09-28 21:31:08 +00:00
Brian Wellington
8ec174ad4e
Allow the timer code to run without threads.
2000-08-29 21:30:03 +00:00
Brian Wellington
fa9a407180
Last set of DESTROYLOCK changes
2000-08-26 01:42:34 +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
Michael Graff
fbcba391fa
fix format argument
2000-06-19 22:23:05 +00:00
David Lawrence
87cafc5e70
Megacommit of many files.
...
Mostly, several functions that take pointers as arguments, almost
always char * pointers, had those pointers qualified with "const".
Those that returned pointers to previously const-qualified arguments
had their return values qualified as const. Some structure members
were qualified as const to retain that attribute from the variables
from which they were assigned.
The macro DE_CONST was added to isc/util.h to deal with a handful of very
special places where something is qualified as const but really needs to have
its const qualifier removed.
Also cleaned up a few places where variable names clashed with reserved
identifiers. (Which mostly works fine, but strictly speaking is undefined
by the standard.)
Minor other ISC style cleanups.
2000-06-01 17:20:56 +00:00
Andreas Gustafsson
e996ff2d5b
print isc_time_t fields using %u, not %lu
2000-05-22 03:07:47 +00:00
David Lawrence
60e412971e
isc_time_add now returns an isc_result_t, ensuring proper range of the
...
result of the addition.
2000-05-18 17:15:11 +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
David Lawrence
c403d3f7d6
130. [cleanup] <isc/condition.h> does not need <pthread.h> or
...
<isc/boolean.h>, and now includes <isc/types.h>
instead of <isc/time.h>.
(does not need pthread.h because it *does* need isc/mutex.h, which
will be guaranteed to provide pthread.h)
2000-04-28 18:58:40 +00:00
David Lawrence
fc9e755ba3
<isc/task.h> does not need <isc/mem.h> or <isc/result.h>.
2000-04-28 04:26:08 +00:00
David Lawrence
c23f524c07
include isc/task.h
2000-04-25 19:32:29 +00:00
Bob Halley
f6c77dd407
Use memory context reference counting.
...
Timers now use the timer manager's mctx, not the task's.
2000-04-12 01:27:20 +00:00
Bob Halley
ca41b452ed
update copyrights
2000-02-03 23:08:31 +00:00
Michael Graff
440be4c866
move util.h to <isc/util.h>
1999-12-16 22:24:22 +00:00
Bob Halley
67e33ba670
we were purging the wrong event ranges
1999-07-21 21:18:10 +00:00
Bob Halley
9db3eaed95
the event tag is now a void *
1999-07-10 00:55:07 +00:00
Bob Halley
94a5826150
do not get the current time for an inactive timer
1999-07-03 21:00:55 +00:00
Bob Halley
d717d5600b
event purging api change
1999-06-15 23:18:44 +00:00
Bob Halley
0f287538a5
use isc_time_now; allow default expires and interval
1999-06-12 01:13:22 +00:00
Bob Halley
d13284da19
allow timer to be inactive; use isc_task_purgerange
1999-05-10 22:50:31 +00:00
Bob Halley
1edf93cbc2
a timer now uses the mctx of its task
1999-01-16 00:01:18 +00:00
Bob Halley
eb5ae81b55
note
1999-01-15 02:14:55 +00:00
Bob Halley
2328307a8f
use RUNTIME_CHECK instead of INSIST where appropriate
1999-01-06 20:02:52 +00:00
Bob Halley
8dcce6f922
change memctx to mem
1998-12-18 19:14:37 +00:00
Bob Halley
835e240716
The lock must be held when calling SIGNAL
1998-12-16 02:04:43 +00:00
Bob Halley
3740b569ae
the great type change
1998-12-13 23:45:21 +00:00
Bob Halley
674dd7889b
convert to util.h; only set magic if ok; forgot detach if mutex init fails
1998-12-13 02:03:46 +00:00
Bob Halley
1633838b82
update copyrights
1998-12-12 20:48:14 +00:00
Bob Halley
d25afd60ee
include config.h
1998-12-12 19:25:20 +00:00
Bob Halley
6792dd6d22
conforming changes for new pool
1998-12-11 20:38:46 +00:00
Bob Halley
da4242bf62
replace unexpect.[ch] and fatal.[ch] with error.[ch]
1998-12-04 20:00:26 +00:00
Bob Halley
a2a072eb23
use proper isc result type
1998-10-26 23:08:23 +00:00
Bob Halley
5cc3e0c38f
opaque isc_time_t; add isc_interval_t; conditional WINAPI for run()
1998-10-23 22:59:44 +00:00
Bob Halley
6052dab738
update
1998-10-23 05:45:26 +00:00