Home
last modified time | relevance | path

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

/PHP-8.1/ext/fileinfo/libmagic/
H A Dapprentice.c121 uint32_t nmagic[MAGIC_SETS]; member
411 ml->nmagic = map->nmagic[idx]; in add_mlist()
995 while (magindex + 1 < ml->nmagic && in apprentice_list()
1005 while (magindex + 1 < ml->nmagic && in apprentice_list()
3144 map->nmagic[i] = ptr[i + 2]; in apprentice_map()
3147 nentries += map->nmagic[i]; in apprentice_map()
3207 memcpy(hdr.h + 2, map->nmagic, nm); in apprentice_compile()
3215 len = m * map->nmagic[i]; in apprentice_compile()
3287 for (i = 0; i < nmagic; i++)
3454 uint32_t nma = ml->nmagic;
[all …]
H A Dsoftmagic.c138 if ((rv = match(ms, ml->magic, ml->nmagic, b, 0, mode, in file_softmagic()
202 match(struct magic_set *ms, struct magic *magic, uint32_t nmagic, in match() argument
228 for (magindex = 0; magindex < nmagic; magindex++) { in match()
240 while (magindex < nmagic - 1 && in match()
325 while (magindex + 1 < nmagic && in match()
1881 rv = match(ms, ml.magic, ml.nmagic, b, offset + o, in mget()
H A Dfile.h391 uint32_t nmagic; /* number of entries in array */ member
/PHP-8.1/ext/fileinfo/
H A Dlibmagic.patch798 map->magic[i + 1] = map->magic[i] + map->nmagic[i];
799 nentries += map->nmagic[i];
810 byteswap(map->magic[i], map->nmagic[i]);
832 static const size_t nm = sizeof(*map->nmagic) * MAGIC_SETS;
860 memcpy(hdr.h + 2, map->nmagic, nm);
870 len = m * map->nmagic[i];

Completed in 34 milliseconds