summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig/lib/isc/unix (follow)
Commit message (Collapse)AuthorAgeFilesLines
* We have sockaddr_storage these days, get rid of isc_sockaddr_t.florian2020-09-151-16/+16
| | | | OK beck, "beautiful" deraadt
* The various sockaddr structures have length fields these days.florian2020-09-151-4/+4
| | | | OK beck
* Mechanically replace isc_boolean_t with int.florian2020-09-144-30/+29
| | | | OK deraadt
* Bunch of dead stores and otherwise unused stuff lets us get rid offlorian2020-09-144-164/+3
| | | | | | unix/net.{c.h}. We need to sprinkle in a few #includes that net.h dragged in. OK deraadt
* Rewrite isc_time_microdiff() as uelapsed() and put it directlyflorian2020-09-144-94/+8
| | | | | into dig sources, lets us get rid of unix/time.{c,h} OK deraadt
* 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@
* malloc(a * b) -> reallocarray(NULL, a, b)deraadt2020-02-251-2/+2
| | | | ok jsing jca florian
* reduce multiple newlinesjsg2020-02-251-2/+0
|
* remove some uneeded includesjsg2020-02-241-1/+1
|
* Fix 'previously declared here' error on gcc3(luna88k).aoyama2020-02-241-3/+0
| | | | ok jsg@ florian@ jung@
* remove assigned but unused valuesjung2020-02-221-6/+0
| | | | ok millert florian
* Read CLOCK_MONOTONIC when we need timestamps to compare and useflorian2020-02-211-1/+1
| | | | | time(3) for the wall clock. prodding & OK jung
* simplify signal setup and remove block/unblock/is_running/reloadjung2020-02-191-133/+4
| | | | | | with input from florian ok millert florian
* Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.florian2020-02-183-371/+140
| | | | | | | 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-182-57/+0
| | | | OK millert
* isc_stdio_open() wrapper function is only called in lex'erjung2020-02-172-38/+2
| | | | | | so call fopen() directly and drop it ok florian
* remove unused codejung2020-02-172-7/+0
| | | | ok florian
* Get rid of isc_stdtime_t and use time_t directly.florian2020-02-163-103/+2
| | | | OK millert
* cleanupflorian2020-02-162-24/+4
| | | | OK millert
* clock_gettime cannot fail if called correctly; unravel TIME_NOWflorian2020-02-163-30/+3
| | | | | | | 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-162-41/+4
| | | | OK millert
* unravel isc_time_add and isc_time_subtractflorian2020-02-162-50/+2
| | | | OK millert
* unravel isc_time_compareflorian2020-02-162-34/+2
| | | | OK millert
* unravel isc_time_isepochflorian2020-02-162-24/+2
| | | | OK millert
* remove timespec settersflorian2020-02-162-50/+2
| | | | OK millert
* Reduce interval indirection by setting struct members directly andflorian2020-02-162-51/+3
| | | | | using macros from sys/time.h OK millert
* The timer type we are using requires interval to be set, removeflorian2020-02-162-11/+2
| | | | | unused interval_zero. OK millert
* Replace isc_time_t and interval_t with struct timespec.florian2020-02-164-198/+65
| | | | Input & OK millert
* Now we are only using one timer type (once) and expires is always NULLflorian2020-02-162-7/+2
| | | | | so remove those struct members. OK millert
* remove unused lockid var and FDLOCK_ID macrojsg2020-02-151-7/+0
|
* 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-131-2/+2
|
* remove macros which defined extern "C" for C++jsg2020-02-135-33/+4
| | | | ok florian@
* remove more uneeded include statements and filesjsg2020-02-135-14/+5
|
* remove unused macrosjsg2020-02-131-13/+0
| | | | ok florian@
* use libc inet_aton(3)jsg2020-02-131-6/+1
| | | | ok florian@ benno@ jung@
* trust gettimeofday doing the right thingflorian2020-02-132-88/+2
|
* remove some unreferenced functionsjsg2020-02-124-199/+4
| | | | ok florian@
* remove uneeded #include linesjsg2020-02-116-21/+4
| | | | ok florian@
* unifdef feature checks; we have all these things.florian2020-02-113-49/+2
| | | | OK millert
* Move dig(1) and needed DNS libraries into it's own source directory inflorian2020-02-0716-0/+4803
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