comp.lang.ada
 help / color / mirror / Atom feed
From: ucivax!gateway@ucbvax.Berkeley.EDU  (Kenneth Anderson)
Subject: SunAda question
Date: 20 Jul 93 20:38:43 GMT	[thread overview]
Message-ID: <9307201338.aa20178@Paris.ics.uci.edu> (raw)

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

             reply	other threads:[~1993-07-20 20:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-07-20 20:38 Kenneth Anderson [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-07-21 11:37 SunAda question Steven Hovater
1993-07-21 12:07 Chris Elliott
1993-07-21 13:25 cis.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!news.cac.ps
1993-07-21 15:39 Robert I. Eachus
1993-07-21 16:07 cis.ohio-state.edu!magnus.acs.ohio-state.edu!math.ohio-state.edu!darwin.s
1993-07-21 18:50 David Emery
1993-07-21 20:52 Esther Lumsdon
1993-07-22 10:49 Steven Hovater
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox