home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: fkittred@bbn.com (Fletcher Kittredge)
-
- In article <1991Jul30.205157.2691@uunet.uu.net> henry@zoo.toronto.edu (Henry Spencer) writes:
- >Submitted-by: henry@zoo.toronto.edu (Henry Spencer)
- >
- >In article <1991Jul30.194609.28887@uunet.uu.net> milt@pe-nelson.com (Mil Ratcliff) writes:
- >>SunOS provides the gethostname() call to return the host name for the current
- >>machine... Is there a portable way to get a host name ...
- >
- >The very concept of a host name -- a unique readable name for the host --
- >is not (fully) portable. No, there is no universal way to get it.
- >--
-
- POSIX 1003.1 contains the uname(2) system call which returns a structure
- holding information about the host. One of the fields of the structure
- is nodename, the current name of the host on a communications network.
- It functions correctly on Sun O/S, DEC Ultrix and HP-UX.
-
- regards,
- fletcher
- /* Fletcher Kittredge
- * BBN Software Products
- * 150 CambridgePark Dr, Cambridge, MA. 02140
- * 617-873-3465 / fkittred@bbn.com / fkittred@das.harvard.edu
- */
-
- Volume-Number: Volume 24, Number 69
-
-