Lines Matching refs:patlen
40 int pattern_check(char *buf, int buflen, char *pat, int patlen, int patshift)
45 if (patlen)
46 patshift = patshift % patlen;
52 * The following 2 blocks of code are to compare the first patlen
54 * must check the last (patlen - patshift) bytes, and then the
58 nb = patlen - patshift;
101 int pattern_fill(char *buf, int buflen, char *pat, int patlen, int patshift)
106 if (patlen)
107 patshift = patshift % patlen;
113 * The following 2 blocks of code are to fill the first patlen
115 * must first copy the last (patlen - patshift) bytes into buf[0]...,
119 trans = patlen - patshift;