Lines Matching refs:stb
733 struct stat stb; in parse_contents() local
750 if (fstat(cnt, &stb) != 0) { in parse_contents()
754 if (stb.st_size == 0) { in parse_contents()
759 map = mmap(0, stb.st_size, PROT_READ, MAP_PRIVATE, cnt, 0); in parse_contents()
764 (void) madvise(map, stb.st_size, MADV_WILLNEED); in parse_contents()
766 for (off = 0; off < stb.st_size; off += q - p) { in parse_contents()
768 q = memchr(p, '\n', stb.st_size - off); in parse_contents()
826 (void) munmap(map, stb.st_size); in parse_contents()
829 if (cntserrs > 0 && stb.st_nlink == 1) { in parse_contents()
848 struct stat stb; in parse_log() local
863 if (fstat(logfd, &stb) != 0) { in parse_log()
868 if (stb.st_size == 0) { in parse_log()
874 map = mmap(0, stb.st_size, PROT_READ|PROT_WRITE, MAP_PRIVATE, in parse_log()
885 realend = stb.st_size; in parse_log()
890 map[stb.st_size - 1] = '\0'; /* for strstr() */ in parse_log()
898 (long)(stb.st_size - realend)); in parse_log()
946 (void) munmap(map, stb.st_size); in parse_log()