fd, off);
fd, 0);
hpcMemoryMap (len, off, fd)    size_t	len;    off_t	off;    int		fd;{    int		pagemask, mapsize;    caddr_t	addr;    pointer	mapaddr;    off_t	off2;    pagemask = getpagesize() - 1;    off2 = off & ~pagemask;    off -= off2;    len += off2;    mapsize = ((int) len + pagemask) & ~pagemask;    addr = 0;    /*     * try and make it private first, that way once we get it, an     * interloper, e.g. another server, can't get this frame buffer,     * and if another server already has it, this one won't.     */    mapaddr = (pointer) mmap(addr, mapsize,		    PROT_READ | PROT_WRITE, MAP_SHARED,		    fd, off);    if (mapaddr == (pointer) -1) {	Error ("mapping frame buffer memory");	(void) close (fd);	mapaddr = NULL;    }    return mapaddr + off2;}