Searched refs:magic (Results 1 - 25 of 477) sorted by relevance

1234567891011>>

/freebsd-head/contrib/file/src/
H A Dder.h27 extern int der_offs(struct magic_set *, struct magic *, size_t);
28 extern int der_cmp(struct magic_set *, struct magic *);
/freebsd-head/contrib/jemalloc/src/
H A Ddiv.c26 * n / 2 ^ k < 1 by setting k = 32. This gets us a value of magic that works.
34 * This would make the value of magic too high to fit into a uint32_t
35 * (we would want magic = 2^32 exactly). This would mess with code gen
41 uint32_t magic = (uint32_t)(two_to_k / d); local
44 * We want magic = ceil(2^k / d), but C gives us floor. We have to
49 magic++;
51 div_info->magic = magic;
/freebsd-head/contrib/file/python/
H A Dexample.py3 import magic namespace
5 ms = magic.open(magic.NONE)
H A Dtests.py5 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-head/usr.sbin/fifolog/lib/
H A Dminiobj.h35 (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-head/sys/dev/cx/
H A Dcronyxfw.h17 #define CRONYX_DAT_MAGIC 2001107011L /* firmware file magic */
25 unsigned long magic; /* firmware magic */ member in struct:__anon7339
/freebsd-head/sys/xen/interface/
H A Dxencomm.h36 uint32_t magic; member in struct:xencomm_desc
/freebsd-head/contrib/sendmail/src/
H A Dstatusd_shm.h29 unsigned long magic; member in struct:__anon24
/freebsd-head/contrib/libpcap/
H A Dsf-pcap.h34 extern pcap_t *pcap_check_header(bpf_u_int32 magic, FILE *fp,
H A Dsf-pcapng.h29 extern pcap_t *pcap_ng_check_header(bpf_u_int32 magic, FILE *fp,
/freebsd-head/lib/libmagic/
H A DMakefile9 LIB= magic
14 MAN= libmagic.3 magic.5
18 is_tar.c magic.c print.c readcdf.c readelf.c seccomp.c softmagic.c
19 INCS= magic.h
23 CFLAGS+= -DMAGIC='"${MAGICPATH}/magic"' -DHAVE_CONFIG_H
28 CLEANFILES+= magic magic.mgc
30 FILES= magic magic.mgc
33 MAGFILES= ${CONTRDIR}/magic/Heade
[all...]
/freebsd-head/contrib/elftoolchain/libpe/
H A Dlibpe_init.c42 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-head/contrib/ntp/lib/isc/include/isc/
H A Dmagic.h18 /* $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:__anon242
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-head/sys/dev/drm2/
H A Ddrm_auth.c44 * 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-head/contrib/subversion/subversion/libsvn_subr/
H A Dmagic.c2 * 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-head/include/
H A Delf-hints.h38 u_int32_t magic; /* Magic number */ member in struct:elfhints_hdr
/freebsd-head/sys/mips/include/
H A Dminidump.h38 char magic[24]; member in struct:minidumphdr
/freebsd-head/sys/amd64/include/
H A Dminidump.h38 char magic[24]; member in struct:minidumphdr
/freebsd-head/sys/i386/include/
H A Dminidump.h38 char magic[24]; member in struct:minidumphdr
/freebsd-head/sys/dev/ocs_fc/
H A Docs_list.h49 #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...]
/freebsd-head/usr.bin/mkuzip/
H A Dmkuz_cloop.h49 char magic[CLOOP_MAGIC_LEN]; /* cloop magic */ member in struct:cloop_header
H A Dmkuz_format.h35 const char *magic; member in struct:mkuz_format
/freebsd-head/contrib/libarchive/libarchive/
H A Darchive_options_private.h37 int magic, const char *fn, option_handler use_option);
41 int magic, const char *fn, option_handler use_option);
/freebsd-head/contrib/jemalloc/include/jemalloc/internal/
H A Ddiv.h17 uint32_t magic; member in struct:div_info_s
34 size_t i = ((uint64_t)n * (uint64_t)div_info->magic) >> 32;
/freebsd-head/contrib/mandoc/
H A Ddbm_map.c63 const int32_t *magic; local
81 magic = dbm_getint(0);
82 if (be32toh(*magic) != MANDOCDB_MAGIC) {
85 "Bad initial magic %x (expected %x)",
86 fname, be32toh(*magic), MANDOCDB_MAGIC);
94 magic = dbm_getint(1);
95 if (be32toh(*magic) != MANDOCDB_VERSION) {
97 fname, be32toh(*magic), MANDOCDB_VERSION);
108 if ((magic = dbm_get(*dbm_getint(3))) == NULL) {
112 if (be32toh(*magic) !
[all...]

Completed in 315 milliseconds

1234567891011>>