

Dv ledate A four-byte value in little-endian byte order, interpreted as a UNIX date. Dv ledouble A 64-bit double precision IEEE floating point number in little-endian byte order. Dv lefloat A 32-bit single precision IEEE floating point number in little-endian byte order.

Dv lequad An eight-byte value in little-endian byte order. Dv lelong A four-byte value in little-endian byte order. Dv leshort A two-byte value in little-endian byte order. Dv leid3 A 32-bit ID3 length in little-endian byte order. Dv bestring16 A two-byte unicode (UCS16) string in big-endian byte order. Dv beqldate An eight-byte value in big-endian byte order, interpreted as a UNIX-style date, but interpreted as local time rather than UTC. Dv beldate A four-byte value in big-endian byte order, interpreted as a UNIX-style date, but interpreted as local time rather than UTC. Dv beqdate An eight-byte value in big-endian byte order, interpreted as a Unix date. Dv bedate A four-byte value in big-endian byte order, interpreted as a Unix date. Dv bedouble A 64-bit double precision IEEE floating point number in big-endian byte order. Dv befloat A 32-bit single precision IEEE floating point number in big-endian byte order. Dv bequad An eight-byte value in big-endian byte order. Dv belong A four-byte value in big-endian byte order. Dv beshort A two-byte value in big-endian byte order. Dv beid3 A 32-bit ID3 length in big-endian byte order. Dv qldate An eight-byte value interpreted as a UNIX-style date, but interpreted as local time rather than UTC. Dv ldate A four-byte value interpreted as a UNIX-style date, but interpreted as local time rather than UTC. Dv qdate A eight-byte value interpreted as a UNIX date. Dv date A four-byte value interpreted as a UNIX date. Dv pstring A Pascal-style string where the first byte is interpreted as the an unsigned length. Dq c flag, specifies case insensitive matching: lowercase characters in the magic match both lower and upper case characters in the target, whereas upper case characters in the magic only match uppercase characters in the target. Dq b flag treats every blank in the target as an optional blank. Dv n consecutive blanks, the target needs at least. Dq B flag compacts whitespace in the target, which must contain at least one whitespace character.

The string type specification can be optionally followed by /*. Dv double A 64-bit double precision IEEE floating point number in this machine's native byte order. Dv float A 32-bit single precision IEEE floating point number in this machine's native byte order. Dv quad An eight-byte value in this machine's native byte order. Dv long A four-byte value in this machine's native byte order. Dv short A two-byte value in this machine's native byte order. Dv type The type of the data to be tested. tag -width Dv offset A number specifying the offset, in bytes, into the file of the data which is to be tested. The line consists of the following fields: If the test succeeds, a message is printed. A test compares the data starting at a particular offset in the file with a byte value, a string or a numeric value. Pa /usr/share/misc/magic specifies what patterns are to be tested for, what message or MIME type to print if a particular pattern is found, and additional information to extract from the file.Įach line of the file specifies a test to be performed. The file(1) command identifies the type of a file using, among other tests, a test for whether the file contains certain.
#Windev indirection manual#
This manual page documents the format of the magic file as used by the file(1) command, version 5.04.
