Lines Matching refs:patshift
40 int pattern_check(char *buf, int buflen, char *pat, int patlen, int patshift) in pattern_check() argument
46 patshift = patshift % patlen; in pattern_check()
58 nb = patlen - patshift; in pattern_check()
60 return (memcmp(cp, pat + patshift, nleft) ? -1 : 0); in pattern_check()
62 if (memcmp(cp, pat + patshift, nb)) in pattern_check()
69 if (patshift > 0) { in pattern_check()
70 nb = patshift; in pattern_check()
101 int pattern_fill(char *buf, int buflen, char *pat, int patlen, int patshift) in pattern_fill() argument
107 patshift = patshift % patlen; in pattern_fill()
119 trans = patlen - patshift; in pattern_fill()
121 memcpy(cp, pat + patshift, nleft); in pattern_fill()
124 memcpy(cp, pat + patshift, trans); in pattern_fill()
129 if (patshift > 0) { in pattern_fill()
130 trans = patshift; in pattern_fill()