Lines Matching refs:maplen
32 size_t maplen; member
40 static int countlines(char *map, int maplen) in countlines() argument
43 char *end = map + maplen; in countlines()
46 if (maplen == 0) in countlines()
58 static void fill_lines(char **lines, int maxline, char *map, int maplen) in fill_lines() argument
61 char *end = map + maplen; in fill_lines()
64 if (maplen == 0 || maxline == 0) in fill_lines()
81 map_total_sz -= sf->maplen; in free_srcfile()
82 munmap(sf->map, sf->maplen); in free_srcfile()
127 h->maplen = st.st_size; in find_srcfile()
128 sz = (h->maplen + page_size - 1) & ~(page_size - 1); in find_srcfile()
135 h->numlines = countlines(h->map, h->maplen); in find_srcfile()
139 fill_lines(h->lines, h->numlines, h->map, h->maplen); in find_srcfile()
142 map_total_sz += h->maplen; in find_srcfile()
168 p = memchr(l, '\n', sf->map + sf->maplen - l); in find_sourceline()