Lines Matching defs:offset
12 * Adjust the file offset to the next location in the file greater than
13 * or equal to offset containing data. If offset points to data,
14 * then the file offset is set to offset.
17 * Adjust the file offset to the next hole in the file greater than or
18 * equal to offset. If offset points into the middle of a hole, then
19 * the file offset is set to offset. If there is no hole past offset,
20 * then the file offset is adjusted to the end of the file (i.e., there
54 * SEEK from "startblock * block_size - offset", "whence" as the directive
56 * startblock * block_size - offset: as offset of lseek()
58 * data: as the expected result read from file offset. NULL means expect
64 off_t offset;
83 {FILE_BLOCKS, -128, SEEK_HOLE, NULL, 0}, /* SEEK_HOLE from no hole pass offset*/
93 off_t pos = 0, offset = 128;
100 while (pos == 0 && offset < (st.st_blksize * 2)) {
101 offset <<= 1;
103 SAFE_PWRITE(1, fd, "a", 1, offset);
116 shift = offset >> 2;
117 while (shift && offset < (st.st_blksize * 2)) {
119 SAFE_PWRITE(1, fd, "a", 1, offset);
122 offset += pos ? -shift : shift;
127 offset += pos ? 0 : 1;
128 block_size = offset;
154 off_t offset = 0;
173 offset = UNIT_BLOCKS * block_size * i;
174 SAFE_LSEEK(fd, offset, SEEK_SET);
188 off_t offset;
193 offset = (tp->startblock * block_size) + tp->offset;
194 offset = SAFE_LSEEK(fd, offset, tp->whence);
199 if (offset != SAFE_LSEEK(fd, 0, SEEK_END))
205 "The %uth test failed: %s from startblock %lld offset %lld, expect \'%s\' return \'%s\'",
207 (long long int)tp->startblock, (long long int)tp->offset,
211 "The %uth test passed: %s from startblock %lld offset %lld",
213 (long long int)tp->startblock, (long long int)tp->offset);