/* -*-C-*-
-$Id: os2sock.c,v 1.4 1997/11/01 07:18:06 cph Exp $
+$Id: os2sock.c,v 1.5 1997/11/01 07:26:23 cph Exp $
Copyright (c) 1990-97 Massachusetts Institute of Technology
const char *
OS_canonical_host_name (const char * host_name)
{
- struct hostent * entry = (gethostbyname (this_host_name));
+ struct hostent * entry = (gethostbyname (host_name));
if (entry == 0)
return (0);
{
/* -*-C-*-
-$Id: pruxsock.c,v 1.13 1997/11/01 07:19:15 cph Exp $
+$Id: pruxsock.c,v 1.14 1997/11/01 07:27:36 cph Exp $
Copyright (c) 1990-97 Massachusetts Institute of Technology
{
SCHEME_OBJECT result
= (char_pointer_to_string ((unsigned char *) host_name));
- OS_free (host_name);
+ OS_free ((PTR) host_name);
PRIMITIVE_RETURN (result);
}
});
{
SCHEME_OBJECT result
= (char_pointer_to_string ((unsigned char *) host_name));
- OS_free (host_name);
+ OS_free ((PTR) host_name);
PRIMITIVE_RETURN (result);
}
});
/* -*-C-*-
-$Id: uxsock.c,v 1.15 1997/11/01 07:19:03 cph Exp $
+$Id: uxsock.c,v 1.16 1997/11/01 07:26:30 cph Exp $
Copyright (c) 1990-97 Massachusetts Institute of Technology
#endif
}
+#define HOSTNAMESIZE 1024
+
CONST char *
DEFUN_VOID (OS_get_host_name)
{
CONST char *
DEFUN (OS_canonical_host_name, (host_name), CONST char * host_name)
{
- struct hostent * entry = (gethostbyname (this_host_name));
+ struct hostent * entry = (gethostbyname (host_name));
if (entry == 0)
return (0);
{