Lines Matching defs:buf
40 int pattern_check(char *buf, int buflen, char *pat, int patlen, int patshift)
48 cp = buf;
53 * bytes of buf. We need 2 checks if patshift is > 0 since we
87 ncmp = cp - buf;
90 if (memcmp(buf, cp, nb))
101 int pattern_fill(char *buf, int buflen, char *pat, int patlen, int patshift)
109 cp = buf;
114 * bytes of buf. We need 2 sections if patshift is > 0 since we
115 * must first copy the last (patlen - patshift) bytes into buf[0]...,
146 ncopied = cp - buf;
149 memcpy(cp, buf, trans);