summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bind/lib/isc/unix (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Finish moving of dig(1) to /usr/bin/dig by removing the sources in theflorian2020-02-1116-4803/+0
| | | | | old location. dig(1) sources can be found in src/usr.bin/dig. ok deraadt@
* isc/stat.h is unusedflorian2020-02-042-54/+1
|
* just use netdb.h directlyflorian2020-02-041-56/+0
|
* Remove unused typedefs that got left behind in previousflorian2020-02-041-32/+0
| | | | | | | | shreddings from types.h and get rid of offset.h while here by just using off_t in the one place where it's needed. However offset.h brought in limits.h and sys/types.h so sprinkle some includes over the tree to have various _MAX and intX_t defined.
* Remove a bunch of unused functions who access the filesystem and thenflorian2020-02-043-329/+2
| | | | get rid of lib/isc/unix/dir.c
* Nuke autohell from orbit. It's the only way to be sure.florian2020-01-283-111/+0
| | | | OK sthen
* Switch to Makefile based builds.florian2020-01-282-26/+6
| | | | | | | | Delete a bunch of files that were no longer built but still lying around. Since there are no subdirectories below obj any more we need to prefix dns/{log,time,result}.c with dns_ to not conflict with the same names used by lib/isc/. OK sthen
* Support for queries on ports != 53jca2020-01-261-2/+2
| | | | | | | | | | | | | | - dig(1) -p now works, as already supported by dig(1) from ports/net/isc-bind thanks to sthen@ - "set port=..." also works in nslookup(1) - host(1) has no support for alternate destination ports This adds "inet" to the pledge promises of all three programs, a compromise deemed reasonable and suggested by deraadt@; instead of slightly more complicated patches by myself and florian@ to avoid "inet" in the general case. Suggested by deraadt@, ok florian@ sthen@
* Remove unused code from socket.cflorian2020-01-261-590/+18
| | | | OK tedu
* reduce isc/stdio to what is usedflorian2020-01-261-111/+1
| | | | OK tedu
* get rid of lib/isc/nothreadsflorian2020-01-262-59/+1
| | | | OK tedu
* Remove now unused unix/file.c and unix/fsaccess.cflorian2020-01-263-756/+2
| | | | OK jca, tedu
* isc_file_isdirwritable is not used (and besides, it uses access() whichderaadt2020-01-251-6/+1
| | | | hints all possible uses are TOCTOU)
* isc/unix/syslog is unusedflorian2020-01-254-133/+4
|
* another chroot tendrilderaadt2020-01-251-4/+1
|
* Oops, one break too many removed; unbreak +tcp.florian2020-01-241-0/+1
|
* Since we are no longer using config.h we can remove a lot of featureflorian2020-01-241-3/+3
| | | | | | | | | checks from configure. Work started by tedu, I tossed a bunch more. "go ahead" tedu This is not comprehensive but returns where diminishing in terms of saved build time. The next step would probably be to remove configure entirely.
* Remove overly complicated set_rcvbuf. Very likely not needed in dig et al.florian2020-01-231-68/+0
| | | | OK deraadt
* Remove socket types that we are not going to use, like AF_UNIX sockets.florian2020-01-231-1183/+30
| | | | OK deraadt
* We can always create IPv4 and IPv6 sockets.florian2020-01-232-483/+5
| | | | | While here cleanup net.h. OK deraadt
* config.h and platform.h are unused nowflorian2020-01-2215-29/+29
|
* unifdef the last config.h bitsflorian2020-01-223-128/+1
| | | | OK millert
* Spell out PORT_NONBLOCK as O_NONBLOCK and ISC_SOCKADDR_LEN_T asflorian2020-01-222-20/+13
| | | | | socklen_t. OK millert
* eliminate many other possibilities in favor of just using select() here.tedu2020-01-222-427/+0
| | | | ok florian
* unifdef a few features we have. ok floriantedu2020-01-222-46/+2
|
* Pretty sure we are not BSDI 3.1; remove a threading stragglerflorian2020-01-221-13/+0
|
* remove mutex.h etc. since this code is now unthreaded.tedu2020-01-213-284/+2
| | | | ok florian
* libisc has a global variable called "isc_bind9" that indicates the program-familyderaadt2020-01-211-3/+3
| | | | | | | | | (bind, dig, nslookup, host..) the library is being used by, this flag is cleared using a constructor-like mechanism in a .c file which is not compiled nor called. if the flag is cleared, the library acts differently in 40+ functions. Imagine if our libc had such a global variable?? delete all of that. ok florian
* Rip out custom memory allocator.florian2020-01-204-126/+78
| | | | OK otto
* As millert@ points out we can replace isc_string_touint64 withflorian2020-01-207-11/+11
| | | | | strtoull(3) and then get rid of lib/isc/string.c OK millert
* Do not use a message catalog for error messages.florian2020-01-203-157/+38
| | | | | It's not installed anyway. OK millert
* unifdef threading related definesflorian2020-01-202-38/+0
| | | | input & OK millert
* Remove unused tm.cflorian2020-01-202-32/+3
| | | | OK millert
* We are not using json, xml nor httpd.florian2020-01-201-279/+2
| | | | OK millert
* does not need a chroot wrapper; ok florianderaadt2020-01-091-28/+0
|
* Remove various unused bits and pieces from lib/isc.florian2020-01-0912-2992/+7
| | | | | | | Minus 3k lines. Input deraadt OK millert
* Forgot to remove the file with the weird int type definitions in theflorian2020-01-091-54/+0
| | | | previous commit.
* Use normal int types like int32_t instead of isc_int32_t.florian2020-01-0912-105/+105
| | | | OK millert
* Nuke atomics support. This gets rid of 4k lines of code including a bunchflorian2020-01-091-186/+1
| | | | | | | of assembly code. It's used for various statistics gathering in the bind daemon which we won't need in dig etc. OK millert
* Replace entropy.c, random.c and an outdated arc4random copy withflorian2020-01-093-614/+6
| | | | | | calls to libc's arc4random. Minus about 3k lines. prodding deraadt@
* Assorted unifdefs:florian2020-01-095-35/+10
| | | | | | | | | | | | | | | | | | | | #define ISC_PLATFORM_NEEDSYSSELECTH 1 #define ISC_PLATFORM_HAVESTATNSEC 1 #define ISC_PLATFORM_RLIMITTYPE rlim_t #define ISC_PLATFORM_HAVELONGLONG 1 #undef ISC_PLATFORM_BRACEPTHREADONCEINIT #undef ISC_PLATFORM_USEDECLSPEC #define ISC_PLATFORM_HAVESYSUNH 1 #define ISC_PLATFORM_HAVESTRINGSH 1 #define ISC_PLATFORM_WANTAES 1 #define ISC_PLATFORM_USESIT 1 #define LIBISC_EXTERNAL_DATA #define LIBDNS_EXTERNAL_DATA #define LIBISCCFG_EXTERNAL_DATA #define LIBBIND9_EXTERNAL_DATA #define LIBTESTS_EXTERNAL_DATA prodding deraadt@
* unifdef pkcs11:florian2020-01-094-793/+2
| | | | | | | | | | | | | | | | | #undef USE_PKCS11 #undef PKCS11_TOOLS #undef PKCS11CRYPTO #undef HAVE_PKCS11_GOST #undef HAVE_PKCS11_ECDSA #undef HAVE_PKCS11_ED25519 #undef HAVE_PKCS11_ED448 #define PK11_DH_DISABLE #define PK11_DSA_DISABLE #define PK11_FLAVOR #define PK11_MD5_DISABLE #undef PK11_SOFTHSMV2_FLAVOR prodding deraadt@
* unifdef printf and string functions:florian2020-01-099-16/+16
| | | | | | | | | | | | | | #undef ISC_PLATFORM_NEEDVSNPRINTF #undef ISC_PLATFORM_NEEDSPRINTF #undef ISC_PLATFORM_NEEDPRINTF #undef ISC_PLATFORM_NEEDFPRINTF #define ISC_PLATFORM_QUADFORMAT "ll" #undef ISC_PLATFORM_NEEDSTRSEP #undef ISC_PLATFORM_NEEDSTRLCPY #undef ISC_PLATFORM_NEEDSTRLCAT #undef ISC_PLATFORM_NEEDSTRTOUL #undef ISC_PLATFORM_NEEDMEMMOVE #undef ISC_PLATFORM_NEEDSTRCASESTR
* unifdef network defines:florian2020-01-097-344/+6
| | | | | | | | | | | | | | | | | | | | | | | | | #define ISC_PLATFORM_HAVESALEN 1 #define ISC_PLATFORM_HAVEIPV6 1 #undef ISC_PLATFORM_NEEDIN6ADDRANY #undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK #define ISC_PLATFORM_HAVEIN6PKTINFO 1 #undef ISC_PLATFORM_HAVEINADDR6 #define ISC_PLATFORM_HAVESCOPEID 1 #undef ISC_PLATFORM_NEEDNTOP #undef ISC_PLATFORM_NEEDPTON #undef ISC_PLATFORM_NEEDPORTT #undef ISC_PLATFORM_HAVELIFCONF #undef ISC_PLATFORM_HAVEIF_LADDRCONF #undef ISC_PLATFORM_HAVEIF_LADDRREQ #define ISC_NET_BSD44MSGHDR 1 #define ISC_PLATFORM_HAVEIFNAMETOINDEX 1 #undef ISC_PLATFORM_FIXIN6ISADDR #define ISC_PLATFORM_HAVESOCKADDRSTORAGE 1 #define ISC_PLATFORM_HAVEKQUEUE 1 #undef ISC_PLATFORM_HAVEEPOLL #undef ISC_PLATFORM_HAVEDEVPOLL prodding deraadt@
* Remove thread support. Minus 4k lines.florian2020-01-074-372/+2
| | | | OK millert
* Do not need the getudpportrange functions. We don't need to perform anyderaadt2019-12-191-119/+1
| | | | | | crazy random port allocation for dns 'security' in USERLAND because the KERNEL has automatically done port-randomization since 1996 (wow the year of BSE in Britain)
* unifdef _AIXsthen2019-12-181-34/+0
|
* disable all the dscp probing code. it sees all the dscp optionderaadt2019-12-171-351/+4
| | | | | | | | defines, but is trying to determine if the kernel has it enabled/disabled, mostly by performing tests against localhost. instead, just declare dscp works. since dscp probing happens late, it runs into problems with pledge. we prefer pledge over this lovecraftian horror.
* Add back some SOCK_DNS to socket() calls, and add a few more whilederaadt2019-12-172-10/+10
| | | | here (since this codebase will only support dig & nslookup)
* update to 9.10.8-P1, last isc-licensed releasesthen2019-12-1740-268/+270
|