Lines Matching defs:magic
605 * magic number is in bytes 2-3.
919 allocate_execsw(char *name, char *magic, size_t magic_size)
932 * Set the magic number last so that we
938 magicp[j] = magic[j];
949 * Find the exec switch table entry with the corresponding magic string.
952 findexecsw(char *magic)
958 if (magic && eswp->exec_maglen != 0 &&
959 bcmp(magic, eswp->exec_magic, eswp->exec_maglen) == 0)
967 * magic string at a specified offset and length for each kind of executable
969 * autoload a module for this magic string.
990 * Find the execsw[] index for the given magic string. If no execsw[] entry
991 * is found, try to autoload a module for this magic string.
994 findexec_by_magic(char *magic)
1000 if (magic && eswp->exec_maglen != 0 &&
1001 bcmp(magic, eswp->exec_magic, eswp->exec_maglen) == 0) {