From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.0 required=3.0 tests=BAYES_20 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 21 Jul 93 20:52:56 GMT From: sarge!sarge!esther@uunet.uu.net (Esther Lumsdon) Subject: Re: SunAda question Message-ID: List-Id: svh@verdix.com (Steven Hovater) writes: >kanderso@mabillon.ICS.UCI.EDU (Kenneth Anderson) writes: >>Hello. I am using the sunada-1.1 compiler and it came with a package >>unix defined in its standard library. One of the subprograms defined >>in the package unix is >> function gethostname(name: address; namelen: integer) >> return status_code; >>As defined this function seems very useless. It will only tell you whether >>or not the call to gethostname was successful. It will not tell you, >>despite its name, what the hostname is. >>Two questions: >> 1. Anyone know why such a useless function would be included in >> this package? >> 2. What is a good portable way of finding out the name of the machine >> your program is running on? >>Thanks in advance, >>Ken Anderson >Hi Ken - not speaking officially here for Verdix, but for myself :) [ Steven Hovater included some code to get the hostname. ] Again, not an official communication from Verdix: The Verdix support BBS has unsupported code which does socket communication 703-318-5898, 2400 baud, or 9600 baud telebit modem. It's called asynchronous something-or-other on the BBS. You don't have to download it via the phone line; the BBS has an option to email stuff to you. If you have any trouble getting this, call the support hotline. Most of the material on the BBS is unsupported, supplied in source form. -- -- Esther Lumsdon, not speaking for Verdix. esther@verdix.com "It's time to cut bait and talk turkey. It takes 2 snakes to cross a puddle. You have to bale hay while the tractor is warm." ---- either H. Ross Perot or Dave Barry