int proc_hostname(char *s);
The system's host name, such as host.domain.com.
On success, returns the hostname length. On error, -1 is returned.
proc_domainname(), proc_ip()