Lines Matching refs:map
101 struct mapinfo map; in r_reg() local
108 map.start = NULL; in r_reg()
109 map.mapoff = map.maxoff = size; in r_reg()
110 map.fd = fileno(fp); in r_reg()
119 if (curoff < map.mapoff || in r_reg()
120 curoff >= map.mapoff + (off_t)map.maplen) { in r_reg()
121 if (maparound(&map, curoff) != 0) { in r_reg()
126 for (i = curoff - map.mapoff; i >= 0; i--) { in r_reg()
129 if (map.start[i] == '\n') in r_reg()
133 curoff = map.mapoff + i; in r_reg()
138 if (mapprint(&map, curoff + 1, lineend - curoff - 1) != 0) { in r_reg()
154 if (curoff < 0 && mapprint(&map, 0, lineend) != 0) { in r_reg()
158 if (map.start != NULL && munmap(map.start, map.maplen)) in r_reg()