Lines Matching defs:buf2
200 char *buf0, *buf1, *buf2;
236 if ((buf2 = valloc(bufsize)) == NULL) {
237 tst_brkm(TBROK, cleanup, "valloc() buf2 failed: %s",
266 if (write(fd, buf2, 4096) == -1) {
277 ret = runtest_f(fd, buf2, offset, count, EINVAL, 3, "odd count");
294 ret = read(fd, buf2, count);
310 ret = runtest_f(newfd, buf2, offset, count, EBADF, 5, "negative fd");
322 ret = runtest_f(newfd, buf2, offset, count, EBADF, 6,
334 ret = runtest_f(fd, buf2, offset, count, EBADF, 7, "closed fd");
347 ret = runtest_s(newfd, buf2, offset, count, 9, "/dev/null");
367 ret = runtest_s(fd, buf2, offset, count, 10, "mmapped file");
377 ret = runtest_s(fd, buf2, offset, count, 11, "unmapped file");
396 ret = read(fd, buf2, count);
422 ret = write(fd, buf2, count);
450 ret = runtest_f(fd, buf2 + 1, offset, count, EINVAL, 14,
525 ret = runtest_s(fd, buf2, offset, count, 17, "opened with O_SYNC");