Lines Matching defs:offset
39 < pid >< word-offset in file (same #) >< pid >
43 < pid >< offset in file of this word >< pid >
78 * < pid >< offset in file of this word >< pid >
80 * the words are put together where offset zero is the start.
81 * thus, offset 16 is the start of the second full word
82 * Thus, offset 8 is in middle of word 1
84 int datapidgen(int pid, char *buffer, int bsize, int offset)
93 int woff; /* file offset for the word */
94 int boff; /* buffer offset or index */
100 if (cnt = (offset % NBPW)) { /* partial word */
102 woff = offset - cnt;
129 woff = offset + boff;
181 int datapidchk(int pid, char *buffer, int bsize, int offset, char **errmsg)
190 int woff; /* file offset for the word */
191 int boff; /* buffer offset or index */
201 if (cnt = (offset % NBPW)) { /* partial word */
202 woff = offset - cnt;
216 "Data mismatch at offset %d, exp:%#o, act:%#o",
217 offset + boff, *chr, buffer[boff]);
218 return offset + boff;
229 woff = offset + boff;
240 "Data mismatch at offset %d, exp:%#o, act:%#o",
249 sprintf(Errmsg, "Data mismatch at offset %d, exp:%#o, act:%#o",
274 "Data mismatch at offset %d, exp:%#o, act:%#o",
275 offset + boff, *chr, buffer[boff]);
276 return offset + boff;