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