home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.24 / text0068.txt < prev    next >
Encoding:
Text File  |  1991-09-03  |  1.1 KB  |  29 lines

  1. Submitted-by: fkittred@bbn.com (Fletcher Kittredge)
  2.  
  3. In article <1991Jul30.205157.2691@uunet.uu.net> henry@zoo.toronto.edu (Henry Spencer) writes:
  4. >Submitted-by: henry@zoo.toronto.edu (Henry Spencer)
  5. >
  6. >In article <1991Jul30.194609.28887@uunet.uu.net> milt@pe-nelson.com (Mil Ratcliff) writes:
  7. >>SunOS provides the gethostname() call to return the host name for the current
  8. >>machine...  Is there a portable way to get a host name ...
  9. >
  10. >The very concept of a host name -- a unique readable name for the host --
  11. >is not (fully) portable.  No, there is no universal way to get it.
  12. >-- 
  13.  
  14. POSIX 1003.1 contains the uname(2) system call which returns a structure
  15. holding information about the host.  One of the fields of the structure
  16. is nodename, the current name of the host on a communications network. 
  17. It functions correctly on Sun O/S, DEC Ultrix and HP-UX.
  18.  
  19. regards,
  20. fletcher
  21. /* Fletcher Kittredge
  22.  * BBN Software Products
  23.  * 150 CambridgePark Dr,  Cambridge, MA. 02140
  24.  * 617-873-3465  /  fkittred@bbn.com  /  fkittred@das.harvard.edu
  25.  */
  26.  
  27. Volume-Number: Volume 24, Number 69
  28.  
  29.