Collin Funk wrote:
> Though, in practice I believe every OS (unsure about Windows) uses
> /etc/services. So maybe it is best to just assume it will work normally
> and improve the tests.

Yes. You can, for example, use your GitHub ci-scratch repository to
collect the data about various OSes in their current version, and
condense a unit test from that. Then commit that, and we can work
out the situation on AIX, Haiku, and older OS versions afterwards.

Btw.
> +    fputs ("getportbyname failed\n", stderr);

That should be
       fputs ("getservbyport failed\n", stderr);

Bruno




Reply via email to