Searched refs:prntbuf (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/cmd/grep/ |
H A D | grep.c | 119 static char *prntbuf, *conbuf; variable 697 free(prntbuf); in addfile() 952 if (prntbuf == NULL) { in grep() 954 if ((prntbuf = malloc(prntbuflen + 1)) == NULL) { in grep() 988 ptr = prntbuf; in grep() 994 if (ptr == prntbuf) { in grep() 1046 if (ptr > prntbuf) { in grep() 1053 (void) memmove(prntbuf, ptr, data_len); in grep() 1068 prntbuf = realloc(prntbuf, prntbuflen + 1); in grep() 1069 if (prntbuf == NULL) { in grep() [all …]
|
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | cgrep.c | 166 uchar_t *prntbuf; /* current line of input from data file */ member 1668 current.prntbuf = current.newline + 1; in execute() 1671 if (current.prntbuf < bufend) { in execute() 1695 if (current.newline < current.prntbuf) { in execute() 1720 if (current.newline <= current.prntbuf) { in execute() 1736 nc = current.newline + 1 - current.prntbuf; in execute() 1738 (void) fwrite((char *)current.prntbuf, 1, nc, output); in execute() 1763 if ((*pat->procfn)(pat, lptr->prntbuf - 1, lptr->newline + 1, in pattern_match() 1767 pat->loc1 = lptr->prntbuf; in pattern_match() 1783 uchar_t *begin = cur_ptr->prntbuf; in fgetfile() [all …]
|