summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig/lib/isc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix socket_log() calls, EVENT expands to three comma separatedotto2020-05-101-4/+4
| | | | values; spotted by gcc; ok florian@
* Make sure cmsgbufs are properly aligned by using the idiom from theotto2020-05-081-5/+15
| | | | CMSG_DATA man page. Avoids SIGBUS on landisk; ok kettenis@ jca@
* In preparation of compiling lib/dns/rdata/ files individually we needflorian2020-02-265-85/+38
| | | | | | global visibility of str_totext. Rename it to isc_str_tobuffer, put it into buffer.c and delete duplicate implementations.
* In preparation of compiling lib/dns/rdata/ files individually we needflorian2020-02-265-53/+22
| | | | | | global visibility of mem_tobuffer. Rename it to isc_mem_tobuffer, put it into buffer.c and delete duplicate implementations.
* use timingsafe_bcmp and get rid of now unused safe.cflorian2020-02-254-81/+10
|
* malloc(a * b) -> reallocarray(NULL, a, b)deraadt2020-02-256-34/+14
| | | | ok jsing jca florian
* declare isc_appctx_t once where it is usedjsg2020-02-252-9/+2
| | | | | Should fix typedef redefinition build error on gcc3 reported by aoyama@. ok florian@
* reduce multiple newlinesjsg2020-02-2533-102/+31
|
* remove some unused typedefsjsg2020-02-251-7/+1
|
* remove some unused codejsg2020-02-243-71/+3
| | | | ok florian@
* remove some uneeded includesjsg2020-02-249-28/+22
|
* Fix 'previously declared here' error on gcc3(luna88k).aoyama2020-02-243-10/+1
| | | | ok jsg@ florian@ jung@
* remove some unused functionsjsg2020-02-234-107/+4
| | | | ok jung@
* remove unused parts of types.hjsg2020-02-231-2/+1
| | | | ok jung@ florian@
* remove unused structsjsg2020-02-232-36/+2
|
* remove various unused macrosjung2020-02-222-11/+2
| | | | ok florian
* remove some unused args and unused assignments, as resultjung2020-02-221-9/+5
| | | | | | | | | msgblock_free() becomes just free() also add UNUSED() for some dns_message *msg args for later revisit and cleanup ok millert florian
* remove assigned but unused valuesjung2020-02-222-9/+1
| | | | ok millert florian
* remove unused codejung2020-02-2212-648/+10
| | | | ok millert florian
* Read CLOCK_MONOTONIC when we need timestamps to compare and useflorian2020-02-213-13/+13
| | | | | time(3) for the wall clock. prodding & OK jung
* simplify signal setup and remove block/unblock/is_running/reloadjung2020-02-193-178/+6
| | | | | | with input from florian ok millert florian
* remove unreachable codejung2020-02-191-4/+0
| | | | ok millert florian
* Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.florian2020-02-1822-1481/+277
| | | | | | | While pulling on that it turns out we can / need git rid of a isc_task -> isc__task, isc_taskmgr -> isc__taskmgr, isc_timer -> isc__timer and isc_socket -> isc__socket indirection. OK millert
* Remove unused task, taskmgr, app, socket and socketmgr methods.florian2020-02-186-188/+3
| | | | OK millert
* isc_stdio_open() wrapper function is only called in lex'erjung2020-02-174-85/+9
| | | | | | so call fopen() directly and drop it ok florian
* remove unused codejung2020-02-1720-1128/+22
| | | | ok florian
* Get rid of isc_stdtime_t and use time_t directly.florian2020-02-165-113/+10
| | | | OK millert
* cleanupflorian2020-02-162-24/+4
| | | | OK millert
* clock_gettime cannot fail if called correctly; unravel TIME_NOWflorian2020-02-166-45/+13
| | | | | | | indirections. (I'm not convinced that we always want to read CLOCK_REALTIME, in fact we probably want to almost always read CLOCK_MONOTONIC.) OK millert
* Move isc_time_formathttptimestamp to the only place it is used.florian2020-02-162-40/+2
| | | | OK millert
* unravel isc_time_formattimestampflorian2020-02-163-46/+9
| | | | OK millert
* unravel isc_time_add and isc_time_subtractflorian2020-02-165-88/+17
| | | | OK millert
* unravel isc_time_compareflorian2020-02-164-58/+16
| | | | OK millert
* unravel isc_time_isepochflorian2020-02-163-26/+4
| | | | OK millert
* remove timespec settersflorian2020-02-163-53/+5
| | | | OK millert
* Reduce interval indirection by setting struct members directly andflorian2020-02-164-60/+11
| | | | | using macros from sys/time.h OK millert
* The timer type we are using requires interval to be set, removeflorian2020-02-163-18/+5
| | | | | unused interval_zero. OK millert
* Replace isc_time_t and interval_t with struct timespec.florian2020-02-1610-233/+98
| | | | Input & OK millert
* Now we are only using one timer type (once) and expires is always NULLflorian2020-02-164-103/+34
| | | | | so remove those struct members. OK millert
* We only use isc_timertype_once, get rid of all other types.florian2020-02-162-84/+22
| | | | OK millert
* remove unused filejsg2020-02-161-141/+0
|
* remove unused functionflorian2020-02-152-17/+2
|
* timer methods are unusedflorian2020-02-152-57/+2
|
* remove unused lockid var and FDLOCK_ID macrojsg2020-02-151-7/+0
|
* unifdef VALREGEX_REPORT_REASON, it doesn't provide much clarity.florian2020-02-151-40/+25
|
* Get rid of "discards (const) qualifiers" warning in a less convoluted way.florian2020-02-151-8/+1
| | | | | OK schwarze who points out that sufficiently excessive compiler warning settings will still warn for a straight forward (void *) cast.
* threads are gone, replace thread safe isc__strerror() wrapperjung2020-02-137-137/+26
| | | | | | with strerror() and drop it ok millert florian
* expand ISC_FORMAT_PRINTF and get rid of formatcheck.hflorian2020-02-137-58/+19
|
* remove task and timer tracingflorian2020-02-132-64/+1
|
* unifdef ISC_LIST_CHECKINITflorian2020-02-131-14/+1
|