Lines Matching defs:count
31 * [2] Negative count - removed 08/01/2003 - robbiew
32 * [3] Odd count of read and write
96 runtest_f(int fd, char *buf, int offset, int count, int errnum, int testnum,
110 ret = read(fd, buf, count);
125 ret = write(fd, buf, count);
138 int runtest_s(int fd, char *buf, int offset, int count, int testnum, char *msg)
148 if ((ret = read(fd, buf, count)) < 0) {
159 if ((ret = write(fd, buf, count)) < 0) {
193 int count, ret;
247 count = bufsize;
262 /* Test-3: Odd count of read and write */
264 count = 1;
273 tst_resm(TCONF, "%s supports odd count IO",
277 ret = runtest_f(fd, buf2, offset, count, EINVAL, 3, "odd count");
279 "Odd count of read and write");
286 count = bufsize;
294 ret = read(fd, buf2, count);
308 count = bufsize;
310 ret = runtest_f(newfd, buf2, offset, count, EBADF, 5, "negative fd");
315 count = bufsize;
322 ret = runtest_f(newfd, buf2, offset, count, EBADF, 6,
332 count = bufsize;
334 ret = runtest_f(fd, buf2, offset, count, EBADF, 7, "closed fd");
343 count = bufsize;
347 ret = runtest_s(newfd, buf2, offset, count, 9, "/dev/null");
356 count = bufsize;
367 ret = runtest_s(fd, buf2, offset, count, 10, "mmapped file");
377 ret = runtest_s(fd, buf2, offset, count, 11, "unmapped file");
385 count = bufsize;
396 ret = read(fd, buf2, count);
411 count = bufsize;
422 ret = write(fd, buf2, count);
437 count = bufsize;
450 ret = runtest_f(fd, buf2 + 1, offset, count, EINVAL, 14,
460 count = bufsize;
473 count);
487 count);
502 count = bufsize;
511 ret = runtest_f(fd, buf1, offset, count, EFAULT, 16,
520 count = bufsize;
525 ret = runtest_s(fd, buf2, offset, count, 17, "opened with O_SYNC");