Lines Matching refs:offset
51 " [+T idlen id size unit [offset]]?Defines a sized record"
55 " [+id?type identifier, starting at record offset 0]"
59 " [+offset?if \aunit\a > 0 then this byte multiplied by"
68 "[o:offset?Start description listing at \aoffset\a.]#[offset:=0]"
85 unsigned long offset;
97 int offset;
102 Sfoff_t offset;
111 Sfoff_t offset;
155 register unsigned long offset;
167 offset = 0;
173 cur = offset + i;
183 if ((cur - p->offset) <= dif)
194 p->offset = cur;
197 offset += n;
205 sfprintf(sfstdout, "rec %7lu %7lu %7lu\n", state.mod[i].index, state.mod[i].count, state.mod[i].offset);
262 Sfoff_t offset;
273 offset = 0;
290 loop[nest].offset = sfseek(dp, (Sfoff_t)0, SEEK_CUR);
292 if (verbose && offset >= state.offset)
293 sfprintf(sfstdout, "=== %I*d === loop %d %lu %I*d === %-.*s\n", sizeof(offset), offset, nest, loop[nest].count, sizeof(loop[nest].offset), loop[nest].offset, t - s, s);
300 else if (sfseek(dp, loop[nest].offset, SEEK_SET) < 0)
301 error(ERROR_SYSTEM|3, "loop seek error to %I*d", sizeof(loop[nest].offset), loop[nest].offset);
302 else if (verbose && offset >= state.offset)
303 sfprintf(sfstdout, "=== %I*d === loop %d %lu %I*d === %-.*s\n", sizeof(offset), offset, nest, loop[nest].count, sizeof(loop[nest].offset), loop[nest].offset, t - s, s);
306 if (verbose && offset >= state.offset)
307 sfprintf(sfstdout, "=== %I*d === %-.*s\n", sizeof(offset), offset, t - s, s);
311 if (offset >= state.offset)
314 sfprintf(sfstdout, "=== %I*d === %ld === %-.*s\n", sizeof(offset), offset, size, t - s, s);
316 error(ERROR_SYSTEM|3, "%s: cannot read %ld bytes at %I*d", file, size, sizeof(offset), offset);
320 error(ERROR_SYSTEM|3, "%s: cannot seek %ld bytes at %I*d", file, size, sizeof(offset), offset);
321 offset += size;
325 if (verbose && offset >= state.offset)
326 sfprintf(sfstdout, "=== %I*d === %ld === %-.*s\n", sizeof(offset), offset, size, t - s, s);
328 error(ERROR_SYSTEM|3, "%s: cannot seek %ld bytes at %I*d", file, size, sizeof(offset), offset);
329 offset += size;
334 if (offset < state.offset)
337 if ((offset + skip) > state.offset)
339 skip = (state.offset - offset) / size;
343 error(ERROR_SYSTEM|3, "%s: cannot seek %I*d bytes at %I*d", file, sizeof(skip), skip, sizeof(offset), offset);
344 offset += skip;
347 if (offset >= state.offset)
350 sfprintf(sfstdout, "=== %I*d === %ld * %ld === %-.*s\n", sizeof(offset), offset, size, count, t - s, s);
358 error(ERROR_SYSTEM|3, "cannot read %ld bytes at %I*d", size, sizeof(offset), offset);
359 offset += size;
364 error(ERROR_SYSTEM|3, "%s: cannot seek %I*d bytes at %I*d", file, sizeof(skip), skip, sizeof(offset), offset);
365 offset += skip;
371 error(ERROR_SYSTEM|3, "cannot read %ld bytes at %I*d", size, sizeof(offset), offset);
372 offset += size;
380 error(ERROR_SYSTEM|3, "%s: cannot seek %I*d bytes at %I*d", file, sizeof(skip), skip, sizeof(offset), offset);
381 offset += skip;
407 sfprintf(sfstdout, "=== %I*d === %0*x === type not found\n", sizeof(offset), offset, 2 * state.typelen, id[state.typelen]);
410 if (verbose && offset >= state.offset)
411 sfprintf(sfstdout, "=== %I*d === %0*x === type\n", sizeof(offset), offset, 2 * state.type[state.typelast].len, id[state.type[state.typelast].len]);
416 error(ERROR_SYSTEM|3, "cannot read %ld bytes at %I*d", size, sizeof(offset), offset);
419 size += p[state.type[state.typelast].offset] * state.type[state.typelast].unit;
422 error(ERROR_SYSTEM|3, "cannot read %ld bytes at %I*d", size, sizeof(offset), offset);
424 if (offset >= state.offset)
433 offset += size;
439 error(ERROR_SYSTEM|3, "cannot read %ld bytes at %I*d", size, sizeof(offset), offset);
444 if (offset >= state.offset)
447 sfprintf(sfstdout, "=== %I*d === %ld === %-.*s\n", sizeof(offset), offset, size, t - s, s);
448 offset += size;
450 error(ERROR_SYSTEM|3, "cannot read %ld bytes at %I*d", count, sizeof(offset), offset);
455 offset += 2;
457 error(ERROR_SYSTEM|3, "%s: cannot seek %ld bytes at %I*d", file, count, sizeof(offset), offset);
459 offset += count;
471 state.type[state.types].offset = number(&s);
479 if (verbose && offset >= state.offset)
480 sfprintf(sfstdout, "=== %I*d === EOF\n", sizeof(offset), offset);
483 if (skip = sfseek(fp, (Sfoff_t)0, SEEK_END) - offset)
484 error(1, "%s: %I*d bytes ignored at %I*d", file, sizeof(skip), skip, sizeof(offset), offset);
530 state.offset = opt_info.num;