/* isohost.c - getlocalhost */
static char *rcsid
= "$Header: /f/osi/compat/RCS/isohost.c,v 7.1 91/02/22 09:15:21 mrose Interim $";
* $Header: /f/osi/compat/RCS/isohost.c,v 7.1 91/02/22 09:15:21 mrose Interim $
* Revision 7.1 91/02/22 09:15:21 mrose
* Revision 7.0 89/11/23 21:23:08 mrose
* Acquisition, use, and distribution of this module and related
* materials are subject to the restrictions of a license agreement.
* Consult the Preface in the User's Manual for the full terms of
register struct hostent
*hp
;
static char buffer
[BUFSIZ
];
(void) strcpy (buffer
, isodename
);
#if !defined(SOCKETS) && !defined(SYS5)
(void) strcpy (buffer
, "localhost");
(void) gethostname (buffer
, sizeof buffer
);
(void) strcpy (buffer
, uts
.nodename
);
if (hp
= gethostbyname (buffer
))
(void) strcpy (buffer
, hp
-> h_name
);
SLOG (addr_log
, LLOG_EXCEPTIONS
, NULLCP
,
("%s: unknown host", buffer
));
if (cp
= index (buffer
, '.'))