Home
last modified time | relevance | path

Searched refs:nmagic (Results 1 – 4 of 4) sorted by relevance

/PHP-7.2/ext/fileinfo/libmagic/
H A Dapprentice.c119 uint32_t nmagic[MAGIC_SETS]; member
399 ml->nmagic = map->nmagic[idx]; in add_mlist()
2989 map->nmagic[i] = ptr[i + 2]; in apprentice_map()
2992 nentries += map->nmagic[i]; in apprentice_map()
3059 map->nmagic[i] = ptr[i + 2]; in check_buffer()
3062 nentries += map->nmagic[i]; in check_buffer()
3108 memcpy(hdr.h + 2, map->nmagic, nm); in apprentice_compile()
3116 len = m * map->nmagic[i]; in apprentice_compile()
3188 for (i = 0; i < nmagic; i++)
3345 uint32_t nma = ml->nmagic;
[all …]
H A Dsoftmagic.c112 if ((rv = match(ms, ml->magic, ml->nmagic, buf, nbytes, 0, mode, in file_softmagic()
169 match(struct magic_set *ms, struct magic *magic, uint32_t nmagic, in match() argument
186 for (magindex = 0; magindex < nmagic; magindex++) { in match()
198 while (magindex < nmagic - 1 && in match()
275 while (magindex + 1 < nmagic && in match()
1582 rv = match(ms, ml.magic, ml.nmagic, s, nbytes, offset + o, in mget()
H A Dfile.h361 uint32_t nmagic; /* number of entries in array */ member
/PHP-7.2/ext/fileinfo/
H A Dlibmagic.patch788 + map->nmagic[i] = swap4(ptr[i + 2]);
790 + map->nmagic[i] = ptr[i + 2];
792 + map->magic[i + 1] = map->magic[i] + map->nmagic[i];
793 + nentries += map->nmagic[i];
803 + byteswap(map->magic[i], map->nmagic[i]);
838 static const size_t nm = sizeof(*map->nmagic) * MAGIC_SETS;
866 memcpy(hdr.h + 2, map->nmagic, nm);
875 len = m * map->nmagic[i];

Completed in 21 milliseconds