Lines Matching defs:ms
221 der_offs(struct magic_set *ms, struct magic *m, size_t nbytes)
223 const uint8_t *b = CAST(const void *, ms->search.s);
224 size_t offs = 0, len = ms->search.s_len ? ms->search.s_len : nbytes;
228 DPRINTF(("%s1: %d %zu %u\n", __func__, ms->offset, offs, m->offset));
233 DPRINTF(("%s2: %d %zu %u\n", __func__, ms->offset, offs, tlen));
235 offs += ms->offset + m->offset;
239 printf("cont_level[%zu] = %u\n", i, ms->c.li[i].off);
244 ms->c.li[m->cont_level - 1].off = offs + tlen;
246 ms->c.li[m->cont_level - 1].off));
252 der_cmp(struct magic_set *ms, struct magic *m)
254 const uint8_t *b = CAST(const void *, ms->search.s);
256 size_t offs = 0, len = ms->search.s_len;
269 if ((ms->flags & MAGIC_DEBUG) != 0)
294 if ((ms->flags & MAGIC_DEBUG) != 0)
304 if ((ms->flags & MAGIC_DEBUG) != 0)
308 strlcpy(ms->ms_value.s, buf, sizeof(ms->ms_value.s));