Lines Matching refs:magic
32 static const char id[] = "\n@(#)$Id: magic library (AT&T Research) 2008-09-10 $\0\n";
34 static const char lib[] = "libast:magic";
50 #define MINITEM 4 /* magic buffer rounding */
76 typedef struct Entry /* magic file entry */
154 Entry_t* magic; /* parsed magic table */ \
155 Entry_t* magiclast; /* last entry in magic */ \
185 #include <magic.h>
472 * check for magic table match in buf
495 for (ep = mp->magic; ep; ep = ep->next)
1517 * return the basic magic string for file,st in buf,size
2169 mp->magic = first;
2188 * load a magic file into mp
2250 (*mp->disc->errorf)(mp, mp->disc, 3, "%s: cannot open magic file", s);
2269 (*mp->disc->errorf)(mp, mp->disc, 2, "cannot find magic file");
2281 * open a magic session
2354 * return the magic string for file with optional stat info st
2399 * list the magic table in mp on sp
2405 register Entry_t* ep = mp->magic;