Lines Matching refs:n

65   size_t n;  in dump_bufq()  local
79 n = 0; in dump_bufq()
82 ++n; in dump_bufq()
86 fprintf(stderr, "- spares: %zu\n", n); in dump_bufq()
99 ssize_t n, i; in check_bufq() local
117 n = Curl_bufq_write(&q, test_data, wsize, &result); in check_bufq()
118 fail_unless(n >= 0, "write: negative size returned"); in check_bufq()
119 fail_unless((size_t)n <= wsize, "write: wrong size returned"); in check_bufq()
126 n = Curl_bufq_write(&q, test_data, wsize, &result); in check_bufq()
127 if(n >= 0) { in check_bufq()
128 nwritten += (size_t)n; in check_bufq()
145 n = Curl_bufq_read(&q, test_data, rsize, &result); in check_bufq()
146 if(n >= 0) { in check_bufq()
147 nread += (size_t)n; in check_bufq()
166 n = Curl_bufq_write(&q, test_data, wsize, &result); in check_bufq()
167 if(n < 0 && result != CURLE_AGAIN) { in check_bufq()
171 n = Curl_bufq_read(&q, test_data, rsize, &result); in check_bufq()
172 if(n < 0 && result != CURLE_AGAIN) { in check_bufq()
183 n = Curl_bufq_write(&q, test_data, wsize, &result); in check_bufq()
184 if(n < 0 || (size_t)n != wsize) { in check_bufq()
185 fail_unless(n > 0 && (size_t)n == wsize, "write should be complete"); in check_bufq()
188 nwritten += (size_t)n; in check_bufq()
197 n = Curl_bufq_write(&q, test_data, wsize, &result); in check_bufq()
198 fail_unless(n > 0 && (size_t)n == wsize, "write should be complete"); in check_bufq()
199 nwritten += (size_t)n; in check_bufq()
203 n = Curl_bufq_read(&q, test_data, rsize, &result); in check_bufq()
204 if(n <= 0) { in check_bufq()
205 fail_unless(n > 0, "read-loop: unexpected fail"); in check_bufq()
208 nread += (size_t)n; in check_bufq()
221 n = Curl_bufq_write(&q, buf, sizeof(buf), &result); in check_bufq()
222 fail_unless(n > 0 && (size_t)n == sizeof(buf), "write incomplete"); in check_bufq()
230 n = Curl_bufq_read(&q, rbuf, sizeof(rbuf), &result); in check_bufq()
231 fail_unless(n > 0, "read should work"); in check_bufq()
234 if(n != sizeof(rbuf)) { in check_bufq()
237 if(memcmp(buf, rbuf, n)) { in check_bufq()
239 roffset, (int)n, buf, (int)n, rbuf); in check_bufq()
242 roffset += n; in check_bufq()
255 ssize_t n; variable
260 n = Curl_bufq_read(&q, buf, 128, &result);
261 fail_unless(n < 0 && result == CURLE_AGAIN, "read empty fail");