Lines Matching defs:map
735 char *p, *q, *map;
759 map = mmap(0, stb.st_size, PROT_READ, MAP_PRIVATE, cnt, 0);
761 if (map == (char *)-1)
764 (void) madvise(map, stb.st_size, MADV_WILLNEED);
767 p = map + off;
826 (void) munmap(map, stb.st_size);
852 char *p, *q, *map;
874 map = mmap(0, stb.st_size, PROT_READ|PROT_WRITE, MAP_PRIVATE,
877 if (map == (char *)-1) {
887 if (memcmp(map + realend - mlen, marker, mlen) != 0) {
890 map[stb.st_size - 1] = '\0'; /* for strstr() */
892 for (p = map; q = strstr(p, marker); ) {
893 if (q == map || q[-1] == '\n')
894 realend = q - map + mlen;
902 p = map + off;
946 (void) munmap(map, stb.st_size);
1283 char *map = pf->buf;
1299 p = map + off;