delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/31/11:33:10

From: michael DOT mauch AT gmx DOT de (Michael Mauch)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How should gethostname() work?
Date: Tue, 31 Mar 1998 18:04:55 +0200
Organization: Gerhard-Mercator-Universitaet -GH- Duisburg
Lines: 23
Message-ID: <6fr46v$6i3$1@news-hrz.uni-duisburg.de>
References: <6fat7h$2jh$1 AT news-hrz DOT uni-duisburg DOT de> <352022b1 DOT 5037141 AT news DOT easynet DOT co DOT uk>
NNTP-Posting-Host: ppp102.uni-duisburg.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Tue, 31 Mar 1998 00:31:22 GMT, mert0407 AT sable DOT ox DOT ac DOT uk (George Foot)
wrote:

> Your calculation of `len' is not watertight here;

Yes, you are right; I didn't see this.

As Eli posted already, his much better patch is at Tom Demmer's site
(ftp://ftp.lstm.ruhr-uni-bochum.de/pub/djgpp/patches).

> Finally, note that `dosbuf' is only used when getting the hostname
> from DOS networking systems.  Perhaps the return string from the
> interrupt is only allowed to be 16 characters long (I'm not sure) --
> in which case there's not much point in making `dosbuf' MAXHOSTNAME
> bytes long.

You're right here, too. Ralf Brown's Interrupt List says that it has to
be only 16 characters - I have to get some spectacles.

Sorry for the trouble I caused.

Regards...
		Michael

- Raw text -


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