Home
last modified time | relevance | path

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

/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dfile.c67 static unsigned char *bufpos; variable
79 bufpos = buffer; in grep_refill()
157 return ((char *)bufpos); in grep_fgetln()
161 if ((p = memchr(bufpos, line_sep, bufrem)) != NULL) { in grep_fgetln()
163 len = p - bufpos; in grep_fgetln()
165 memcpy(lnbuf, bufpos, len); in grep_fgetln()
169 bufpos = p; in grep_fgetln()
177 memcpy(lnbuf + off, bufpos, len - off); in grep_fgetln()
185 if ((p = memchr(bufpos, line_sep, bufrem)) == NULL) in grep_fgetln()
189 diff = p - bufpos; in grep_fgetln()
[all …]