Shiro Kawai
Shiro Kawai
Thanks. What's your `/etc/host.conf`, just in case?
It returns all aliases on Ubuntu 24.04 (glibc 2.39). Probably that's glibc implementation thing. It appears that `gethostbyaddr` doesn't need to return all the aliases (when it does reverse DNS...
It is calling `gethostbyaddr_r` if it's available, or `gethostbyaddr` as fallback. https://github.com/shirok/Gauche/blob/master/src/netdb.c#L133 Actually, I noticed that on Ubuntu 24.04, `configure` chooses to use `gethostbyaddr` (it is not thread-safe, so we...
I'm rereading the code and noticed it hasn't supported ipv6. The code was written when ipv6 support wasn't universal, and hasn't been updated since then. I just pushed a commit...
I pushed some more fixes to handle ipv6 address correctly in `sys-gethostbyaddr`.
Right, CL's `random` fells short when you want a reproducible random sequence across implementations; I ended up rolling my own, albeit a simple-minded one, in hashmap unit test. Having Coalton's...