Lines Matching refs:bufstart
266 char buf[BSIZE * 32], *bufend, *cp, *bufstart; in wlog_scan_backward() local
291 bufstart = buf; in wlog_scan_backward()
302 bufstart = bufend - (offset + leftover); in wlog_scan_backward()
318 nbytes = read(fd, bufstart, bufend - bufstart - leftover); in wlog_scan_backward()
323 offset, fd, bufstart, in wlog_scan_backward()
324 (int)(bufend - bufstart - leftover), in wlog_scan_backward()
332 while (cp >= bufstart) { in wlog_scan_backward()
340 if (cp - bufstart < 2) { in wlog_scan_backward()
341 leftover = cp - bufstart; in wlog_scan_backward()
342 memcpy(bufend - leftover, bufstart, leftover); in wlog_scan_backward()
361 if (cp - bufstart < reclen + 2) { in wlog_scan_backward()
362 leftover = cp - bufstart; in wlog_scan_backward()
363 memcpy(bufend - leftover, bufstart, leftover); in wlog_scan_backward()