Home
last modified time | relevance | path

Searched refs:magic (Results 1 – 25 of 920) sorted by relevance

12345678910>>...37

/freebsd/sys/dev/drm2/
H A Ddrm_auth.c51 static struct drm_file *drm_find_file(struct drm_master *master, drm_magic_t magic) in drm_find_file() argument
59 if (!drm_ht_find_item(&master->magiclist, (unsigned long)magic, &hash)) { in drm_find_file()
79 drm_magic_t magic) in drm_add_magic() argument
83 DRM_DEBUG("%d\n", magic); in drm_add_magic()
89 entry->hash_item.key = (unsigned long)magic; in drm_add_magic()
107 int drm_remove_magic(struct drm_master *master, drm_magic_t magic) in drm_remove_magic() argument
113 DRM_DEBUG("%d\n", magic); in drm_remove_magic()
116 if (drm_ht_find_item(&master->magiclist, (unsigned long)magic, &hash)) { in drm_remove_magic()
151 if (file_priv->magic) { in drm_getmagic()
152 auth->magic = file_priv->magic; in drm_getmagic()
[all …]
/freebsd/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
30 CLEANFILES+= magic magic.mgc
32 FILES= magic magic.mgc
35 MAGFILES= ${CONTRDIR}/magic/Header \
36 ${CONTRDIR}/magic/Localstuff \
37 ${CONTRDIR}/magic/Magdir/[a-z]*
52 magic: ${MAGFILES} target
[all …]
/freebsd/contrib/elftoolchain/libpe/
H A Dlibpe_init.c42 char magic[sizeof(PE_DosHdr)]; in libpe_open_object() local
73 if (read(pe->pe_fd, magic, 2) != 2) { in libpe_open_object()
78 if (magic[0] == 'M' && magic[1] == 'Z') { in libpe_open_object()
80 if (read(pe->pe_fd, &magic[2], sizeof(PE_DosHdr) - 2) != in libpe_open_object()
85 return (libpe_parse_msdos_header(pe, magic)); in libpe_open_object()
87 } else if (magic[0] == 'P' && magic[1] == 'E') { in libpe_open_object()
88 if (read(pe->pe_fd, magic, 2) != 2) { in libpe_open_object()
92 if (magic[0] == '\0' && magic[1] == '\0') { in libpe_open_object()
94 if (read(pe->pe_fd, magic, sizeof(PE_CoffHdr)) != in libpe_open_object()
99 return (libpe_parse_coff_header(pe, magic)); in libpe_open_object()
[all …]
/freebsd/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); in ocs_list_empty()
138 return (list->magic == OCS_LIST_LIST_MAGIC); in ocs_list_valid()
156 ocs_list_assert((a->magic == OCS_LIST_LIST_MAGIC) || (a->magic == OCS_LIST_LINK_MAGIC)); in _ocs_list_insert_link()
160 ocs_list_assert((b->magic == OCS_LIST_LIST_MAGIC) || (b->magic == OCS_LIST_LINK_MAGIC)); in _ocs_list_insert_link()
164 ocs_list_assert((c->magic == OCS_LIST_LIST_MAGIC) || (c->magic == OCS_LIST_LINK_MAGIC)); in _ocs_list_insert_link()
194 ocs_list_assert(list->magic == OCS_LIST_LIST_MAGIC); in ocs_list_init_link()
197 if (link->magic == 0) { in ocs_list_init_link()
[all …]
/freebsd/contrib/mandoc/
H A Ddbm_map.c63 const int32_t *magic; in dbm_map() local
81 magic = dbm_getint(0); in dbm_map()
82 if (be32toh(*magic) != MANDOCDB_MAGIC) { in dbm_map()
86 fname, be32toh(*magic), MANDOCDB_MAGIC); in dbm_map()
94 magic = dbm_getint(1); in dbm_map()
95 if (be32toh(*magic) != MANDOCDB_VERSION) { in dbm_map()
97 fname, be32toh(*magic), MANDOCDB_VERSION); in dbm_map()
108 if ((magic = dbm_get(*dbm_getint(3))) == NULL) { in dbm_map()
112 if (be32toh(*magic) != MANDOCDB_MAGIC) { in dbm_map()
114 fname, be32toh(*magic), MANDOCDB_MAGIC); in dbm_map()
/freebsd/contrib/file/magic/Magdir/
H A Dmagic3 # $File: magic,v 1.12 2024/06/10 23:09:52 christos Exp $
4 # magic: file(1) magic for magic files
8 0 string/t #\ Magic\ magic text file for file(1) cmd
23 >>>0 use magic-fragment
29 >>>0 use magic-fragment
34 >>>>0 use magic-fragment
39 >>>>>0 use magic-fragment
47 >>>0 use magic-fragment
52 >>>>0 use magic-fragment
56 >>>>>0 use magic-fragment
[all …]
/freebsd/contrib/file/src/
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}
H A Dfile.c205 struct magic_set *magic = NULL; in main() local
282 if (magic == NULL) in main()
283 if ((magic = load(magicfile, flags)) == NULL) in main()
285 applyparam(magic); in main()
286 e |= unwrap(magic, optarg); in main()
387 magic = magic_open(flags|MAGIC_CHECK); in main()
388 if (magic == NULL) { in main()
396 c = magic_check(magic, magicfile); in main()
399 c = magic_compile(magic, magicfile); in main()
402 c = magic_list(magic, magicfile); in main()
[all …]
H A Dapprentice.c91 struct magic *mp;
106 struct magic *magic[MAGIC_SETS]; member
115 file_private int getvalue(struct magic_set *ms, struct magic *, const char **, int);
117 file_private const char *getstr(struct magic_set *, struct magic *, const char *,
123 file_private ssize_t apprentice_magic_strength_1(const struct magic *);
131 file_private void byteswap(struct magic *, uint32_t);
132 file_private void bs1(struct magic *);
149 file_private struct magic_map *apprentice_buf(struct magic_set *, struct magic *,
157 file_private int check_format(struct magic_set *, struct magic *);
169 file_private size_t magicsize = sizeof(struct magic);
[all …]
/freebsd/crypto/openssl/crypto/aes/asm/
H A Dvpaes-x86.pl67 my ($round, $base, $magic, $key, $const, $inp, $out)=
191 &mov ($magic,16);
218 &movdqa ("xmm1",&QWP(-0x40,$base,$magic));# .Lk_mc_forward[]
221 &movdqa ("xmm4",&QWP(0,$base,$magic)); # .Lk_mc_backward[]
229 &add ($magic,16); # next mc
232 &and ($magic,0x30); # ... mod 4
266 &movdqa ("xmm1",&QWP(0x40,$base,$magic));# .Lk_sr[]
283 &mov ($magic,$round);
286 &shl ($magic,4);
290 &xor ($magic,0x30);
[all …]
/freebsd/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/contrib/unbound/util/
H A Dub_event_pluggable.c290 my_ev->super.magic = UB_EVENT_MAGIC; in my_event_new()
310 my_ev->super.magic = UB_EVENT_MAGIC; in my_signal_new()
332 my_ev->super.magic = UB_EVENT_MAGIC; in my_winsock_register_wsaevent()
385 my_base->super.magic = UB_EVENT_MAGIC; in ub_default_event_base()
402 my_base->super.magic = UB_EVENT_MAGIC; in ub_libevent_event_base()
478 if (base && base->magic == UB_EVENT_MAGIC) { in ub_event_base_free()
488 if (base->magic == UB_EVENT_MAGIC) { in ub_event_base_dispatch()
499 if (base->magic == UB_EVENT_MAGIC) { in ub_event_base_loopexit()
511 if (base->magic == UB_EVENT_MAGIC) { in ub_event_new()
523 if (base->magic == UB_EVENT_MAGIC) { in ub_signal_new()
[all …]
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_open_failure.c29 int magic;
46 assertEqualInt(MAGIC, private->magic); in my_read()
58 assertEqualInt(MAGIC, private->magic); in my_write()
68 assertEqualInt(MAGIC, private->magic); in my_open()
78 assertEqualInt(MAGIC, private->magic); in my_close()
90 private.magic = MAGIC; in DEFINE_TEST()
105 private.magic = MAGIC; in DEFINE_TEST()
120 private.magic = MAGIC; in DEFINE_TEST()
135 private.magic = MAGIC; in DEFINE_TEST()
154 private.magic in DEFINE_TEST()
30 int magic; global() member
[all...]
/freebsd/contrib/file/python/
H A DREADME.md1 # `file-magic`: Python Bindings
8 You can install `file-magic` either with:
14 pip install file-magic
19 import magic
21 detected = magic.detect_from_filename('magic.py')
H A Dtests.py5 import magic
21 result = magic.detect_from_filename(self.filename)
26 result = magic.detect_from_fobj(fobj)
31 result = magic.detect_from_content(fobj.read(8192))
/freebsd/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/contrib/file/
H A DREADME.md21 It knows the 'magic number' of several thousands of file types.
25 The major changes for 5.x are CDF file parsing, indirect magic,
53 4.[23] Berkeley one. That is, the file /etc/magic contains much of
55 My version knows a little more magic (including tar archives) than
56 System V; the /etc/magic parsing seems to be compatible with the
57 (poorly documented) System V /etc/magic format (with one exception;
60 In addition, the /etc/magic file is built from a subdirectory
62 magic numbers assigned to all sorts of data files that
63 are in reasonable circulation. Send your magic numbers,
64 in magic(5) format please, to the maintainer, Christos Zoulas.
[all …]
/freebsd/contrib/libfido2/fuzz/
H A Dudev.c21 int magic; member
25 int magic; member
30 int magic; member
34 int magic; member
43 #define ASSERT_TYPE(x, m) assert((x) != NULL && (x)->magic == (m))
87 child->parent->magic = UDEV_DEVICE_MAGIC; in __wrap_udev_device_get_parent_with_subsystem_devtype()
123 udev_device->magic = UDEV_DEVICE_MAGIC; in __wrap_udev_device_new_from_syspath()
160 udev->magic = UDEV_MAGIC; in __wrap_udev_new()
173 udev_enum->magic = UDEV_ENUM_MAGIC; in __wrap_udev_enumerate_new()
201 udev_enum->list_entry->magic = UDEV_LIST_ENTRY_MAGIC; in __wrap_udev_enumerate_get_list_entry()
/freebsd/tools/regression/netinet6/inet6_rth/
H A Dinet6_rth-segments.c227 char magic[] = "MAGIC"; in test_cmsg_nexthdr() local
244 strlcpy((char *)&cmh, (const char *)&magic, sizeof(magic)); in test_cmsg_nexthdr()
250 checkstr((const char *)&magic, (const char *)cmhnextp, sizeof(magic), in test_cmsg_nexthdr()
285 char magic[] = "MAGIC"; in test_cmsg_firsthdr() local
317 strlcpy((char *)&cmh, (const char *)&magic, sizeof(magic)); in test_cmsg_firsthdr()
320 checkstr((const char *)&magic, (const char *)cmhp, sizeof(magic), in test_cmsg_firsthdr()
/freebsd/lib/libcrypt/
H A Dcrypt-md5.c53 static const char *magic = "$1$"; in crypt_md5() local
56 if (!strncmp(salt, magic, strlen(magic))) in crypt_md5()
57 salt += strlen(magic); in crypt_md5()
72 MD5Update(&ctx, (const u_char *)magic, strlen(magic)); in crypt_md5()
98 buffer = stpcpy(buffer, magic); in crypt_md5()
/freebsd/contrib/jemalloc/src/
H A Ddiv.c41 uint32_t magic = (uint32_t)(two_to_k / d); in div_init() local
49 magic++; in div_init()
51 div_info->magic = magic; in div_init()
/freebsd/usr.bin/lastcomm/
H A Dreadrec.c167 uint8_t magic, version; in readrec_vx() local
169 if (fread_record(&magic, sizeof(magic), f) == EOF || in readrec_vx()
172 ungetc(magic, f) == EOF) in readrec_vx()
199 int magic, rv; in readrec_forward() local
201 if ((magic = getc(f)) == EOF) in readrec_forward()
203 if (ungetc(magic, f) == EOF) in readrec_forward()
205 if (magic != 0) in readrec_forward()
/freebsd/sys/geom/vinum/
H A Dgeom_vinum_drive.c138 m_hdr->magic = GV_GET64(be); in gv_read_header()
145 be = (m_hdr->magic == magic_machdep); in gv_read_header()
146 if (m_hdr->magic == GV_MAGIC) { in gv_read_header()
158 } else if (m_hdr->magic != GV_OLD_MAGIC && in gv_read_header()
159 m_hdr->magic != le64toh(GV_OLD_MAGIC)) { in gv_read_header()
165 m_hdr->magic = GV_MAGIC; in gv_read_header()
179 m_hdr->magic = GV_MAGIC; in gv_read_header()
193 m_hdr->magic = GV_MAGIC; in gv_read_header()
207 m_hdr->magic = GV_MAGIC; in gv_read_header()
242 GV_SET64BE(m_hdr->magic); in gv_write_header()
[all …]
/freebsd/sys/dev/sfxge/common/
H A Dsiena_flash.h63 efx_dword_t magic; member
68 efx_dword_t magic; member
108 efx_dword_t magic; /* = SIENA_MC_BOOT_MAGIC */ member
148 efx_dword_t magic; /* = SIENA_MC_STATIC_CONFIG_MAGIC */ member
183 efx_dword_t magic; /* = SIENA_MC_DYNAMIC_CONFIG_MAGIC */ member
199 efx_dword_t magic; /* = SIENA_MC_EXPROM_COMBO_MAGIC or SIENA_MC_EXPROM_COMBO_V2_MAGIC */ member
/freebsd/usr.sbin/binmiscctl/
H A Dbinmiscctl.c284 char *magic = NULL, *mask = NULL; in add_cmd() local
304 free(magic); in add_cmd()
305 magic = strdup(optarg); in add_cmd()
341 if (NULL != magic) in add_cmd()
342 free(magic); in add_cmd()
348 if (NULL != magic) { in add_cmd()
350 if (magic) in add_cmd()
351 free(magic); in add_cmd()
356 sz = strlit2bin_cpy(xbe->xbe_magic, magic, IBE_MAGIC_MAX); in add_cmd()
357 free(magic); in add_cmd()

12345678910>>...37