Lines Matching refs:buf_match
293 char buf_match[BUFSZ]; member
472 p_match = memchr(fd_cmp->buf_match + done_match, '\n', in fd_cmp_regex()
475 if (fd_cmp->head_match >= sizeof(fd_cmp->buf_match)) { in fd_cmp_regex()
476 ERR("Read %zu bytes without a match\n", sizeof(fd_cmp->buf_match)); in fd_cmp_regex()
477 ERR("output: %.*s", (int)sizeof(fd_cmp->buf_match), fd_cmp->buf_match); in fd_cmp_regex()
482 r = read(fd_cmp->fd_match, fd_cmp->buf_match + fd_cmp->head_match, in fd_cmp_regex()
483 sizeof(fd_cmp->buf_match) - fd_cmp->head_match); in fd_cmp_regex()
489 p_match = memchr(fd_cmp->buf_match + done_match, '\n', in fd_cmp_regex()
498 if (!fd_cmp_regex_one(fd_cmp->buf_match + done_match, fd_cmp->buf + done)) { in fd_cmp_regex()
500 ERR("pattern: %s\n", fd_cmp->buf_match + done_match); in fd_cmp_regex()
506 done_match = p_match - fd_cmp->buf_match + 1; in fd_cmp_regex()
521 memmove(fd_cmp->buf_match, fd_cmp->buf_match + done_match, in fd_cmp_regex()
541 rmatch = read(fd_cmp->fd_match, fd_cmp->buf_match + done, r - done); in fd_cmp_exact()
556 fd_cmp->buf_match[r] = '\0'; in fd_cmp_exact()
561 if (!streq(fd_cmp->buf, fd_cmp->buf_match)) { in fd_cmp_exact()
563 ERR("correct:\n%s\n", fd_cmp->buf_match); in fd_cmp_exact()