[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gethostname library function



Looking at the function in the library, it seems to do the following:

	o Check for a HOSTNAME environment variable
	o Look for a file /local/hostname and use the contents

I think it would be more unix-like to reverse the order of those 2
things, and make the file /etc/hostname rather than /local/hostname.
I suppose to maintain compatibility, it will have to do:

	o Look for a file /etc/hostname and use the contents
	o Check for a HOSTNAME environment variable
	o Look for a file /local/hostname and use the contents

Comments ?

Simon.