| www.delorie.com/archives/browse.cgi | search |
| Message-ID: | <3738C473.D2105F0D@meridian22.net> |
| Date: | Wed, 12 May 1999 00:59:47 +0100 |
| From: | Richard Dawe <richdawe AT bigfoot DOT com> |
| X-Mailer: | Mozilla 4.5 [en] (Win95; I) |
| X-Accept-Language: | en,de-DE,fr-FR |
| MIME-Version: | 1.0 |
| To: | djgpp-workers AT delorie DOT com |
| Subject: | $HOSTNAME doesn't override library code |
| Reply-To: | djgpp-workers AT delorie DOT com |
Hello. I've just been looking at the source file src/libc/compat/unistd/gethostn.c and I noticed that you cannot override the string returned by gethostname() by setting $HOSTNAME. Would it not be better to let the user override it? Otherwise programs are stuck with the ugly LAN Manager names - no DNS domain name, etc. This behaviour seems to contradict the approach taken with $USER.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |