Searched refs:prntbuf (Results 1 – 3 of 3) sorted by relevance
/titanic_50/usr/src/cmd/grep/ |
H A D | grep.c | 90 static char *prntbuf = NULL; variable 307 if (prntbuf == NULL) { in execute() 309 if ((prntbuf = malloc(fw_lPrntBufLen)) == NULL) { in execute() 328 if ((count = read(temp, prntbuf, GBUFSIZ)) <= 0) { in execute() 341 ptr = prntbuf; in execute() 350 if (ptr > prntbuf) { in execute() 351 (void) memmove(prntbuf, ptr, offset); in execute() 352 ptr = prntbuf; in execute() 364 if ((prntbuf = realloc(prntbuf, in execute() 377 ptr = prntbuf; in execute() [all …]
|
/titanic_50/usr/src/cmd/grep_xpg4/ |
H A D | grep.c | 108 static char *prntbuf; variable 832 if (prntbuf == NULL) { in grep() 834 if ((prntbuf = malloc(prntbuflen + 1)) == NULL) { in grep() 853 ptr = prntbuf; in grep() 855 if (ptr == prntbuf) { in grep() 898 if (ptr > prntbuf) { in grep() 905 (void) memmove(prntbuf, ptr, data_len); in grep() 912 prntbuf = realloc(prntbuf, prntbuflen + 1); in grep() 913 if (prntbuf == NULL) { in grep() 920 ptr = prntbuf; in grep()
|
/titanic_50/usr/src/tools/cscope-fast/ |
H A D | cgrep.c | 169 uchar_t *prntbuf; /* current line of input from data file */ member 1673 current.prntbuf = current.newline + 1; in execute() 1676 if (current.prntbuf < bufend) { in execute() 1700 if (current.newline < current.prntbuf) { in execute() 1725 if (current.newline <= current.prntbuf) { in execute() 1741 nc = current.newline + 1 - current.prntbuf; in execute() 1743 (void) fwrite((char *)current.prntbuf, 1, nc, output); in execute() 1768 if ((*pat->procfn)(pat, lptr->prntbuf - 1, lptr->newline + 1, in pattern_match() 1772 pat->loc1 = lptr->prntbuf; in pattern_match() 1788 uchar_t *begin = cur_ptr->prntbuf; in fgetfile() [all …]
|