Lines Matching refs:mapfd
231 int mapfd;
238 if ((mapfd = open(mapfile, O_RDONLY)) < 0 ||
239 fstat(mapfd, &statb) != 0 ||
242 (nmap = pread(mapfd, Pmap, statb.st_size, 0L)) <= 0 ||
249 if (mapfd >= 0)
250 (void) close(mapfd);
761 int mapfd;
772 if ((mapfd = open(mapfile, O_RDONLY)) < 0 ||
773 fstat(mapfd, &statb) != 0 ||
776 (nmap = pread(mapfd, Pmap, statb.st_size, 0L)) <= 0 ||
780 if (mapfd >= 0)
781 (void) close(mapfd);
784 (void) close(mapfd);