3 ms·
Here's musl's DNS resolution logic, for other people who may be curious: http://git.musl-libc.org/cgit/musl/tree/src/network/lookup_name.c http://git.musl-libc.
by panic 10y ago
Here's musl's DNS resolution logic, for other people who may be curious: http://git.musl-libc.org/cgit/musl/tree/src/network/lookup_name.c http://git.musl-libc.org/cgit/musl/tree/src/network/lookup_n...
- kbenson 10y agoThis exemplifies why I've always been mystified by those that say Perl is line noise, but don't seem to have a problem with C. It's obvious to me that what one considers hard to read code, or colloquially as "line noise", is greatly impacted with how familiar one is with a language and the idioms of that language being used in the code in question.
- asveikau 10y agoThat is crazy simple. I bet glibc's is a lot longer.
- jcranmer 10y agoHere's part of glibc's: https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/posix/getaddrinfo.c;h=31bb7e66dcbe1868b8e5e34185e048fe5bde15ab;hb=0d261f406d7c8f70b4ad7ca7d9247da1db3dfb41 https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/pos...