Lines Matching refs:mapfd
203 int mapfd;
363 if ((mapfd = open(buf, O_RDONLY)) < 0) {
372 mapfd = -1;
408 (void) close(mapfd);
415 if (fstat64(mapfd, &statbuf) != 0) {
417 (void) close(mapfd);
472 if (fstat64(mapfd, &newbuf) != 0 ||
574 if (mapfd != -1)
575 (void) close(mapfd);
588 int mapfd, nmap, i, rc;
596 if ((mapfd = open(mapname, O_RDONLY)) < 0 || fstat(mapfd, &st) != 0) {
597 if (mapfd >= 0)
598 (void) close(mapfd);
605 if ((n = pread(mapfd, prmapp, (nmap + 1) * sizeof (prmap_t), 0L)) < 0) {
606 (void) close(mapfd);
611 (void) close(mapfd);
629 int mapfd, nmap, i, rc;
637 if ((mapfd = open(mapname, O_RDONLY)) < 0 || fstat(mapfd, &st) != 0) {
638 if (mapfd >= 0)
639 (void) close(mapfd);
648 if ((n = pread(mapfd, prmapp, (nmap + 1) * sizeof (prxmap_t), 0)) < 0) {
649 (void) close(mapfd);
660 (void) close(mapfd);