delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/08/20/06:59:26

From: cgf AT cygnus DOT com (Christopher Faylor)
Subject: Re: Changes to winsup-980812
20 Aug 1998 06:59:26 -0700 :
Message-ID: <19980820093934.B23493.cygnus.cygwin32.developers@cygnus.com>
References: <35D7692D DOT 55D70D8 AT cityweb DOT de>
Mime-Version: 1.0
To: Corinna Vinschen <corinna DOT vinschen AT cityweb DOT de>
Cc: cygwin32-developers AT cygnus DOT com

On Thu, Aug 20, 1998 at 12:03:34PM +0200, Corinna Vinschen wrote:
>IMHO, the implementation of the function 'gethostname()' is worse than
>nothing, because the name, returned by 'GetComputerName()' may not be
>the same name as returned by the wsock-function 'gethostname()'.  I
>have patched it at home, but I havn't sent the patch, because I haven't
>realized the 'deep sense' of the official version (W95?).  Sergey
>Okhapkin has written to me 'TCP/IP may be not installed'.  Does anybody
>need 'gethostname()' if he/she doesn't have installed TCP/IP????

That's an impossible question to answer.  I certainly assume that it is
possible.

Maybe the "correct" way to do this is to use winsock gethostname and if
that fails or returns an empty string, default to GetComputerName().

>Now the patch:

Once we receive the assignment form, I'd appreciate it if you'd provide
us with a full diff -cp again so that there is no confusion.

Thanks,
-chris

- Raw text -


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