uname is not defined in BSD 4.3.
Could you plz tell me where I can dig deeper for info on how these functions work .
gethostname gethostbyname uname
thnx n regards
vaidya
Dinil Divakaran wrote:
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
- : 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