Lines Matching refs:off
282 * return pointer to data at offset off and size siz
286 getdata(register Magic_t* mp, register long off, register int siz)
290 if (off < 0)
292 if (off + siz <= mp->fbsz)
293 return mp->fbuf + off;
294 if (off < mp->xoff || off + siz > mp->xoff + mp->xbsz)
296 if (off + siz > mp->fbmx)
298 n = (off / (SF_BUFSIZE / 2)) * (SF_BUFSIZE / 2);
309 if (off + siz > mp->xoff + mp->xbsz)
312 return mp->xbuf + off - mp->xoff;
476 ckmagic(register Magic_t* mp, const char* file, char* buf, char* end, struct stat* st, unsigned long off)
566 num = ep->offset + off;
571 num = strexpr(ep->expr, NiL, indirect, mp) + off;
811 ep->value.loop->offset = off;
812 off = ep->value.loop->start;
816 off = ep->value.loop->offset;
820 off += ep->value.loop->size;
2398 off_t off;
2408 off = sfseek(mp->fp, (off_t)0, SEEK_CUR);
2411 sfseek(mp->fp, off, SEEK_SET);