Thanks, that looks good, except for a couple of minor details:

> +  int ret;
> +
> +  if (len > INT_MAX)
> +    len = INT_MAX;
> +  ret = sysinfo (SI_SRPC_DOMAIN, name, len);

'ret' should be of type long int, not int, and
the INT_MAX should be LONG_MAX (twice).

>    dnl Where is getdomainname() defined?
> -  dnl - On Solaris, it is in libnsl.
> +  dnl - On Solaris, it is in libnsl. But this function is not declared and
> +  dnl   is deprecated, see

It's private, not deprecated.

Reply via email to