/freebsd-11-stable/contrib/file/src/ |
H A D | der.h | 27 extern int der_offs(struct magic_set *, struct magic *, size_t); 28 extern int der_cmp(struct magic_set *, struct magic *);
|
/freebsd-11-stable/contrib/file/python/ |
H A D | example.py | 3 import magic 5 ms = magic.open(magic.NONE)
|
H A D | Makefile.am | 2 EXTRA_DIST = LICENSE CHANGELOG.md README.md example.py magic.py setup.py \
|
H A D | tests.py | 5 import magic namespace 10 filename = 'magic.py' 21 result = magic.detect_from_filename(self.filename) 26 result = magic.detect_from_fobj(fobj) 31 result = magic.detect_from_content(fobj.read(4096))
|
/freebsd-11-stable/sys/dev/drm/ |
H A D | drm_auth.c | 41 static int drm_hash_magic(drm_magic_t magic) argument 43 return magic & (DRM_HASH_SIZE-1); 47 * Returns the file private associated with the given magic number. 49 static struct drm_file *drm_find_file(struct drm_device *dev, drm_magic_t magic) argument 52 int hash = drm_hash_magic(magic); 57 if (pt->magic == magic) { 66 * Inserts the given magic number into the hash table of used magic number 70 drm_magic_t magic) 69 drm_add_magic(struct drm_device *dev, struct drm_file *priv, drm_magic_t magic) argument 102 drm_remove_magic(struct drm_device *dev, drm_magic_t magic) argument [all...] |
/freebsd-11-stable/usr.sbin/fifolog/lib/ |
H A D | miniobj.h | 35 (to)->magic = (type_magic); \ 40 (to)->magic = (0); \ 45 ((ptr) != NULL && (ptr)->magic == (type_magic)) 49 assert((ptr)->magic == type_magic); \ 55 assert((ptr)->magic == type_magic); \ 61 assert((ptr)->magic == type_magic); \
|
/freebsd-11-stable/contrib/sendmail/src/ |
H A D | statusd_shm.h | 29 unsigned long magic; member in struct:__anon5265
|
/freebsd-11-stable/sys/dev/cx/ |
H A D | cronyxfw.h | 17 #define CRONYX_DAT_MAGIC 2001107011L /* firmware file magic */ 25 unsigned long magic; /* firmware magic */ member in struct:__anon9546
|
/freebsd-11-stable/sys/xen/interface/ |
H A D | xencomm.h | 36 uint32_t magic; member in struct:xencomm_desc
|
/freebsd-11-stable/usr.bin/mkuzip/ |
H A D | mkuz_format.h | 33 const char *magic; member in struct:mkuz_format
|
H A D | mkuz_cloop.h | 47 char magic[CLOOP_MAGIC_LEN]; /* cloop magic */ member in struct:cloop_header
|
/freebsd-11-stable/contrib/libpcap/ |
H A D | sf-pcapng.h | 29 extern pcap_t *pcap_ng_check_header(const uint8_t *magic, FILE *fp,
|
H A D | sf-pcap.h | 34 extern pcap_t *pcap_check_header(const uint8_t *magic, FILE *fp,
|
/freebsd-11-stable/lib/libmagic/ |
H A D | Makefile | 10 LIB= magic 15 MAN= libmagic.3 magic.5 20 is_tar.c magic.c print.c readcdf.c readelf.c seccomp.c softmagic.c 21 INCS= magic.h 25 CFLAGS+= -DMAGIC='"${MAGICPATH}/magic"' -DHAVE_CONFIG_H 30 CLEANFILES+= magic magic.mgc 32 FILES= magic magic.mgc 35 MAGFILES= ${CONTRDIR}/magic/Heade [all...] |
/freebsd-11-stable/contrib/elftoolchain/libpe/ |
H A D | libpe_init.c | 42 char magic[sizeof(PE_DosHdr)]; local 73 if (read(pe->pe_fd, magic, 2) != 2) { 78 if (magic[0] == 'M' && magic[1] == 'Z') { 80 if (read(pe->pe_fd, &magic[2], sizeof(PE_DosHdr) - 2) != 85 return (libpe_parse_msdos_header(pe, magic)); 87 } else if (magic[0] == 'P' && magic[1] == 'E') { 88 if (read(pe->pe_fd, magic, 2) != 2) { 92 if (magic[ [all...] |
/freebsd-11-stable/contrib/ntp/lib/isc/include/isc/ |
H A D | magic.h | 18 /* $Id: magic.h,v 1.18 2007/06/19 23:47:18 tbox Exp $ */ 23 /*! \file isc/magic.h */ 26 unsigned int magic; member in struct:__anon4832 31 * To use this macro the magic number MUST be the first thing in the 33 * The intent of this is to allow magic numbers to be checked even though 37 (((const isc__magic_t *)(a))->magic == (b)))
|
/freebsd-11-stable/contrib/file/doc/ |
H A D | Makefile.am | 1 MAGIC = $(pkgdatadir)/magic 3 man_MAGIC = magic.5 5 man_MAGIC = magic.4 10 EXTRA_DIST = file.man magic.man libmagic.man 20 magic.${fsect}: Makefile magic.man 25 -e s@__MAGIC__@${MAGIC}@g $(srcdir)/magic.man > $@
|
/freebsd-11-stable/sys/dev/drm2/ |
H A D | drm_auth.c | 44 * Find the file with the given magic number. 47 * \param magic magic number. 50 * the one with matching magic number, while holding the drm_device::struct_mutex 53 static struct drm_file *drm_find_file(struct drm_master *master, drm_magic_t magic) argument 61 if (!drm_ht_find_item(&master->magiclist, (unsigned long)magic, &hash)) { 70 * Adds a magic number. 74 * \param magic magic number. 77 * associated the magic numbe 80 drm_add_magic(struct drm_master *master, struct drm_file *priv, drm_magic_t magic) argument 109 drm_remove_magic(struct drm_master *master, drm_magic_t magic) argument [all...] |
/freebsd-11-stable/contrib/subversion/subversion/libsvn_subr/ |
H A D | magic.c | 2 * magic.c: wrappers around libmagic 45 #include <magic.h> 50 magic_t magic; 57 /* Close the magic database. */ 62 magic_close(mc->magic); 98 mc->magic = magic_open(MAGIC_MIME | MAGIC_ERROR); 100 mc->magic = magic_open(MAGIC_MIME_TYPE | MAGIC_ERROR); 102 if (mc->magic) 104 /* This loads the default magic database. 107 if (magic_load(mc->magic, NUL 49 magic_t magic; member in struct:svn_magic__cookie_t [all...] |
/freebsd-11-stable/contrib/groff/src/include/ |
H A D | index.h | 25 int magic; member in struct:index_header
|
/freebsd-11-stable/sys/amd64/include/ |
H A D | minidump.h | 36 char magic[24]; member in struct:minidumphdr
|
/freebsd-11-stable/include/ |
H A D | elf-hints.h | 36 u_int32_t magic; /* Magic number */ member in struct:elfhints_hdr
|
/freebsd-11-stable/sys/mips/include/ |
H A D | minidump.h | 36 char magic[24]; member in struct:minidumphdr
|
/freebsd-11-stable/sys/i386/include/ |
H A D | minidump.h | 36 char magic[24]; member in struct:minidumphdr
|
/freebsd-11-stable/sys/dev/ocs_fc/ |
H A D | ocs_list.h | 49 #define ocs_list_magic_decl uint32_t magic; 52 #define ocs_list_set_list_magic list->magic = OCS_LIST_LIST_MAGIC 53 #define ocs_list_set_link_magic list->magic = OCS_LIST_LINK_MAGIC 127 ocs_list_assert(list->magic == OCS_LIST_LIST_MAGIC, 1); 142 return (list->magic == OCS_LIST_LIST_MAGIC); 160 ocs_list_assert((a->magic == OCS_LIST_LIST_MAGIC) || (a->magic == OCS_LIST_LINK_MAGIC)); 164 ocs_list_assert((b->magic == OCS_LIST_LIST_MAGIC) || (b->magic == OCS_LIST_LINK_MAGIC)); 168 ocs_list_assert((c->magic [all...] |