Lines Matching full:stride
30 static off_t stride = 1; variable
48 " [-s stride] [-k seekblocks] [-K seekbytes]\n" in usage()
52 "Simplified version of dd that supports the stride option.\n" in usage()
53 "A stride of n means that for each block written, n - 1 blocks\n" in usage()
54 "are skipped in both the input and output file. A stride of 1\n" in usage()
63 " stride: Read/write a block then skip (stride - 1) blocks" in usage()
146 stride = atoi(optarg); in parse_options()
184 if (bsize <= 0 || stride <= 0 || ifile == NULL || ofile == NULL || in parse_options()
216 if (stride > 1) { in read_entire_file()
217 if (lseek(ifd, (stride - 1) * bsize, SEEK_CUR) == -1) { in read_entire_file()
221 if (lseek(ofd, (stride - 1) * bsize, SEEK_CUR) == -1) { in read_entire_file()
262 if (stride > 1) { in read_on_count()
263 if (lseek(ifd, (stride - 1) * bsize, SEEK_CUR) == -1) { in read_on_count()
267 if (lseek(ofd, (stride - 1) * bsize, SEEK_CUR) == -1) { in read_on_count()