Skip to content

Set `h_errno` for gethostbyname/addr

Josh Megnauth requested to merge josh/relibc:netdb-h_errno into master

gethostbyname() and gethostbyaddr() are deprecated functions that set h_errno instead of errno for errors.

Currently, h_errno remains unset which can be confusing, especially for older programs that use it. For example, QuakeSpasm used to trigger a relibc panic. Prior to the panic, the program would print "Unknown error" repeatedly due to h_errno being unset.

Merge request reports