| /freebsd/crypto/krb5/src/lib/krb5/error_tables/ |
| H A D | kv5m_err.et | 27 # The Kerberos v5 magic numbers errorcode table 31 error_code KV5M_NONE, "Kerberos V5 magic number table" 32 error_code KV5M_PRINCIPAL, "Bad magic number for krb5_principal structure" 33 error_code KV5M_DATA, "Bad magic number for krb5_data structure" 34 error_code KV5M_KEYBLOCK, "Bad magic number for krb5_keyblock structure" 35 error_code KV5M_CHECKSUM, "Bad magic number for krb5_checksum structure" 36 error_code KV5M_ENCRYPT_BLOCK, "Bad magic number for krb5_encrypt_block structure" 37 error_code KV5M_ENC_DATA, "Bad magic number for krb5_enc_data structure" 38 error_code KV5M_CRYPTOSYSTEM_ENTRY, "Bad magic number for krb5_cryptosystem_entry structure" 39 error_code KV5M_CS_TABLE_ENTRY, "Bad magic number for krb5_cs_table_entry structure" [all …]
|
| /illumos-gate/usr/src/lib/gss_mechs/mech_krb5/et/ |
| H A D | kv5m_err.c | 13 "Kerberos V5 magic number table")); in kv5m_error_table() 16 "Bad magic number for krb5_principal structure")); in kv5m_error_table() 19 "Bad magic number for krb5_data structure")); in kv5m_error_table() 22 "Bad magic number for krb5_keyblock structure")); in kv5m_error_table() 25 "Bad magic number for krb5_checksum structure")); in kv5m_error_table() 28 "Bad magic number for krb5_encrypt_block structure")); in kv5m_error_table() 31 "Bad magic number for krb5_enc_data structure")); in kv5m_error_table() 34 "Bad magic number for krb5_cryptosystem_entry structure")); in kv5m_error_table() 37 "Bad magic number for krb5_cs_table_entry structure")); in kv5m_error_table() 40 "Bad magic number for krb5_checksum_entry structure")); in kv5m_error_table() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/BinaryFormat/ |
| H A D | Magic.cpp | 1 //===- llvm/BinaryFormat/Magic.cpp - File magic identification --*- C++ -*-===// 9 #include "llvm/BinaryFormat/Magic.h" 28 static bool startswith(StringRef Magic, const char (&S)[N]) { in startswith() argument 29 return Magic.starts_with(StringRef(S, N - 1)); in startswith() 32 /// Identify the magic in magic. 33 file_magic llvm::identify_magic(StringRef Magic) { in identify_magic() argument 34 if (Magic.size() < 4) in identify_magic() 36 switch ((unsigned char)Magic[ in identify_magic() [all...] |
| /freebsd/sys/dev/drm2/ |
| H A D | drm_auth.c | 42 * 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) in drm_find_file() argument 59 if (!drm_ht_find_item(&master->magiclist, (unsigned long)magic, &hash)) { in drm_find_file() 68 * Adds a magic number. 72 * \param magic magic number. 75 * associated the magic number hash key in drm_device::magiclist, while holding 79 drm_magic_t magic) in drm_add_magic() argument 83 DRM_DEBUG("%d\n", magic); in drm_add_magic() [all …]
|
| /freebsd/contrib/file/python/ |
| H A D | magic.py | 21 return ctypes.cdll.LoadLibrary(find_library('magic')) 24 _libraries['magic'] = _init() 70 _open = _libraries['magic'].magic_open 74 _close = _libraries['magic'].magic_close 78 _file = _libraries['magic'].magic_file 82 _descriptor = _libraries['magic'].magic_descriptor 86 _buffer = _libraries['magic'].magic_buffer 90 _error = _libraries['magic'].magic_error 94 _setflags = _libraries['magic'].magic_setflags 98 _load = _libraries['magic'].magic_load [all …]
|
| /freebsd/contrib/file/doc/ |
| H A D | file.man | 37 filesystem tests, magic tests, and language tests. 61 When modifying magic files or the program itself, make sure to 83 The magic tests are used to check for files with data in 94 .Dq magic number 101 .Dq magic number 106 magic file 112 .Pa $HOME/.magic.mgc 114 .Pa $HOME/.magic 115 exists, it will be used in preference to the system magic files. 117 If a file does not match any of the entries in the magic file, [all …]
|
| H A D | libmagic.man | 48 .Nd Magic number recognition library 91 operate on the magic database file 94 .Xr magic __FSECTION__ . 98 creates a magic cookie pointer and returns it. 101 if there was an error allocating the magic cookie. 104 argument specifies how the other magic functions should behave: 126 Check the magic database for consistency and print warnings to stderr. 137 as real errors, instead of printing them in the magic buffer. 159 Don't consult magic files. 177 .Xr magic __FSECTION__ [all …]
|
| H A D | Makefile.am | 1 MAGIC = $(pkgdatadir)/magic macro 3 man_MAGIC = magic.5 5 man_MAGIC = magic.4 10 EXTRA_DIST = file.man magic.man libmagic.man 18 -e s@__MAGIC__@${MAGIC}@g $(srcdir)/file.man > $@ 20 magic.${fsect}: Makefile magic.man 25 -e s@__MAGIC__@${MAGIC}@g $(srcdir)/magic.man > $@ 32 -e s@__MAGIC__@${MAGIC}@g $(srcdir)/libmagic.man > $@
|
| H A D | magic.man | 1 .\" $File: magic.man,v 1.110 2024/11/27 15:37:00 christos Exp $ 5 .\" install as magic.4 on USG, magic.5 on V7, Berkeley and Linux systems. 7 .Nm magic 8 .Nd file command's magic pattern file 10 This manual page documents the format of magic files as 19 .Dq "magic patterns" . 21 .Dq "magic patterns" 24 or a directory of source text magic pattern fragment files in 44 The first direct offset of the magic entry (at continuation level 0), 85 characters in the magic match both lower and upper case characters in the [all …]
|
| /freebsd/lib/libmagic/ |
| H A D | Makefile | 9 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/Header \ 36 ${CONTRDIR}/magic/Localstuff \ 37 ${CONTRDIR}/magic/Magdir/[a-z]* [all …]
|
| /freebsd/contrib/libarchive/libarchive/test/ |
| H A D | test_open_failure.c | 27 #define MAGIC 123456789 29 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() 28 #define MAGIC global() macro 30 int magic; global() member [all...] |
| /freebsd/contrib/file/magic/Magdir/ |
| H A D | magic | 3 # $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/ |
| H A D | README.md | 21 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 …]
|
| H A D | ChangeLog | 27 * Add limit for number of magic warnings allowed 99 * Add octal indirect magic (Michal Gorny) 104 * PR/373: Obey MAGIC_CONTINUE with multiple magic files (vismarli) 129 random magic files. 169 * Fix relationship tests with "search" magic, don't short circuit 185 * PR/270: Don't translate unprintable characters in %s magic formats 199 * PR/259: aleksandr.v.novichkov: mime printing through indirect magic 271 * Introduce "offset" magic type that can be used to 273 * document DER better in the magic man page. 305 * PR/140: Avoid abort with hand-crafted magic file (gockelhahn) [all …]
|
| /freebsd/contrib/file/src/ |
| H A D | Makefile.am | 1 MAGIC = $(pkgdatadir)/magic macro 3 nodist_include_HEADERS = magic.h 7 AM_CPPFLAGS = -DMAGIC='"$(MAGIC)"' 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 D | file.c | 38 #include "magic.h" 165 { "name", 0, FILE_NAME_MAX, "use limit for name/use magic", 169 { "magwarn", 0, FILE_MAGWARN_MAX, "maximum number of magic warnings", 205 struct magic_set *magic = NULL; in main() local 207 const char *magicfile = NULL; /* where the magic is */ in main() 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() 334 (void)fprintf(stdout, "magic file from %s\n", in main() [all …]
|
| /freebsd/contrib/elftoolchain/libpe/ |
| H A D | libpe_init.c | 42 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 D | ocs_list.h | 46 #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() 181 * For debugging a linked list link element has a magic number that is initialized, 194 ocs_list_assert(list->magic == OCS_LIST_LIST_MAGIC); in ocs_list_init_link() [all …]
|
| /illumos-gate/usr/src/man/man1has/ |
| H A D | file.1has | 120 By default, \fBfile\fR will try to use the localized magic file 121 \fB/usr/lib/locale/\fIlocale\fR/LC_MESSAGES/magic\fR, if it exists, to identify 122 files that have a magic number. For example, in the Japanese locale, \fBfile\fR 123 will try to use \fB/usr/lib/locale/ja/LC_MESSAGES/magic\fR. If a localized 124 magic file does not exist, \fBfile\fR will utilize \fB/etc/magic\fR. A magic 126 \fBmagic\fR(5) for an explanation of the format of \fB/etc/magic\fR. 149 Checks the magic file for format errors. For reasons of efficiency, this 206 Uses \fImfile\fR as an alternate magic file, instead of \fB/etc/magic\fR. 216 applied to a file in order to classify it (see \fBmagic\fR(5)). If the \fB-m\fR 231 applied to a file in order to classify it (see \fBmagic\fR(5)). No [all …]
|
| /illumos-gate/usr/src/man/man5/ |
| H A D | magic.5 | 6 .TH MAGIC 5 "Feb 6, 2004" 8 magic \- file command's magic number file 12 \fB/etc/magic\fR 19 tests, a test for whether the file begins with a certain \fImagic number\fR. 20 The \fB/etc/magic\fR file, or a file specified as an option-argument to the 21 \fB-m\fR or \fB-M\fR options of \fBfile\fR(1), specifies what magic numbers are 22 to be tested for, what message to print if a particular magic number is found, 207 file and the value from the \fIvalue\fR field of the magic entry will match 262 \fB\fB/etc/magic\fR\fR 279 magic files, which were specified with the \fB-m\fR option, will need [all …]
|
| /illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/ |
| H A D | adb_openclose.c | 44 int magic) in osa_adb_create_db() argument 74 int magic) in osa_adb_destroy_db() argument 84 char *fileto, char *lockto, int magic) in osa_adb_rename_db() argument 91 if ((ret = osa_adb_create_db(fileto, lockto, magic)) && in osa_adb_rename_db() 95 if ((ret = osa_adb_init_db(&fromdb, filefrom, lockfrom, magic))) in osa_adb_rename_db() 97 if ((ret = osa_adb_init_db(&todb, fileto, lockto, magic))) { in osa_adb_rename_db() 98 (void) osa_adb_fini_db(fromdb, magic); in osa_adb_rename_db() 102 (void) osa_adb_fini_db(fromdb, magic); in osa_adb_rename_db() 103 (void) osa_adb_fini_db(todb, magic); in osa_adb_rename_db() 107 (void) osa_adb_fini_db(fromdb, magic); in osa_adb_rename_db() [all …]
|
| /illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
| H A D | mimetype.c | 25 * mime/mailcap to magic support 31 * close magic handle 32 * done this way so that magic is only pulled in 39 if (mp->magic) in drop() 41 magicclose(mp->magic); in drop() 42 mp->magic = 0; in drop() 55 if (!mp->magic) in mimetype() 60 if (!(mp->magic = magicopen(&mp->magicd))) in mimetype() 66 magicload(mp->magic, NiL, 0); in mimetype() 68 return magictype(mp->magic, fp, file, st); in mimetype()
|
| /freebsd/usr.sbin/binmiscctl/ |
| H A D | binmiscctl.8 | 40 .Fl -magic 41 .Ar magic 82 .Fl -magic 83 .Ar magic 99 .Ar magic 104 .Ar magic 115 may be specified for the magic bytes using the 172 --fake-argv0=#a'' --magic ''BC\\xc0\\xde'' --size 4 \e 208 --magic "\ex7f\ex45\ex4c\ex46\ex02\ex01\ex01\ex00\ex00\ex00\e 219 --magic "\ex7f\ex45\ex4c\ex46\ex01\ex01\ex01\ex00\ex00\ex00\e [all …]
|
| /freebsd/crypto/libecc/src/curves/ |
| H A D | ec_params.c | 32 tmp_p.magic = tmp_r.magic = tmp_r_square.magic = tmp_mpinv.magic = WORD(0); in import_params() 33 tmp_p_shift.magic = tmp_p_normalized.magic = tmp_p_reciprocal.magic = WORD(0); in import_params() 34 tmp_a.magic = tmp_b.magic = tmp_curve_order.magic = tmp_gx.magic = WORD(0); in import_params() 35 tmp_gy.magic = tmp_gz.magic = tmp_order.magic = tmp_cofactor.magic = WORD(0); in import_params() 36 tmp_order_bitlen.magic = tmp_p_bitlen.magic = WORD(0); in import_params()
|
| /illumos-gate/usr/src/lib/udapl/udapl_tavor/common/ |
| H A D | dapl_get_consumer_context.c | 74 (header->magic != DAPL_MAGIC_IA && in dapl_get_consumer_context() 75 header->magic != DAPL_MAGIC_EVD && in dapl_get_consumer_context() 76 header->magic != DAPL_MAGIC_EP && in dapl_get_consumer_context() 77 header->magic != DAPL_MAGIC_LMR && in dapl_get_consumer_context() 78 header->magic != DAPL_MAGIC_RMR && in dapl_get_consumer_context() 79 header->magic != DAPL_MAGIC_PZ && in dapl_get_consumer_context() 80 header->magic != DAPL_MAGIC_PSP && in dapl_get_consumer_context() 81 header->magic != DAPL_MAGIC_RSP && in dapl_get_consumer_context() 82 header->magic != DAPL_MAGIC_CR)) { in dapl_get_consumer_context()
|