Lines Matching refs:maplen
385 size_t maplen; /* length of mmap area, or 0 */
401 lf->maplen = 0;
410 if (lf->maplen > 0) {
412 munmap(lf->buf, lf->maplen);
515 lf->maplen = pagesize * ((lf->len + pagesize - 1)/pagesize);
522 if (lf->maplen == 0) {
523 lf->maplen = pagesize;
530 lf->buf = mmap(NULL, lf->maplen, PROT_READ|PROT_WRITE,
534 if (lf->len == lf->maplen && lf->buf[lf->len - 1] != '\n') {
538 munmap(lf->buf, lf->maplen);
539 lf->maplen = 0;
548 lf->maplen = 0;