Lines Matching refs:nleft
42 int nb, ncmp, nleft; in pattern_check() local
49 nleft = buflen; in pattern_check()
59 if (nleft < nb) { in pattern_check()
60 return (memcmp(cp, pat + patshift, nleft) ? -1 : 0); in pattern_check()
65 nleft -= nb; in pattern_check()
71 if (nleft < nb) { in pattern_check()
72 return (memcmp(cp, pat, nleft) ? -1 : 0); in pattern_check()
77 nleft -= nb; in pattern_check()
89 nb = (ncmp < nleft) ? ncmp : nleft; in pattern_check()
95 nleft -= nb; in pattern_check()
103 int trans, ncopied, nleft; in pattern_fill() local
110 nleft = buflen; in pattern_fill()
120 if (nleft < trans) { in pattern_fill()
121 memcpy(cp, pat + patshift, nleft); in pattern_fill()
125 nleft -= trans; in pattern_fill()
131 if (nleft < trans) { in pattern_fill()
132 memcpy(cp, pat, nleft); in pattern_fill()
136 nleft -= trans; in pattern_fill()
148 trans = (ncopied < nleft) ? ncopied : nleft; in pattern_fill()
152 nleft -= trans; in pattern_fill()