Sorry, I meant to attach a testcase to the original report: #include <stdio.h> #include <unistd.h> int main (void) { long hn = sysconf(_SC_HOST_NAME_MAX); printf("Hostname max length: %ld\n", hn); return 0; } Regards, Roger -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ Debian GNU/Linux http://www.debian.org/ GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.