setbuf(fp, NULL);
__hostalias(name)	register const char *name;{	register char *cp1, *cp2;	FILE *fp;	char *file;	char buf[BUFSIZ];	static char abuf[MAXDNAME];	file = getenv("HOSTALIASES");	if (file == NULL || (fp = fopen(file, "r")) == NULL)		return (NULL);	buf[sizeof(buf) - 1] = '\0';	while (fgets(buf, sizeof(buf), fp)) {		for (cp1 = buf; *cp1 && !isspace(*cp1); ++cp1)			;		if (!*cp1)			break;		*cp1 = '\0';		if (!strcasecmp(buf, name)) {			while (isspace(*++cp1))				;			if (!*cp1)				break;			for (cp2 = cp1 + 1; *cp2 && !isspace(*cp2); ++cp2)				;			abuf[sizeof(abuf) - 1] = *cp2 = '\0';			strncpy(abuf, cp1, sizeof(abuf) - 1);			fclose(fp);			return (abuf);		}	}	fclose(fp);	return (NULL);}