cosmopolitan/libc/dns
Justine Tunney 4778cd4d27
Fix bugs in termios library and cleanup code
This change fixes an issue with the tcflow() magic numbers that was
causing bash to freeze up on Linux. While auditing termios polyfills,
several other issues were identified with XNU/BSD compatibility.

Out of an abundance of caution this change undefines as much surface
area from libc/calls/struct/termios.h as possible, so that autoconf
scripts are less likely to detect non-POSIX teletypewriter APIs that
haven't been polyfilled by Cosmopolitan.

This is a *breaking change* for your static archives in /opt/cosmos if
you use the cosmocc toolchain. That's because this change disables the
ioctl() undiamonding trick for code outside the monorepo, specifically
because it'll lead to brittle ABI breakages like this. If you're using
the cosmocc toolchain, you'll need to rebuild libraries like ncurses,
readline, etc. Yes diamonds cause bloat. To work around that, consider
using tcgetwinsize() instead of ioctl(TIOCGWINSZ) since it'll help you
avoid pulling every single ioctl-related polyfill into the linkage.

The cosmocc script was specifying -DNDEBUG for some reason. It's fixed.
2023-06-14 19:30:52 -07:00
..
comparednsnames.c Make minor improvements 2021-05-15 21:53:26 -07:00
consts.h Merge HTTP request / response parsing code 2021-06-27 17:04:32 -07:00
dns.h Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
dns.mk Fold LIBC_ALG into LIBC_MEM 2022-08-13 08:32:34 -07:00
dns.png Initial import 2020-06-15 07:18:57 -07:00
dnsheader.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
dnsheader.h Make minor improvements 2021-05-15 21:53:26 -07:00
dnsquestion.h Make minor improvements 2021-05-15 21:53:26 -07:00
ent.h Improve system calls 2022-07-08 06:42:03 -07:00
freeaddrinfo.c Improve cosmo's conformance to libc-test 2022-10-10 17:52:41 -07:00
gai_strerror.c Rename eai2str to gai_strerror (#131) 2021-03-20 20:48:40 -07:00
getaddrinfo.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
gethostbyaddr.c Make whitespace changes 2021-08-13 03:20:45 -07:00
gethostbyname.c Make whitespace changes 2021-08-13 03:20:45 -07:00
gethoststxt.c Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
getnameinfo.c Fix bugs in cosmocc toolchain 2023-06-08 23:44:03 -07:00
getntnameservers.c Fix DNS resolution w/ commas in Windows Registry 2022-12-11 14:30:59 -08:00
getntprotocolstxtpath.c Unbloat the build 2022-08-11 00:15:29 -07:00
getntservicestxtpath.c Unbloat the build 2022-08-11 00:15:29 -07:00
getprotobyname.c Unbloat the build 2022-08-11 00:15:29 -07:00
getprotobynumber.c Unbloat the build 2022-08-11 00:15:29 -07:00
getresolvconf.c Fix bugs in termios library and cleanup code 2023-06-14 19:30:52 -07:00
getservbyname.c Make whitespace changes 2021-08-13 03:20:45 -07:00
getservbyport.c Make whitespace changes 2021-08-13 03:20:45 -07:00
h_errno.c Improve system calls 2022-07-08 06:42:03 -07:00
herror.c Improve system calls 2022-07-08 06:42:03 -07:00
hostent.c Make whitespace changes 2021-08-13 03:20:45 -07:00
hoststxt.h Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
hstrerror.c Improve system calls 2022-07-08 06:42:03 -07:00
lookupprotobyname.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
lookupprotobynumber.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
lookupservicesbyname.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
lookupservicesbyport.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
netent.c Make whitespace changes 2021-08-13 03:20:45 -07:00
newaddrinfo.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
parsehoststxt.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
parseresolvconf.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
pascalifydnsname.c Make minor improvements 2021-05-15 21:53:26 -07:00
protoent.c Make whitespace changes 2021-08-13 03:20:45 -07:00
prototxt.h Make whitespace changes 2021-08-13 03:20:45 -07:00
resolvconf.h Make minor improvements 2021-05-15 21:53:26 -07:00
resolvedns.c Improve cosmo's conformance to libc-test 2022-10-10 17:52:41 -07:00
resolvednsreverse.c Improve cosmo's conformance to libc-test 2022-10-10 17:52:41 -07:00
resolvehostsreverse.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
resolvehoststxt.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
rfc0226.txt Initial import 2020-06-15 07:18:57 -07:00
rfc0247.txt Initial import 2020-06-15 07:18:57 -07:00
rfc1035.txt Initial import 2020-06-15 07:18:57 -07:00
serializednsquestion.c Make minor improvements 2021-05-15 21:53:26 -07:00
servent.c Make whitespace changes 2021-08-13 03:20:45 -07:00
servicestxt.h Make whitespace changes 2021-08-13 03:20:45 -07:00