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

1234567891011>>

/freebsd-current/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 *);
H A DMakefile.am1 MAGIC = $(pkgdatadir)/magic
3 nodist_include_HEADERS = magic.h
10 libmagic_la_SOURCES = buffer.c magic.c apprentice.c softmagic.c ascmagic.c \
24 CLEANFILES = magic.h
25 EXTRA_DIST = magic.h.in cdf.mk BNF memtest.c
26 HDR= $(top_srcdir)/src/magic.h.in
27 BUILT_SOURCES = magic.h
29 magic.h: ${HDR}
/freebsd-current/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-current/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(8192))
H A DMakefile.am2 EXTRA_DIST = LICENSE CHANGELOG.md README.md example.py magic.py setup.py \
/freebsd-current/sys/dev/drm2/
H A Ddrm_auth.c42 * Find the file with the given magic number.
45 * \param magic magic number.
48 * the one with matching magic number, while holding the drm_device::struct_mutex
51 static struct drm_file *drm_find_file(struct drm_master *master, drm_magic_t magic) argument
59 if (!drm_ht_find_item(&master->magiclist, (unsigned long)magic, &hash)) {
68 * Adds a magic number.
72 * \param magic magic number.
75 * associated the magic numbe
78 drm_add_magic(struct drm_master *master, struct drm_file *priv, drm_magic_t magic) argument
107 drm_remove_magic(struct drm_master *master, drm_magic_t magic) argument
[all...]
/freebsd-current/lib/libmagic/
H A DMakefile9 LIB= magic
14 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-current/usr.sbin/fifolog/lib/
H A Dminiobj.h33 (to)->magic = (type_magic); \
38 (to)->magic = (0); \
43 ((ptr) != NULL && (ptr)->magic == (type_magic))
47 assert((ptr)->magic == type_magic); \
53 assert((ptr)->magic == type_magic); \
59 assert((ptr)->magic == type_magic); \
/freebsd-current/contrib/libpcap/
H A Dsf-pcap.h34 extern pcap_t *pcap_check_header(const uint8_t *magic, FILE *fp,
H A Dsf-pcapng.h29 extern pcap_t *pcap_ng_check_header(const uint8_t *magic, FILE *fp,
/freebsd-current/contrib/sendmail/src/
H A Dstatusd_shm.h29 unsigned long magic; member in struct:__anon6021
/freebsd-current/sys/contrib/xen/
H A Dxencomm.h36 uint32_t magic; member in struct:xencomm_desc
/freebsd-current/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-current/contrib/ntp/libntp/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:__anon3374
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-current/contrib/file/doc/
H A DMakefile.am1 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-current/sys/dev/ocs_fc/
H A Docs_list.h46 #define ocs_list_magic_decl uint32_t magic;
49 #define ocs_list_set_list_magic list->magic = OCS_LIST_LIST_MAGIC
50 #define ocs_list_set_link_magic list->magic = OCS_LIST_LINK_MAGIC
123 ocs_list_assert(list->magic == OCS_LIST_LIST_MAGIC, 1);
138 return (list->magic == OCS_LIST_LIST_MAGIC);
156 ocs_list_assert((a->magic == OCS_LIST_LIST_MAGIC) || (a->magic == OCS_LIST_LINK_MAGIC));
160 ocs_list_assert((b->magic == OCS_LIST_LIST_MAGIC) || (b->magic == OCS_LIST_LINK_MAGIC));
164 ocs_list_assert((c->magic
[all...]
/freebsd-current/sys/i386/include/
H A Dminidump.h36 char magic[24]; member in struct:minidumphdr
/freebsd-current/usr.bin/mkuzip/
H A Dmkuz_cloop.h47 char magic[CLOOP_MAGIC_LEN]; /* cloop magic */ member in struct:cloop_header
H A Dmkuz_format.h33 const char *magic; member in struct:mkuz_format
/freebsd-current/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-current/contrib/libarchive/libarchive/
H A Darchive_options_private.h38 int magic, const char *fn, option_handler use_option);
42 int magic, const char *fn, option_handler use_option);
/freebsd-current/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...]
/freebsd-current/contrib/llvm-project/llvm/lib/Support/
H A Dregfree.c58 if (g == NULL || g->magic != MAGIC2) /* oops again */
61 g->magic = 0; /* mark it invalid */
/freebsd-current/contrib/file/
H A DMakefile.am6 SUBDIRS = src magic tests doc python

Completed in 166 milliseconds

1234567891011>>