Home
last modified time | relevance | path

Searched refs:bufalloc (Results 1 – 2 of 2) sorted by relevance

/freebsd-12.1/gnu/usr.bin/grep/
H A Dgrep.c233 static size_t bufalloc; /* Allocated buffer size, counting slop. */ variable
277 bufalloc = ALIGN_TO (INITIAL_BUFSIZE, pagesize) + pagesize + 1; in reset()
278 buffer = xmalloc (bufalloc); in reset()
362 if (pagesize <= buffer + bufalloc - buflim) in fillbuf()
375 for (newsize = bufalloc - pagesize - 1; newsize < minsize; newsize *= 2) in fillbuf()
399 newbuf = bufalloc < newalloc ? xmalloc (bufalloc = newalloc) : buffer; in fillbuf()
411 readsize = buffer + bufalloc - readbuf; in fillbuf()
H A DChangeLog1277 be bufalloc / PREFERRED_SAVE_FACTOR. This avoids problems when
1278 bufsalloc == bufalloc (possible after reading a large binary file).