Lines Matching full:magic

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
86 target, whereas lower case characters in the magic only match upper case
90 characters in the magic match both lower and upper case characters in the
91 target, whereas upper case characters in the magic only match upper case
106 If the magic has
112 Treat every blank in the magic as an optional blank.
241 Starting at the given offset, consult the magic database again.
244 magic is by default absolute in the file, but one can specify
250 magic instance that can be called from another
252 magic entry, like a subroutine call.
253 Named instance direct magic offsets are relative to the offset of the
256 Named magic entries always match.
258 Recursively call the named magic starting from the current offset.
261 then the endianness of the magic is switched; if the magic mentioned
373 It can be used to determine the size of the file or the magic buffer.
374 For example the magic entries:
445 Each top-level magic pattern (see below for an explanation of levels)
534 in the magic file.
579 non-blank or comment line after the magic line that identifies the
590 the current magic description using the following format:
607 to the currently computed default magic strength.
843 .\" Subject: /etc/magic's format isn't well documented