Hi,
I am using gethostname n gethostbyname in one of my application ... to get the fully qualified hostname.
i want to ensure that this will work in all distribution versions of linux ... be it redhat, mandrake , fedora etc etc ...
You can use 'uname' sytem call. See man page of uname(2). This should help. - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html