(void)munmap((caddr_t)ptr, 0x8000);
(void)munmap((caddr_t)ptr, mlen);
int xf86ReadBIOS(Base, Offset, Buf, Len)unsigned long Base;unsigned long Offset;unsigned char *Buf;int Len;{	int fd;	unsigned char *ptr;	char	solx86_vtname[10];	/*     	 * Solaris 2.1 x86 SVR4 (10/27/93)     	 *      The server must treat the virtual terminal device file     	 *      as the standard SVR4 /dev/pmem. By default, then used VT     	 *      is considered the "default" file to open.     	 */        sprintf(solx86_vtname,"/dev/vt%02d",xf86Info.vtno);	if ((fd = open(solx86_vtname, O_RDONLY)) < 0)    	{        	ErrorF("xf86ReadBios: Failed to open %s (%s)\n", solx86_vtname,               		strerror(errno));        	return(-1);	}		ptr = mmap((caddr_t)0, 0x8000, PROT_READ, MAP_SHARED, fd, (off_t)Base);	if ((int)ptr == -1)	{		ErrorF("xf86ReadBios: %s mmap failed\n", solx86_vtname);		close(fd);		return(-1);	}	(void)memcpy(Buf, (void *)(ptr + Offset), Len);	(void)munmap((caddr_t)ptr, 0x8000);	(void)close(fd);	return(Len);}