Lines Matching refs:cnt
217 int cnt = min(len, MAX_KLOG_WRITE_BUF_SZ);
221 nl = memrchr(ptr, '\n', cnt - 1);
223 cnt = nl - ptr + 1;
225 yoink = ptr[cnt];
226 ptr[cnt] = '\0';
228 ptr[cnt] = yoink;
230 len -= cnt;
231 ptr += cnt;
245 size_t cnt;
251 cnt = read(fd, buf, sz - 1);
252 if (cnt <= 0)
254 buf[cnt] = '\0';
255 if (buf[cnt - 1] == '\n') {
256 cnt--;
257 buf[cnt] = '\0';
261 return cnt;