summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig/lib/isc/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite parse_netprefix to no longer use isc_sockaddr_fromin{,6}.florian2020-12-211-15/+1
| | | | | Since this was the last user of those functions we can delete them. OK otto
* We have sockaddr_storage these days, get rid of isc_sockaddr_t.florian2020-09-153-36/+25
| | | | OK beck, "beautiful" deraadt
* The various sockaddr structures have length fields these days.florian2020-09-151-2/+1
| | | | OK beck
* we no longer need isc_netaddr_tflorian2020-09-152-79/+1
| | | | OK beck, deraadt (who also OK'ed the previous two diffs)
* move islinklocal, ismulticast, issitelocal from netaddr to sockaddrflorian2020-09-151-19/+1
| | | | OK beck
* Mechanically replace isc_boolean_t with int.florian2020-09-1412-88/+50
| | | | OK deraadt
* Bunch of dead stores and otherwise unused stuff lets us get rid offlorian2020-09-142-5/+9
| | | | | | unix/net.{c.h}. We need to sprinkle in a few #includes that net.h dragged in. OK deraadt
* Get rid of isc_parse_uint32() and replace it with strtonum.florian2020-09-131-53/+0
| | | | | | While here use the standard strtonum error messages. input & OK beck, OK kn
* remove unused LEX_OPTsflorian2020-09-131-18/+2
|
* In preparation of compiling lib/dns/rdata/ files individually we needflorian2020-02-261-1/+5
| | | | | | 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-261-1/+3
| | | | | | 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-251-35/+0
|
* malloc(a * b) -> reallocarray(NULL, a, b)deraadt2020-02-251-13/+1
| | | | 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-2510-27/+10
|
* remove some unused typedefsjsg2020-02-251-7/+1
|
* remove some unused codejsg2020-02-241-25/+1
| | | | ok florian@
* remove some uneeded includesjsg2020-02-243-7/+7
|
* remove some unused functionsjsg2020-02-232-39/+2
| | | | ok jung@
* remove unused parts of types.hjsg2020-02-231-2/+1
| | | | ok jung@ florian@
* remove unused structsjsg2020-02-231-14/+1
|
* remove unused codejung2020-02-226-373/+5
| | | | ok millert florian
* simplify signal setup and remove block/unblock/is_running/reloadjung2020-02-192-45/+2
| | | | | | with input from florian ok millert florian
* Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.florian2020-02-186-192/+5
| | | | | | | 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-183-88/+3
| | | | OK millert
* isc_stdio_open() wrapper function is only called in lex'erjung2020-02-171-41/+0
| | | | | | so call fopen() directly and drop it ok florian
* remove unused codejung2020-02-179-370/+12
| | | | ok florian
* Get rid of isc_stdtime_t and use time_t directly.florian2020-02-161-4/+1
| | | | OK millert
* clock_gettime cannot fail if called correctly; unravel TIME_NOWflorian2020-02-161-6/+1
| | | | | | | 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
* unravel isc_time_add and isc_time_subtractflorian2020-02-161-6/+2
| | | | OK millert
* Replace isc_time_t and interval_t with struct timespec.florian2020-02-163-9/+7
| | | | Input & OK millert
* Now we are only using one timer type (once) and expires is always NULLflorian2020-02-161-18/+1
| | | | | so remove those struct members. OK millert
* We only use isc_timertype_once, get rid of all other types.florian2020-02-161-6/+2
| | | | OK millert
* remove unused filejsg2020-02-161-141/+0
|
* remove unused functionflorian2020-02-151-9/+1
|
* timer methods are unusedflorian2020-02-151-26/+1
|
* 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.
* expand ISC_FORMAT_PRINTF and get rid of formatcheck.hflorian2020-02-134-51/+12
|
* unifdef ISC_LIST_CHECKINITflorian2020-02-131-14/+1
|
* remove macros which defined extern "C" for C++jsg2020-02-1331-218/+27
| | | | ok florian@
* remove more uneeded include statements and filesjsg2020-02-136-45/+5
|
* unfidef assertions.h to always have assertions enabled; no changeflorian2020-02-131-51/+1
| | | | | | | in behaviour. While here unifdef one remaining __COVERITY__. While we might want to move away from assertions we can't just nuke them since they are used for error checking.
* remove some files containing only commentsjsg2020-02-122-76/+0
|
* remove some unreferenced functionsjsg2020-02-1216-832/+13
| | | | ok florian@
* remove uneeded include filesjsg2020-02-112-232/+0
| | | | ok florian@
* Pretty sure sha1 works most of the time, no need to check duringflorian2020-02-112-9/+2
| | | | runtime.
* Move dig(1) and needed DNS libraries into it's own source directory inflorian2020-02-0746-0/+8337
usr.bin/dig. From the beginning when we started to remove unneeded nameserver code, it was our goal to extract dig functionality from the bind sources, for everyone's benefit as this is easier to reason about. In total we removed about 2/3 or over 300.000 lines of code. We kept the lib/ subdirectory layout but moved the content of bin/ to the top from the old bind source directory. Previous sources and history can be found in the src/usr.sbin/bind Attic. With & OK deraadt Proposed directory layout sounds good to sthen