From: cgf AT cygnus DOT com (Christopher Faylor) Subject: Re: b20 patch: 'gethostname()' from winsock 2 Nov 1998 17:23:29 -0800 Message-ID: <19981102194224.A25468.cygnus.cygwin32.developers@cygnus.com> References: <363E4695 DOT 5F8A48F1 AT cityweb DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: Corinna Vinschen , cygwin32-developers AT cygnus DOT com This change has been committed. On Tue, Nov 03, 1998 at 12:56:05AM +0100, Corinna Vinschen wrote: >The following patch would allow, to get your hostname from the >winsock library, if it's installed. The result could be different >from the now only used 'GetComputerName()', because this function >takes the windows computer name, instead of the tcp/ip hostname. >The following patch checks, if it's possible, to get the hostname >from winsock, else it uses GetComputerName. The (possible) use of >winsock implies the move of `gethostname()' from `syscalls.cc' to >`net.cc'.