+#ifdef GETHOST
+/*
+ * Initialize the network name of the current host.
+ */
+inithost()
+{
+ register struct netmach *np;
+ static char host[64];
+
+ gethostname(host, sizeof host);
+ for (np = netmach; np->nt_machine != 0; np++)
+ if (strcmp(np->nt_machine, EMPTY) == 0)
+ break;
+ if (np->nt_machine == 0) {
+ printf("Cannot find empty slot for dynamic host entry\n");
+ exit(1);
+ }
+ np->nt_machine = host;
+}
+#endif GETHOST
+