Lines Matching defs:offset

96 runtest_f(int fd, char *buf, int offset, int count, int errnum, int testnum,
102 if (lseek(fd, offset, SEEK_SET) < 0) {
117 if (lseek(fd, offset, SEEK_SET) < 0) {
138 int runtest_s(int fd, char *buf, int offset, int count, int testnum, char *msg)
143 if (lseek(fd, offset, SEEK_SET) < 0) {
154 if (lseek(fd, offset, SEEK_SET) < 0) {
194 int offset;
246 offset = -1;
249 ret = lseek(fd, offset, SEEK_SET);
251 tst_resm(TFAIL, "lseek allows negative offset. returns %d:%s",
263 offset = 0;
277 ret = runtest_f(fd, buf2, offset, count, EINVAL, 3, "odd count");
285 offset = bufsize * (fblocks + 10);
287 if (lseek(fd, offset, SEEK_SET) < 0) {
307 offset = 4096;
310 ret = runtest_f(newfd, buf2, offset, count, EBADF, 5, "negative fd");
316 offset = 4096;
322 ret = runtest_f(newfd, buf2, offset, count, EBADF, 6,
331 offset = 4096;
334 ret = runtest_f(fd, buf2, offset, count, EBADF, 7, "closed fd");
342 offset = 0;
347 ret = runtest_s(newfd, buf2, offset, count, 9, "/dev/null");
355 offset = 4096;
367 ret = runtest_s(fd, buf2, offset, count, 10, "mmapped file");
377 ret = runtest_s(fd, buf2, offset, count, 11, "unmapped file");
384 offset = 4096;
390 if (lseek(fd, offset, SEEK_SET) < 0) {
410 offset = 4096;
416 if (lseek(fd, offset, SEEK_SET) < 0) {
436 offset = 4096;
450 ret = runtest_f(fd, buf2 + 1, offset, count, EINVAL, 14,
459 offset = 4096;
466 if (lseek(fd, offset, SEEK_SET) < 0) {
481 if (lseek(fd, offset, SEEK_SET) < 0) {
501 offset = 4096;
511 ret = runtest_f(fd, buf1, offset, count, EFAULT, 16,
519 offset = 4096;
525 ret = runtest_s(fd, buf2, offset, count, 17, "opened with O_SYNC");