DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: m

⟦5ea014be1⟧

    Length: 5763 (0x1683)
    Names: »magic.5«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./usr/man/cat5/magic.5« 

Default Hex Dump

0x0000…0020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f   ┆   _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x0020…0040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 20 20 46 69 6c 65 20 46 6f 72 6d 61 74   ┆ u_ a_ l             File Format┆
0x0040…0060 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 61 67 69 63 28 35 29 0a 0a 0a 0a   ┆s                   magic(5)    ┆
0x0060…0080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20   ┆N N N NA A A AM M M ME E E E    ┆
0x0080…00a0 20 20 6d 61 67 69 63 20 2d 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20 66 6f 72 20 66 69 6c 65   ┆  magic - configuration for file┆
0x00a0…00c0 20 63 6f 6d 6d 61 6e 64 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54   ┆ command  S S S SY Y Y YN N N NT┆
0x00c0…00e0 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 2f 08 2f 08 2f 08   ┆ T T TA A A AX X X X      / / / ┆
0x00e0…0100 2f 65 08 65 08 65 08 65 74 08 74 08 74 08 74 63 08 63 08 63 08 63 2f 08 2f 08 2f 08 2f 6d 08 6d   ┆/e e e et t t tc c c c/ / / /m m┆
0x0100…0120 08 6d 08 6d 61 08 61 08 61 08 61 67 08 67 08 67 08 67 69 08 69 08 69 08 69 63 08 63 08 63 08 63   ┆ m ma a a ag g g gi i i ic c c c┆
0x0120…0140 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08   ┆  D D D DE E E ES S S SC C C CR ┆
0x0140…0160 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 08 49 08 49 08   ┆R R RI I I IP P P PT T T TI I I ┆
0x0160…0180 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 57 68 65 6e 20 5f 08 66 5f 08 69   ┆IO O O ON N N N      When _ f_ i┆
0x0180…01a0 5f 08 6c 5f 08 65 28 5f 08 31 29 20 69 73 20 65 78 65 63 75 74 65 64 2c 20 69 74 20 72 65 61 64   ┆_ l_ e(_ 1) is executed, it read┆
0x01a0…01c0 73 20 74 68 65 20 66 69 6c 65 20 2f 65 74 63 2f 6d 61 67 69 63 20 28 6f 72 0a 20 20 20 20 20 61   ┆s the file /etc/magic (or      a┆
0x01c0…01e0 6e 20 61 6c 74 65 72 6e 61 74 65 20 66 69 6c 65 20 69 66 20 72 65 71 75 65 73 74 65 64 29 2e 20   ┆n alternate file if requested). ┆
0x01e0…0200 20 54 68 69 73 20 66 69 6c 65 2c 20 61 6c 73 6f 20 63 61 6c 6c 65 64 20 74 68 65 0a 20 20 20 20   ┆ This file, also called the     ┆
0x0200…0220 20 60 60 6d 61 67 69 63 20 6e 75 6d 62 65 72 20 66 69 6c 65 27 27 2c 20 63 6f 6e 74 61 69 6e 73   ┆ ``magic number file'', contains┆
0x0220…0240 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 74 6f 20 68 65 6c 70 20 5f 08 66 5f 08 69 5f 08 6c 5f 08   ┆ information to help _ f_ i_ l_ ┆
0x0240…0260 65 0a 20 20 20 20 20 64 65 63 69 64 65 20 77 68 61 74 20 74 79 70 65 20 6f 66 20 66 69 6c 65 20   ┆e      decide what type of file ┆
0x0260…0280 69 74 20 69 73 20 6c 6f 6f 6b 69 6e 67 20 61 74 2e 0a 0a 20 20 20 20 20 54 68 65 20 6e 61 6d 65   ┆it is looking at.       The name┆
0x0280…02a0 20 60 60 6d 61 67 69 63 27 27 20 63 6f 6d 65 73 20 66 72 6f 6d 20 74 68 65 20 74 65 72 6d 20 60   ┆ ``magic'' comes from the term `┆
0x02a0…02c0 60 6d 61 67 69 63 20 6e 75 6d 62 65 72 27 27 2c 0a 20 20 20 20 20 77 68 69 63 68 20 72 65 66 65   ┆`magic number'',      which refe┆
0x02c0…02e0 72 73 20 74 6f 20 61 20 28 75 73 75 61 6c 6c 79 29 20 75 6e 69 71 75 65 20 63 6f 6d 62 69 6e 61   ┆rs to a (usually) unique combina┆
0x02e0…0300 74 69 6f 6e 20 6f 66 20 62 79 74 65 73 20 74 68 61 74 0a 20 20 20 20 20 69 73 20 75 73 65 64 20   ┆tion of bytes that      is used ┆
0x0300…0320 62 79 20 65 69 74 68 65 72 20 74 68 65 20 6f 70 65 72 61 74 69 6e 67 20 73 79 73 74 65 6d 20 6f   ┆by either the operating system o┆
0x0320…0340 72 20 73 79 73 74 65 6d 20 70 72 6f 67 72 61 6d 73 20 74 6f 0a 20 20 20 20 20 72 65 63 6f 67 6e   ┆r system programs to      recogn┆
0x0340…0360 69 7a 65 20 74 68 65 20 66 69 6c 65 2e 0a 0a 20 20 20 20 20 46 6f 72 20 65 78 61 6d 70 6c 65 2c   ┆ize the file.       For example,┆
0x0360…0380 20 74 68 65 20 6f 63 74 61 6c 20 72 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 20 6f 66 20 74 68 65   ┆ the octal representation of the┆
0x0380…03a0 20 66 69 72 73 74 20 74 77 6f 20 62 79 74 65 73 0a 20 20 20 20 20 6f 66 20 61 6e 20 6f 6c 64 20   ┆ first two bytes      of an old ┆
0x03a0…03c0 73 74 79 6c 65 20 61 72 63 68 69 76 65 20 66 69 6c 65 20 69 73 20 30 31 37 37 35 34 35 2e 20 20   ┆style archive file is 0177545.  ┆
0x03c0…03e0 54 68 75 73 2c 20 61 6e 79 20 70 72 6f 67 72 61 6d 0a 20 20 20 20 20 74 68 61 74 20 6e 65 65 64   ┆Thus, any program      that need┆
0x03e0…0400 65 64 20 74 6f 20 77 6f 72 6b 20 77 69 74 68 20 74 68 65 73 65 20 66 69 6c 65 73 20 28 73 75 63   ┆ed to work with these files (suc┆
0x0400…0420 68 20 61 73 20 61 20 63 6f 6d 70 69 6c 65 72 2c 0a 20 20 20 20 20 6c 69 6e 6b 65 72 2c 20 6f 72   ┆h as a compiler,      linker, or┆
0x0420…0440 20 61 72 63 68 69 76 65 72 29 20 77 6f 75 6c 64 20 63 68 65 63 6b 20 74 6f 20 6d 61 6b 65 20 73   ┆ archiver) would check to make s┆
0x0440…0460 75 72 65 20 74 68 61 74 20 74 68 69 73 20 64 61 74 61 0a 20 20 20 20 20 77 61 73 20 70 72 65 73   ┆ure that this data      was pres┆
0x0460…0480 65 6e 74 2e 20 20 49 66 20 69 74 20 69 73 6e 27 74 2e 20 74 68 65 6e 20 74 68 65 20 66 69 6c 65   ┆ent.  If it isn't. then the file┆
0x0480…04a0 20 69 73 6e 27 74 20 61 6e 20 6f 6c 64 20 73 74 79 6c 65 0a 20 20 20 20 20 61 72 63 68 69 76 65   ┆ isn't an old style      archive┆
0x04a0…04c0 2e 0a 0a 20 20 20 20 20 54 68 65 20 6d 61 67 69 63 20 6e 75 6d 62 65 72 20 66 69 6c 65 20 63 6f   ┆.       The magic number file co┆
0x04c0…04e0 6e 74 61 69 6e 73 20 66 6f 75 72 20 74 79 70 65 73 20 6f 66 20 6c 69 6e 65 73 3a 20 63 6f 6d 2d   ┆ntains four types of lines: com-┆
0x04e0…0500 0a 20 20 20 20 20 6d 65 6e 74 73 2c 20 73 70 65 63 69 66 69 63 61 74 69 6f 6e 73 2c 20 61 6e 64   ┆      ments, specifications, and┆
0x0500…0520 20 63 6f 6e 74 69 6e 75 61 74 69 6f 6e 73 2e 20 20 42 6c 61 6e 6b 20 6c 69 6e 65 73 20 61 72 65   ┆ continuations.  Blank lines are┆
0x0520…0540 0a 20 20 20 20 20 61 6c 73 6f 20 61 6c 6c 6f 77 65 64 2c 20 61 6e 64 20 61 72 65 20 69 67 6e 6f   ┆      also allowed, and are igno┆
0x0540…0560 72 65 64 2e 0a 0a 20 20 20 20 20 41 20 63 6f 6d 6d 65 6e 74 20 69 73 20 61 6e 79 20 6c 69 6e 65   ┆red.       A comment is any line┆
0x0560…0580 20 74 68 61 74 20 68 61 73 20 61 20 60 23 27 20 69 6e 20 74 68 65 20 66 69 72 73 74 20 63 6f 6c   ┆ that has a `#' in the first col┆
0x0580…05a0 75 6d 6e 2e 0a 20 20 20 20 20 41 6c 6c 20 63 6f 6d 6d 65 6e 74 20 6c 69 6e 65 73 20 61 72 65 20   ┆umn.      All comment lines are ┆
0x05a0…05c0 69 67 6e 6f 72 65 64 2e 0a 0a 20 20 20 20 20 41 20 73 70 65 63 69 66 69 63 61 74 69 6f 6e 20 6c   ┆ignored.       A specification l┆
0x05c0…05e0 69 6e 65 20 69 73 20 75 73 65 64 20 74 6f 20 64 65 73 63 72 69 62 65 20 61 20 6d 61 67 69 63 20   ┆ine is used to describe a magic ┆
0x05e0…0600 6e 75 6d 62 65 72 2e 20 20 49 74 0a 20 20 20 20 20 63 6f 6e 73 69 73 74 73 20 6f 66 20 66 6f 75   ┆number.  It      consists of fou┆
0x0600…0620 72 20 66 69 65 6c 64 73 2c 20 73 65 70 61 72 61 74 65 64 20 62 79 20 74 61 62 73 3a 0a 0a 20 20   ┆r fields, separated by tabs:    ┆
0x0620…0640 20 20 20 5f 08 6f 5f 08 66 5f 08 66 5f 08 73 5f 08 65 5f 08 74 0a 20 20 20 20 20 20 20 20 20 20   ┆   _ o_ f_ f_ s_ e_ t           ┆
0x0640…0660 54 68 69 73 20 69 73 20 74 68 65 20 62 79 74 65 20 6f 66 66 73 65 74 20 69 6e 20 74 68 65 20 66   ┆This is the byte offset in the f┆
0x0660…0680 69 6c 65 20 77 68 65 72 65 20 74 68 65 20 64 61 74 61 20 74 6f 0a 20 20 20 20 20 20 20 20 20 20   ┆ile where the data to           ┆
0x0680…06a0 62 65 20 6c 6f 6f 6b 65 64 20 61 74 20 69 73 20 66 6f 75 6e 64 2e 20 20 54 68 65 20 6e 75 6d 62   ┆be looked at is found.  The numb┆
0x06a0…06c0 65 72 20 6d 61 79 20 62 65 20 69 6e 20 64 65 63 69 6d 61 6c 2c 0a 20 20 20 20 20 20 20 20 20 20   ┆er may be in decimal,           ┆
0x06c0…06e0 6f 63 74 61 6c 20 28 62 65 67 69 6e 73 20 77 69 74 68 20 61 20 30 29 2c 20 6f 72 20 68 65 78 61   ┆octal (begins with a 0), or hexa┆
0x06e0…0700 64 65 63 69 6d 61 6c 20 28 62 65 67 69 6e 73 20 77 69 74 68 0a 20 20 20 20 20 20 20 20 20 20 30   ┆decimal (begins with           0┆
0x0700…0720 78 29 2e 0a 0a 20 20 20 20 20 5f 08 74 5f 08 79 5f 08 70 5f 08 65 20 54 68 69 73 20 69 73 20 74   ┆x).       _ t_ y_ p_ e This is t┆
0x0720…0740 68 65 20 74 79 70 65 20 6f 66 20 74 68 65 20 64 61 74 61 20 74 6f 20 62 65 20 6c 6f 6f 6b 65 64   ┆he type of the data to be looked┆
0x0740…0760 20 61 74 2e 20 20 54 68 65 20 74 79 70 65 0a 20 20 20 20 20 20 20 20 20 20 63 61 6e 20 62 65 20   ┆ at.  The type           can be ┆
0x0760…0780 62 08 62 08 62 08 62 79 08 79 08 79 08 79 74 08 74 08 74 08 74 65 08 65 08 65 08 65 20 28 73 69   ┆b b b by y y yt t t te e e e (si┆
0x0780…07a0 6e 67 6c 65 20 62 79 74 65 20 6f 66 20 64 61 74 61 29 2c 20 73 08 73 08 73 08 73 68 08 68 08 68   ┆ngle byte of data), s s s sh h h┆
0x07a0…07c0 08 68 6f 08 6f 08 6f 08 6f 72 08 72 08 72 08 72 74 08 74 08 74 08 74 20 28 73 68 6f 72 74 0a 20   ┆ ho o o or r r rt t t t (short  ┆
0x07c0…07e0 20 20 20 20 20 20 20 20 20 69 6e 74 65 67 65 72 2c 20 75 73 75 61 6c 6c 79 20 32 20 62 79 74 65   ┆         integer, usually 2 byte┆
0x07e0…0800 73 2c 20 6f 66 20 64 61 74 61 29 2c 20 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e   ┆s, of data), l l l lo o o on n n┆
0x0800…0820 08 6e 67 08 67 08 67 08 67 20 28 6c 6f 6e 67 20 69 6e 74 65 67 65 72 2c 0a 20 20 20 20 20 20 20   ┆ ng g g g (long integer,        ┆
0x0820…0840 20 20 20 75 73 75 61 6c 6c 79 20 34 20 62 79 74 65 73 2c 20 6f 66 20 64 61 74 61 29 2c 20 6f 72   ┆   usually 4 bytes, of data), or┆
0x0840…0860 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 69 08 69 08 69 08 69 6e 08 6e   ┆ s s s st t t tr r r ri i i in n┆
0x0860…0880 08 6e 08 6e 67 08 67 08 67 08 67 20 28 6e 75 6c 6c 2d 74 65 72 6d 69 6e 61 74 65 64 0a 20 20 20   ┆ n ng g g g (null-terminated    ┆
0x0880…08a0 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 6f 66 20 62 79 74 65 73 29 2e 0a 0a 20 20 20 20 20 5f   ┆       string of bytes).       _┆
0x08a0…08c0 08 6d 5f 08 61 5f 08 74 5f 08 63 5f 08 68 0a 20 20 20 20 20 20 20 20 20 20 54 68 69 73 20 66 69   ┆ m_ a_ t_ c_ h           This fi┆
0x08c0…08e0 65 6c 64 20 63 6f 6e 74 61 69 6e 73 20 74 68 65 20 76 61 6c 75 65 20 74 6f 20 62 65 20 6d 61 74   ┆eld contains the value to be mat┆
0x08e0…0900 63 68 65 64 20 61 67 61 69 6e 73 74 20 74 68 65 0a 20 20 20 20 20 20 20 20 20 20 76 61 6c 75 65   ┆ched against the           value┆
0x0900…0920 20 69 6e 20 74 68 65 20 66 69 6c 65 2e 20 20 49 66 20 74 68 65 20 5f 08 74 5f 08 79 5f 08 70 5f   ┆ in the file.  If the _ t_ y_ p_┆
0x0920…0940 08 65 20 66 69 65 6c 64 20 69 73 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08   ┆ e field is s s s st t t tr r r ┆
0x0940…0960 72 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 67 08 67 08 67 08 67 2c 20 74 68 61 74 0a 20 20 20   ┆ri i i in n n ng g g g, that    ┆
0x0960…0980 20 20 20 20 20 20 20 76 61 6c 75 65 20 69 73 20 63 6f 6d 70 61 72 65 64 20 6c 69 74 65 72 61 6c   ┆       value is compared literal┆
0x0980…09a0 6c 79 2e 20 20 4f 74 68 65 72 77 69 73 65 2c 20 74 68 65 20 76 61 6c 75 65 20 63 6f 6e 2d 0a 20   ┆ly.  Otherwise, the value con-  ┆
0x09a0…09c0 20 20 20 20 20 20 20 20 20 73 69 73 74 73 20 6f 66 20 61 6e 20 6f 70 74 69 6f 6e 61 6c 20 72 65   ┆         sists of an optional re┆
0x09c0…09e0 6c 61 74 69 6f 6e 61 6c 20 6f 70 65 72 61 74 6f 72 20 28 21 08 21 08 21 08 21 20 6f 72 20 5e 08   ┆lational operator (! ! ! ! or ^ ┆
0x09e0…0a00 5e 08 5e 08 5e 20 66 6f 72 0a 20 20 20 20 20 20 20 20 20 20 6e 6f 74 20 65 71 75 61 6c 2c 20 3c   ┆^ ^ ^ for           not equal, <┆
0x0a00…0a20 08 3c 08 3c 08 3c 20 66 6f 72 20 6c 65 73 73 20 74 68 61 6e 2c 20 3e 08 3e 08 3e 08 3e 20 66 6f   ┆ < < < for less than, > > > > fo┆
0x0a20…0a40 72 20 67 72 65 61 74 65 72 20 74 68 61 6e 2c 20 6f 72 20 3d 08 3d 08 3d 08 3d 0a 20 20 20 20 20   ┆r greater than, or = = = =      ┆
0x0a40…0a60 20 20 20 20 20 66 6f 72 20 65 71 75 61 6c 2c 20 77 68 69 63 68 20 69 73 20 74 68 65 20 64 65 66   ┆     for equal, which is the def┆
0x0a60…0a80 61 75 6c 74 29 20 61 6e 64 20 61 20 6e 75 6d 65 72 69 63 20 76 61 6c 75 65 0a 20 20 20 20 20 20   ┆ault) and a numeric value       ┆
0x0a80…0aa0 20 20 20 20 28 69 6e 20 64 65 63 69 6d 61 6c 2c 20 6f 63 74 61 6c 2c 20 6f 72 20 68 65 78 61 64   ┆    (in decimal, octal, or hexad┆
0x0aa0…0ac0 65 63 69 6d 61 6c 2c 20 61 73 20 77 69 74 68 20 74 68 65 20 5f 08 6f 5f 08 66 5f 08 66 5f 08 73   ┆ecimal, as with the _ o_ f_ f_ s┆
0x0ac0…0ae0 5f 08 65 5f 08 74 0a 20 20 20 20 20 20 20 20 20 20 66 69 65 6c 64 29 2e 20 20 49 6e 20 61 64 64   ┆_ e_ t           field).  In add┆
0x0ae0…0b00 69 74 69 6f 6e 2c 20 69 66 20 74 68 65 20 66 69 65 6c 64 20 69 73 20 61 20 73 69 6e 67 6c 65 20   ┆ition, if the field is a single ┆
0x0b00…0b20 60 78 27 2c 20 61 6e 79 0a 20 20 20 20 20 20 20 20 20 20 76 61 6c 75 65 20 69 73 20 61 6c 6c 6f   ┆`x', any           value is allo┆
0x0b20…0b40 77 65 64 20 28 75 73 65 66 75 6c 20 66 6f 72 20 70 72 69 6e 74 69 6e 67 20 76 65 72 73 69 6f 6e   ┆wed (useful for printing version┆
0x0b40…0b60 20 6e 75 6d 62 65 72 73 0a 20 20 20 20 20 20 20 20 20 20 6f 72 20 73 74 72 69 6e 67 73 29 2e 0a   ┆ numbers           or strings). ┆
0x0b60…0b80 0a 20 20 20 20 20 5f 08 6f 5f 08 75 5f 08 74 5f 08 70 5f 08 75 5f 08 74 0a 0a 0a 0a 0a 0a 0a 20   ┆      _ o_ u_ t_ p_ u_ t        ┆
0x0b80…0ba0 20 20 20 20 20 20 20 20 20 54 68 69 73 20 66 69 65 6c 64 2c 20 77 68 69 63 68 20 63 6f 6e 73 69   ┆         This field, which consi┆
0x0ba0…0bc0 73 74 73 20 6f 66 20 74 68 65 20 72 65 73 74 20 6f 66 20 74 68 65 20 6c 69 6e 65 2c 20 69 73 0a   ┆sts of the rest of the line, is ┆
0x0bc0…0be0 20 20 20 20 20 20 20 20 20 20 74 68 65 20 73 74 72 69 6e 67 20 74 6f 20 62 65 20 70 72 69 6e 74   ┆          the string to be print┆
0x0be0…0c00 65 64 20 69 66 20 74 68 65 20 76 61 6c 75 65 20 69 6e 20 74 68 65 20 66 69 6c 65 0a 20 20 20 20   ┆ed if the value in the file     ┆
0x0c00…0c20 20 20 20 20 20 20 6d 61 74 63 68 65 73 20 74 68 65 20 5f 08 6d 5f 08 61 5f 08 74 5f 08 63 5f 08   ┆      matches the _ m_ a_ t_ c_ ┆
0x0c20…0c40 68 20 66 69 65 6c 64 20 76 61 6c 75 65 2e 20 20 54 68 69 73 20 6d 61 79 20 63 6f 6e 74 61 69 6e   ┆h field value.  This may contain┆
0x0c40…0c60 20 61 0a 20 20 20 20 20 20 20 20 20 20 5f 08 70 5f 08 72 5f 08 69 5f 08 6e 5f 08 74 5f 08 66 28   ┆ a           _ p_ r_ i_ n_ t_ f(┆
0x0c60…0c80 5f 08 33 5f 08 73 29 2d 73 74 79 6c 65 20 60 25 27 20 73 70 65 63 69 66 69 65 72 20 74 6f 20 70   ┆_ 3_ s)-style `%' specifier to p┆
0x0c80…0ca0 72 69 6e 74 20 74 68 65 20 76 61 6c 75 65 2e 0a 20 20 20 20 20 20 20 20 20 20 54 68 69 73 20 73   ┆rint the value.           This s┆
0x0ca0…0cc0 68 6f 75 6c 64 20 62 65 20 61 20 73 74 72 69 6e 67 20 6f 72 20 69 6e 74 65 67 65 72 20 73 70 65   ┆hould be a string or integer spe┆
0x0cc0…0ce0 63 69 66 69 65 72 20 28 64 65 70 65 6e 64 69 6e 67 0a 20 20 20 20 20 20 20 20 20 20 6f 6e 20 74   ┆cifier (depending           on t┆
0x0ce0…0d00 68 65 20 5f 08 74 5f 08 79 5f 08 70 5f 08 65 20 66 69 65 6c 64 29 2e 0a 0a 20 20 20 20 20 41 20   ┆he _ t_ y_ p_ e field).       A ┆
0x0d00…0d20 73 70 65 63 69 66 69 63 61 74 69 6f 6e 20 6c 69 6e 65 20 69 73 20 75 73 65 64 20 62 79 20 5f 08   ┆specification line is used by _ ┆
0x0d20…0d40 66 5f 08 69 5f 08 6c 5f 08 65 20 61 73 20 6d 65 61 6e 69 6e 67 20 60 60 72 65 61 64 20 74 68 65   ┆f_ i_ l_ e as meaning ``read the┆
0x0d40…0d60 0a 20 20 20 20 20 72 65 71 75 69 72 65 64 20 6e 75 6d 62 65 72 20 6f 66 20 62 79 74 65 73 20 66   ┆      required number of bytes f┆
0x0d60…0d80 72 6f 6d 20 74 68 65 20 66 69 6c 65 2c 20 61 6e 64 20 69 66 20 74 68 65 20 76 61 6c 75 65 0a 20   ┆rom the file, and if the value  ┆
0x0d80…0da0 20 20 20 20 6d 61 74 63 68 65 73 20 74 68 65 20 72 65 71 75 69 72 65 64 20 76 61 6c 75 65 2c 20   ┆    matches the required value, ┆
0x0da0…0dc0 70 72 69 6e 74 20 74 68 65 20 73 70 65 63 69 66 69 65 64 20 6f 75 74 70 75 74 27 27 2e 0a 0a 20   ┆print the specified output''.   ┆
0x0dc0…0de0 20 20 20 20 43 6f 6e 74 69 6e 75 61 74 69 6f 6e 20 6c 69 6e 65 73 20 61 72 65 20 75 73 65 64 20   ┆    Continuation lines are used ┆
0x0de0…0e00 66 6f 72 20 70 72 69 6e 74 69 6e 67 20 6f 74 68 65 72 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 0a 20   ┆for printing other information  ┆
0x0e00…0e20 20 20 20 20 61 62 6f 75 74 20 61 20 66 69 6c 65 20 6f 66 20 61 20 63 65 72 74 61 69 6e 20 74 79   ┆    about a file of a certain ty┆
0x0e20…0e40 70 65 2e 20 20 41 20 63 6f 6e 74 69 6e 75 61 74 69 6f 6e 20 6c 69 6e 65 20 68 61 73 20 74 68 65   ┆pe.  A continuation line has the┆
0x0e40…0e60 0a 20 20 20 20 20 73 61 6d 65 20 66 6f 72 6d 61 74 20 61 73 20 61 20 73 70 65 63 69 66 69 63 61   ┆      same format as a specifica┆
0x0e60…0e80 74 69 6f 6e 20 6c 69 6e 65 2c 20 65 78 63 65 70 74 20 74 68 61 74 20 74 68 65 20 6f 66 66 73 65   ┆tion line, except that the offse┆
0x0e80…0ea0 74 0a 20 20 20 20 20 69 73 20 70 72 65 63 65 64 65 64 20 62 79 20 74 68 65 20 63 68 61 72 61 63   ┆t      is preceded by the charac┆
0x0ea0…0ec0 74 65 72 20 60 3e 08 3e 08 3e 08 3e 27 2e 20 20 54 68 69 73 20 74 79 70 65 20 6f 66 20 6c 69 6e   ┆ter `> > > >'.  This type of lin┆
0x0ec0…0ee0 65 20 69 73 20 75 73 65 64 0a 20 20 20 20 20 6a 75 73 74 20 6c 69 6b 65 20 61 20 73 70 65 63 69   ┆e is used      just like a speci┆
0x0ee0…0f00 66 69 63 61 74 69 6f 6e 20 6c 69 6e 65 2c 20 62 75 74 20 6f 6e 6c 79 20 69 66 20 74 68 65 20 73   ┆fication line, but only if the s┆
0x0f00…0f20 70 65 63 69 66 69 63 61 2d 0a 20 20 20 20 20 74 69 6f 6e 20 70 72 65 63 65 64 69 6e 67 20 69 74   ┆pecifica-      tion preceding it┆
0x0f20…0f40 20 6d 61 74 63 68 65 73 2e 20 20 54 68 65 20 6f 75 74 70 75 74 20 69 73 20 70 72 69 6e 74 65 64   ┆ matches.  The output is printed┆
0x0f40…0f60 20 70 72 65 63 65 64 65 64 0a 20 20 20 20 20 62 79 20 61 20 73 70 61 63 65 20 28 74 6f 20 73 65   ┆ preceded      by a space (to se┆
0x0f60…0f80 70 61 72 61 74 65 20 69 74 20 66 72 6f 6d 20 70 72 65 76 69 6f 75 73 6c 79 20 70 72 69 6e 74 65   ┆parate it from previously printe┆
0x0f80…0fa0 64 20 6f 75 74 70 75 74 29 2e 0a 20 20 20 20 20 4d 75 6c 74 69 70 6c 65 20 63 6f 6e 74 69 6e 75   ┆d output).      Multiple continu┆
0x0fa0…0fc0 61 74 69 6f 6e 20 6c 69 6e 65 73 20 61 72 65 20 61 6c 6c 6f 77 65 64 20 66 6f 72 20 61 20 73 70   ┆ation lines are allowed for a sp┆
0x0fc0…0fe0 65 63 69 66 69 63 61 74 69 6f 6e 0a 20 20 20 20 20 6c 69 6e 65 2c 20 69 6e 20 77 68 69 63 68 20   ┆ecification      line, in which ┆
0x0fe0…1000 63 61 73 65 20 61 6c 6c 20 63 6f 6e 74 69 6e 75 61 74 69 6f 6e 20 6c 69 6e 65 73 20 61 72 65 20   ┆case all continuation lines are ┆
0x1000…1020 63 68 65 63 6b 65 64 2c 20 69 6e 0a 20 20 20 20 20 74 68 65 20 6f 72 64 65 72 20 74 68 65 79 20   ┆checked, in      the order they ┆
0x1020…1040 61 70 70 65 61 72 20 69 6e 20 74 68 65 20 6d 61 67 69 63 20 66 69 6c 65 2e 0a 0a 20 20 20 20 20   ┆appear in the magic file.       ┆
0x1040…1060 4f 6e 63 65 20 61 20 6d 61 74 63 68 69 6e 67 20 73 70 65 63 69 66 69 63 61 74 69 6f 6e 20 69 73   ┆Once a matching specification is┆
0x1060…1080 20 66 6f 75 6e 64 20 61 6e 64 20 70 72 6f 63 65 73 73 65 64 0a 20 20 20 20 20 28 69 6e 63 6c 75   ┆ found and processed      (inclu┆
0x1080…10a0 64 69 6e 67 20 63 68 65 63 6b 69 6e 67 20 63 6f 6e 74 69 6e 75 61 74 69 6f 6e 73 29 2c 20 6e 6f   ┆ding checking continuations), no┆
0x10a0…10c0 20 6f 74 68 65 72 20 73 65 61 72 63 68 65 73 20 61 72 65 0a 20 20 20 20 20 6d 61 64 65 20 66 6f   ┆ other searches are      made fo┆
0x10c0…10e0 72 20 74 68 61 74 20 66 69 6c 65 2e 0a 0a 20 20 20 20 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67   ┆r that file.       The following┆
0x10e0…1100 20 6d 61 67 69 63 20 66 69 6c 65 20 6c 69 6e 65 73 20 73 68 6f 77 20 68 6f 77 20 61 20 73 70 65   ┆ magic file lines show how a spe┆
0x1100…1120 63 69 66 69 63 61 74 69 6f 6e 20 61 6e 64 0a 20 20 20 20 20 72 65 6c 61 74 65 64 20 63 6f 6e 74   ┆cification and      related cont┆
0x1120…1140 69 6e 75 61 74 69 6f 6e 73 20 6d 69 67 68 74 20 77 6f 72 6b 3a 0a 0a 0a 20 20 20 20 20 20 20 20   ┆inuations might work:           ┆
0x1140…1160 20 20 30 20 20 20 20 20 20 20 73 68 6f 72 74 20 20 20 20 30 31 37 33 37 33 37 20 20 20 20 20 4a   ┆  0       short    0173737     J┆
0x1160…1180 6f 65 27 73 20 66 69 6c 65 20 74 79 70 65 0a 20 20 20 20 20 20 20 20 20 20 3e 38 20 20 20 20 20   ┆oe's file type           >8     ┆
0x1180…11a0 20 6c 6f 6e 67 20 20 20 20 20 3e 30 20 20 20 20 20 20 20 20 20 20 2d 20 76 65 72 73 69 6f 6e 20   ┆ long     >0          - version ┆
0x11a0…11c0 25 64 0a 20 20 20 20 20 20 20 20 20 20 3e 38 20 20 20 20 20 20 6c 6f 6e 67 20 20 20 20 20 30 20   ┆%d           >8      long     0 ┆
0x11c0…11e0 20 20 20 20 20 20 20 20 20 20 2d 20 70 72 65 72 65 6c 65 61 73 65 0a 20 20 20 20 20 20 20 20 20   ┆          - prerelease          ┆
0x11e0…1200 20 3e 31 32 20 20 20 20 20 6c 6f 6e 67 20 20 20 20 20 3e 30 20 20 20 20 20 20 20 20 20 20 28 63   ┆ >12     long     >0          (c┆
0x1200…1220 68 65 63 6b 73 75 6d 20 30 25 6c 6f 29 0a 0a 20 20 20 20 20 49 66 20 61 20 66 69 6c 65 20 62 65   ┆hecksum 0%lo)       If a file be┆
0x1220…1240 67 69 6e 73 20 77 69 74 68 20 61 20 73 68 6f 72 74 20 69 6e 74 65 67 65 72 20 77 68 6f 73 65 20   ┆gins with a short integer whose ┆
0x1240…1260 6f 63 74 61 6c 20 76 61 6c 75 65 20 69 73 0a 20 20 20 20 20 30 31 37 33 37 33 37 2c 20 5f 08 66   ┆octal value is      0173737, _ f┆
0x1260…1280 5f 08 69 5f 08 6c 5f 08 65 20 77 69 6c 6c 20 70 72 69 6e 74 20 74 68 65 20 74 65 78 74 20 60 60   ┆_ i_ l_ e will print the text ``┆
0x1280…12a0 4a 6f 65 27 73 20 66 69 6c 65 20 74 79 70 65 27 27 2e 0a 20 20 20 20 20 54 68 65 6e 2c 20 74 68   ┆Joe's file type''.      Then, th┆
0x12a0…12c0 65 20 6c 6f 6e 67 20 69 6e 74 65 67 65 72 20 66 6f 75 6e 64 20 61 74 20 6c 6f 63 61 74 69 6f 6e   ┆e long integer found at location┆
0x12c0…12e0 20 38 20 69 6e 20 74 68 65 20 66 69 6c 65 20 69 73 0a 20 20 20 20 20 63 68 65 63 6b 65 64 20 74   ┆ 8 in the file is      checked t┆
0x12e0…1300 6f 20 73 65 65 20 69 66 20 69 74 20 69 73 20 61 20 70 6f 73 69 74 69 76 65 20 69 6e 74 65 67 65   ┆o see if it is a positive intege┆
0x1300…1320 72 2c 20 69 6e 20 77 68 69 63 68 20 63 61 73 65 0a 20 20 20 20 20 74 68 65 20 74 65 78 74 20 60   ┆r, in which case      the text `┆
0x1320…1340 60 2d 20 76 65 72 73 69 6f 6e 27 27 20 66 6f 6c 6c 6f 77 65 64 20 62 79 20 74 68 65 20 6e 75 6d   ┆`- version'' followed by the num┆
0x1340…1360 62 65 72 20 66 6f 75 6e 64 20 69 73 0a 20 20 20 20 20 70 72 69 6e 74 65 64 2e 20 20 4e 65 78 74   ┆ber found is      printed.  Next┆
0x1360…1380 2c 20 74 68 65 20 6c 6f 6e 67 20 69 6e 74 65 67 65 72 20 66 6f 75 6e 64 20 61 74 20 6c 6f 63 61   ┆, the long integer found at loca┆
0x1380…13a0 74 69 6f 6e 20 38 20 69 6e 20 74 68 65 0a 20 20 20 20 20 66 69 6c 65 20 69 73 20 63 68 65 63 6b   ┆tion 8 in the      file is check┆
0x13a0…13c0 65 64 20 74 6f 20 73 65 65 20 69 66 20 69 74 20 69 73 20 61 20 30 2c 20 69 6e 20 77 68 69 63 68   ┆ed to see if it is a 0, in which┆
0x13c0…13e0 20 63 61 73 65 20 74 68 65 20 74 65 78 74 0a 20 20 20 20 20 60 60 2d 70 72 65 72 65 6c 65 61 73   ┆ case the text      ``-prereleas┆
0x13e0…1400 65 27 27 20 69 73 20 70 72 69 6e 74 65 64 2e 20 20 46 69 6e 61 6c 6c 79 2c 20 74 68 65 20 6c 6f   ┆e'' is printed.  Finally, the lo┆
0x1400…1420 6e 67 20 69 6e 74 65 67 65 72 20 66 6f 75 6e 64 0a 20 20 20 20 20 61 74 20 6c 6f 63 61 74 69 6f   ┆ng integer found      at locatio┆
0x1420…1440 6e 20 31 32 20 69 6e 20 74 68 65 20 66 69 6c 65 20 69 73 20 63 68 65 63 6b 65 64 20 74 6f 20 73   ┆n 12 in the file is checked to s┆
0x1440…1460 65 65 20 69 66 20 69 74 20 69 73 20 61 0a 20 20 20 20 20 70 6f 73 69 74 69 76 65 20 69 6e 74 65   ┆ee if it is a      positive inte┆
0x1460…1480 67 65 72 2c 20 69 6e 20 77 68 69 63 68 20 63 61 73 65 20 74 68 65 20 74 65 78 74 20 60 60 28 63   ┆ger, in which case the text ``(c┆
0x1480…14a0 68 65 63 6b 73 75 6d 27 27 20 69 73 0a 20 20 20 20 20 70 72 69 6e 74 65 64 20 66 6f 6c 6c 6f 77   ┆hecksum'' is      printed follow┆
0x14a0…14c0 65 64 20 62 79 20 74 68 65 20 6e 75 6d 62 65 72 20 66 6f 75 6e 64 2c 20 77 68 69 63 68 20 69 73   ┆ed by the number found, which is┆
0x14c0…14e0 20 70 72 69 6e 74 65 64 20 69 6e 0a 20 20 20 20 20 6f 63 74 61 6c 2c 20 66 6f 6c 6c 6f 77 65 64   ┆ printed in      octal, followed┆
0x14e0…1500 20 62 79 20 60 60 29 27 27 2e 0a 0a 20 20 20 20 20 53 6f 2c 20 61 20 66 69 6c 65 20 6e 61 6d 65   ┆ by ``)''.       So, a file name┆
0x1500…1520 64 20 5f 08 6a 5f 08 6f 5f 08 65 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 20 77 69 74 68 20 61 20 73   ┆d _ j_ o_ e_ f_ i_ l_ e with a s┆
0x1520…1540 68 6f 72 74 20 30 31 37 33 37 33 37 20 61 74 20 6c 6f 63 61 74 69 6f 6e 20 30 2c 0a 20 20 20 20   ┆hort 0173737 at location 0,     ┆
0x1540…1560 20 61 20 6c 6f 6e 67 20 37 20 61 74 20 6c 6f 63 61 74 69 6f 6e 20 38 2c 20 61 6e 64 20 61 20 6c   ┆ a long 7 at location 8, and a l┆
0x1560…1580 6f 6e 67 20 30 34 30 38 38 20 61 74 20 6c 6f 63 61 74 69 6f 6e 20 31 32 0a 20 20 20 20 20 77 6f   ┆ong 04088 at location 12      wo┆
0x1580…15a0 75 6c 64 20 63 61 75 73 65 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 20 74 6f 20 70 72 69 6e 74 20   ┆uld cause _ f_ i_ l_ e to print ┆
0x15a0…15c0 74 68 65 20 74 65 78 74 3a 0a 0a 0a 20 20 20 20 20 20 20 20 20 20 6a 6f 65 66 69 6c 65 3a 20 20   ┆the text:             joefile:  ┆
0x15c0…15e0 20 4a 6f 65 27 73 20 66 69 6c 65 20 74 79 70 65 20 2d 20 76 65 72 73 69 6f 6e 20 37 20 28 63 68   ┆ Joe's file type - version 7 (ch┆
0x15e0…1600 65 63 6b 73 75 6d 20 30 34 30 38 38 29 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45 08 45 45 08 45   ┆ecksum 04088)  S S S SE E E EE E┆
0x1600…1620 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08   ┆ E E A A A AL L L LS S S SO O O ┆
0x1620…1640 4f 0a 20 20 20 20 20 55 73 65 72 20 43 6f 6d 6d 61 6e 64 73 20 28 31 29 3a 20 66 69 6c 65 0a 0a   ┆O      User Commands (1): file  ┆
0x1640…1660 4d 61 72 63 68 20 31 39 38 39 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆March 1989                      ┆
0x1660…1680 20 20 20 20 20 20 20 20 54 58 20 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63   ┆        TX Programmer's Referenc┆
0x1680…1683 65 0a 0a                                                                                          ┆e  ┆