Ondřej Surý
a6dcdc535c
Replace usage of isc_mem_put+isc_mem_detach with isc_mem_putanddetach
...
Using isc_mem_put(mctx, ...) + isc_mem_detach(mctx) required juggling with the
local variables when mctx was part of the freed object. The isc_mem_putanddetach
function can handle this case internally, but it wasn't used everywhere. This
commit apply the semantic patching plus bit of manual work to replace all such
occurrences with proper usage of isc_mem_putanddetach().
2019-07-31 10:26:40 +02:00
Ondřej Surý
ae83801e2b
Remove blocks checking whether isc_mem_get() failed using the coccinelle
2019-07-23 15:32:35 -04:00
Witold Kręcicki
420f84f3f5
isc/timer: use isc_refcount_t
2019-07-09 16:09:36 +02:00
Ondřej Surý
eb8c9bdd55
Make lib/isc/app.c opaque and thread-safe
...
This work cleans up the API which includes couple of things:
1. Make the isc_appctx_t type fully opaque
2. Protect all access to the isc_app_t members via stdatomics
3. sigwait() is part of POSIX.1, remove dead non-sigwait code
4. Remove unused code: isc_appctx_set{taskmgr,sockmgr,timermgr}
2019-05-20 18:13:02 +02:00
Ondřej Surý
78d0cb0a7d
Use coccinelle to remove explicit '#include <config.h>' from the source files
2019-03-08 15:15:05 +01:00
Ondřej Surý
e2cdf066ea
Remove message catalogs
2019-01-09 23:44:26 +01:00
Witold Kręcicki
929ea7c2c4
- Make isc_mutex_destroy return void
...
- Make isc_mutexblock_init/destroy return void
- Minor cleanups
2018-11-22 11:52:08 +00:00
Ondřej Surý
2f3eee5a4f
isc_mutex_init returns 'void'
2018-11-22 11:51:49 +00:00
Ondřej Surý
73a8999d1c
isc_condition_init returns 'void'
2018-11-22 11:51:49 +00:00
Witold Kręcicki
38a127c35b
Remove layering from isc_task, isc_app, isc_socket, isc_timer, isc_mem
2018-10-18 09:19:12 +00:00
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 39b52695771532e3df0c83a9b6683f899afa403a)
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