www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/05/12/14:54:59

From: Alain Magloire <alainm AT rcsm DOT ece DOT mcgill DOT ca>
Message-Id: <199905121855.OAA27122@mccoy2.ECE.McGill.CA>
Subject: Re: $HOSTNAME doesn't override library code
To: djgpp-workers AT delorie DOT com
Date: Wed, 12 May 1999 14:55:02 -0400 (EDT)
In-Reply-To: <3738C473.D2105F0D@meridian22.net> from "Richard Dawe" at May 12, 99 00:59:47 am
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Bonjour 

> 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.

Should not the application be link with the library

cc -o app app.c -lsocket

libsocket.a should overide libc .. no ?


-- 
au revoir, alain
----
Aussi haut que l'on soit assis, on est toujours assis que sur son cul !!!

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019