if (mapaddr == (pointer) -1) {
if (mapaddr == (pointer) -1L) {
pointer alphaMemoryMap (len, off, fd)    size_t	len;    off_t	off;    int		fd;#endif{    int		pagemask, mapsize;    caddr_t	addr;    pointer	mapaddr;    pagemask = getpagesize() - 1;    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.     */    if ((long)(mapaddr = (pointer) mmap (addr,		mapsize,		PROT_READ | PROT_WRITE, MAP_PRIVATE,		fd, off)) == -1)	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 = (pointer) NULL;    }    return mapaddr;}