1 # |
1 # |
2 # CDDL HEADER START |
2 # Copyright (c) 1988, 2011, Oracle and/or its affiliates. All rights reserved. |
3 # |
3 # |
4 # The contents of this file are subject to the terms of the |
4 # |
5 # Common Development and Distribution License (the "License"). |
|
6 # You may not use this file except in compliance with the License. |
|
7 # |
|
8 # You can obtain a copy of the license at $(SRC)/OPENSOLARIS.LICENSE |
|
9 # or http://www.opensolaris.org/os/licensing. |
|
10 # See the License for the specific language governing permissions |
|
11 # and limitations under the License. |
|
12 # |
|
13 # When distributing Covered Code, include this CDDL HEADER in each |
|
14 # file and include the License file at $(SRC)/OPENSOLARIS.LICENSE. |
|
15 # If applicable, add the following below this CDDL HEADER, with the |
|
16 # fields enclosed by brackets "[]" replaced with your own identifying |
|
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 # Copyright 2007 Sun Microsystems, Inc. All rights reserved. |
|
22 # Use is subject to license terms. |
|
23 # |
|
24 # |
|
25 # Copyright 2006 Sun Microsystems, Inc. All rights reserved. |
|
26 # Use is subject to license terms. |
|
27 # |
|
28 #ident "@(#)magic 1.54 06/03/19 SMI" |
|
29 # |
5 # |
30 # This file contains the dictionary of file format identifiers (magic strings) |
6 # This file contains the dictionary of file format identifiers (magic strings) |
31 # used by file(1). The fields of this file are as follows: |
7 # used by file(1). The fields of this file are as follows: |
32 # |
8 # |
33 # (1) byte offset |
9 # (1) byte offset |
39 # Numeric values may be decimal, octal, or hex. Also note that the last string |
15 # Numeric values may be decimal, octal, or hex. Also note that the last string |
40 # may have one printf format specifier. The '>' in occassional column 1's is |
16 # may have one printf format specifier. The '>' in occassional column 1's is |
41 # magic: it forces file(1) to continue scanning and matching additional lines. |
17 # magic: it forces file(1) to continue scanning and matching additional lines. |
42 # The first line afterwards not so marked terminates the search. |
18 # The first line afterwards not so marked terminates the search. |
43 # |
19 # |
44 # The entries for ELF are not needed anymore, as file(1) now uses the elf(3ELF) |
20 # The entries for ELF and current archives are not needed anymore, as file(1) |
45 # routines to look at ELF files. They remain, commented out, for reference. |
21 # now uses the elf(3ELF) routines to look at ELF files. They remain, commented |
|
22 # out, for reference. |
46 # |
23 # |
47 #0 string \177ELF ELF |
24 #0 string \177ELF ELF |
48 #>4 byte 1 32-bit |
25 #>4 byte 1 32-bit |
49 #>5 byte 1 LSB |
26 #>5 byte 1 LSB |
50 #>5 byte 2 MSB |
27 #>5 byte 2 MSB |
87 0 long 0177555 archivio ar obsoleto |
64 0 long 0177555 archivio ar obsoleto |
88 0 short 0177545 archivio ar pdp11/pre System V |
65 0 short 0177545 archivio ar pdp11/pre System V |
89 0 long 0100554 area di lavoro apl |
66 0 long 0100554 area di lavoro apl |
90 0 short 017037 dati compressi |
67 0 short 017037 dati compressi |
91 0 string <ar> archivio ar System V Release 1 |
68 0 string <ar> archivio ar System V Release 1 |
92 0 string !<arch> archivio ar corrente |
69 #0 string !<arch> archivio ar corrente |
93 0 short 0407 eseguibile vax pdp11/pre System V |
70 0 short 0407 eseguibile vax pdp11/pre System V |
94 >8 ushort >0 non stripped |
71 >8 ushort >0 non stripped |
95 >15 ubyte >0 - versione %ld |
72 >15 ubyte >0 - versione %ld |
96 0 short 0401 ldp unix-rt |
73 0 short 0401 ldp unix-rt |
97 0 short 0405 overlay pdp11 |
74 0 short 0405 overlay pdp11 |
229 >0x1e short &0x1 eseguibile |
206 >0x1e short &0x1 eseguibile |
230 >0x1e short ^0x1 file oggetto |
207 >0x1e short ^0x1 file oggetto |
231 >0x1e short &0x40 Large Text (testo grande) |
208 >0x1e short &0x40 Large Text (testo grande) |
232 >0x1e short &0x20 Large Data (dati grandi) |
209 >0x1e short &0x20 Large Data (dati grandi) |
233 >0x1e short &0x120 Huge Objects Enabled (oggetti molto grandi abilitati) |
210 >0x1e short &0x120 Huge Objects Enabled (oggetti molto grandi abilitati) |
234 0 short 0x10b file oggetto a.out formato caricam. domanda VAX |
211 0 short 0x10b file oggetto a.out formato caricamento domanda VAX |
235 >0x10 long >0 non stripped |
212 >0x10 long >0 non stripped |
236 0 short 0x140 vecchio Microsoft 8086 x.out |
213 0 short 0x140 vecchio Microsoft 8086 x.out |
237 >0x3 byte &0x4 separato |
214 >0x3 byte &0x4 separato |
238 >0x3 byte &0x2 puro |
215 >0x3 byte &0x2 puro |
239 >0 byte &0x1 eseguibile |
216 >0 byte &0x1 eseguibile |
240 >0 byte ^0x1 rilocabile |
217 >0 byte ^0x1 rilocabile |
241 >0x14 long >0 non stripped |
218 >0x14 long >0 non stripped |
242 0 long 0x10b file oggetto a.out formato caricam. domanda VAX |
219 0 long 0x10b file oggetto a.out formato caricamento domanda VAX |
243 >0x10 long >0 non stripped |
220 >0x10 long >0 non stripped |
244 0 long 0x140 vecchio Microsoft 8086 x.out |
221 0 long 0x140 vecchio Microsoft 8086 x.out |
245 >0x3 byte &0x4 separato |
222 >0x3 byte &0x4 separato |
246 >0x3 byte &0x2 puro |
223 >0x3 byte &0x2 puro |
247 >0 byte &0x1 eseguibile |
224 >0 byte &0x1 eseguibile |
291 0 string %! documento PostScript |
268 0 string %! documento PostScript |
292 >2 string PS-Adobe conforming to level |
269 >2 string PS-Adobe conforming to level |
293 >10 string -1.0 1.0 |
270 >10 string -1.0 1.0 |
294 >10 string -2.0 2.0 |
271 >10 string -2.0 2.0 |
295 >10 string -3.0 3.0 |
272 >10 string -3.0 3.0 |
|
273 # Handle Microsoft PostScript files (CTRL-D%!) |
|
274 0 string \004%! PostScript document text |
296 # version ID follows, in the form PS-Adobe-nn |
275 # version ID follows, in the form PS-Adobe-nn |
297 0 string Interpress/Xerox documento Interpress |
276 0 string Interpress/Xerox documento Interpress |
298 # version ID follows, in the form /n.n |
277 # version ID follows, in the form /n.n |
299 0 string StartFontMetrics metrica font Adobe |
278 0 string StartFontMetrics metrica font Adobe |
300 0 string StartFont bit font Adobe |
279 0 string StartFont bit font Adobe |
301 0 long 0x137A2944 font bitmap NeWS |
280 0 long 0x137A2944 font bitmap NeWS |
302 0 long 0x137A2947 famiglia di font NeWS |
281 0 long 0x137A2947 famiglia di font NeWS |
303 8 long 0x137A2B45 font bitmap X11/NeWS |
282 8 long 0x137A2B45 font bitmap X11/NeWS |
304 8 long 0x137A2B48 famiglia di font X11/NeWS |
283 8 long 0x137A2B48 famiglia di font X11/NeWS |
305 # snoop files are always big-endian |
|
306 # big-endian entries, with ullong equivalent of string "snoop" |
|
307 0 ullong 0x736e6f6f70000000 file di cattura Snoop |
|
308 >8 long >0 - versione %ld |
|
309 # little-endian entries, with ullong equivalent of string "snoop" |
|
310 0 ullong 0x000000706f6f6e73 file di cattura Snoop |
|
311 >11 long >0 - versione %ld |
|
312 0 short 0436 definizione vfont |
284 0 short 0436 definizione vfont |
313 0 string <MakerFile documento Frame Maker |
285 0 string <MakerFile documento Frame Maker |
314 0 string <MIFFile file MIF di Frame Maker |
286 0 string <MIFFile file MIF di Frame Maker |
315 0 string <MML file MML di Frame Maker |
287 0 string <MML file MML di Frame Maker |
316 0 string <BookFile file book di Frame Maker |
288 0 string <BookFile file book di Frame Maker |
504 38 string application/vnd.sun.xml.writer Documento di testo di StarOffice 7 |
476 38 string application/vnd.sun.xml.writer Documento di testo di StarOffice 7 |
505 38 string application/vnd.sun.xml.calc Foglio elettronico di StarOffice 7 |
477 38 string application/vnd.sun.xml.calc Foglio elettronico di StarOffice 7 |
506 38 string application/vnd.sun.xml.draw Disegno di StarOffice 7 |
478 38 string application/vnd.sun.xml.draw Disegno di StarOffice 7 |
507 38 string application/vnd.sun.xml.impress Presentazione di StarOffice 7 |
479 38 string application/vnd.sun.xml.impress Presentazione di StarOffice 7 |
508 38 string application/vnd.sun.xml.math Formula di StarOffice 7 |
480 38 string application/vnd.sun.xml.math Formula di StarOffice 7 |
|
481 38 string application/vnd.oasis.opendocument.chart OpenDocument Chart |
|
482 38 string application/vnd.oasis.opendocument.database OpenDocument Database |
|
483 38 string application/vnd.sun.xml.base OpenDocument Database |
|
484 38 string application/vnd.oasis.opendocument.formula OpenDocument Formula |
|
485 38 string application/vnd.oasis.opendocument.image OpenDocument Image |
|
486 38 string application/vnd.oasis.opendocument.text-web HTML Document Template |
|
487 38 string application/vnd.oasis.opendocument.text- OpenDocument |
|
488 >78 string template Text Template |
|
489 >78 string master Master Document |
|
490 38 string application/vnd.oasis.opendocument.text OpenDocument Text |
|
491 38 string application/vnd.oasis.opendocument.graphics OpenDocument Drawing |
|
492 >81 string -template Template |
|
493 38 string application/vnd.oasis.opendocument.presentation OpenDocument Presentation |
|
494 >85 string -template Template |
|
495 38 string application/vnd.oasis.opendocument.spreadsheet OpenDocument Spreadsheet |
|
496 >84 string -template Template |
509 0 string PK\003\004 archivio ZIP |
497 0 string PK\003\004 archivio ZIP |
510 0 string MZ eseguibile DOS (EXE) |
498 0 string MZ eseguibile DOS (EXE) |
511 0 string LZ incorporato DOS |
499 0 string LZ incorporato DOS |
512 0 byte 0xe9 eseguibile DOS (COM) |
500 0 byte 0xe9 eseguibile DOS (COM) |
513 0 byte 0xeb eseguibile DOS (COM) |
501 0 byte 0xeb eseguibile DOS (COM) |
|
502 0 string \013\023\010\000 ksh compiled shell script executable |
514 24 long 60012 file archivio ufsdump |
503 24 long 60012 file archivio ufsdump |
515 0 string TZif file di dati fuso orario zoneinfo |
504 0 string TZif file di dati fuso orario zoneinfo |
516 0 string BZh dati compressi bzip2 |
505 0 string BZh dati compressi bzip2 |
517 >3 byte >47 , dimensione blocco = %c00k |
506 >3 byte >47 , dimensione blocco = %c00k |
518 0 string SUNWcpch intestazione precompilata con compilatore C Sun |
507 0 string SUNWcpch intestazione precompilata con compilatore C Sun |
521 0 short 0xcff1 file di dati CTF |
510 0 short 0xcff1 file di dati CTF |
522 0 string \177DOF file di dati DOF DTrace |
511 0 string \177DOF file di dati DOF DTrace |
523 0 string \177FCF file di checkpoint fmd(1M) |
512 0 string \177FCF file di checkpoint fmd(1M) |
524 0 string EFT\0 File albero degli errori, |
513 0 string EFT\0 File albero degli errori, |
525 >4 ushort x v%u |
514 >4 ushort x v%u |
526 >6 ushort x rev. %u, |
515 >6 ushort x rev %u, |
527 >8 ushort x da esc v%u |
516 >8 ushort x da esc v%u |
528 >10 ushort x rev %u |
517 >10 ushort x rev %u |
529 0 string _SM_ immagine SMBIOS DMTF |
518 0 string _SM_ immagine SMBIOS DMTF |
530 >6 byte x versione %u |
519 >6 byte x versione %u |
531 >7 byte x .%u |
520 >7 byte x .%u |
|
521 0 byte 0x11 Solaris Audit File |
|
522 0 byte 0x78 Solaris Audit File |
|
523 # ZFS send stream entries |
|
524 8 ullong 0x00000002f5bacbac stream di snapshot ZFS |
|
525 # little endian stream |
|
526 8 ullong 0xaccbbaf502000000 stream di snapshot ZFS |
|
527 |
|
528 |
|
529 # Video file |
|
530 2 string \001\272\041 File di filmato MPEG |
|
531 0 string \377\375 Layer audio 2 MPEG-1 |
|
532 0 string \377\373 Layer audio 3 MPEG-1 |
|
533 0 string \377\372 Layer audio 3 MPEG-1 |
|
534 0 string \111\104\063 Layer 3 MPEG-1 con ID3v2 |
|
535 |
|
536 # AVI and GVI files |
|
537 20 string hdrlavih RIFF Avi Video |
|
538 >36 ulong >0 %u Max Bps, |
|
539 >64 ubreve x %u X |
|
540 >68 ubreve x %u, |
|
541 >48 ulungo x %u frame |
|
542 |
|
543 20 string goog RIFF gvi |
|
544 >88 ulungo >0 %u Max Bps |
|
545 >116 ubreve x %u X |
|
546 >120 ubreve x %u, |
|
547 >100 ulungo x %u frame |
|
548 |
|
549 # JPEG 2000 - jp2 image file. |
|
550 3 string \014\152\120\040\040 File di immagine JPEG 2000 |
|
551 |
|
552 # iso 9660 Immagine CD-ROM e standard El Torito avviabile |
|
553 32769 string CD\0 Immagine filesystem ISO 9660 |
|
554 >34823 string EL\040TORITO - El Torito |
|
555 |
|
556 # File Palm Pilot .pdb e .prc di qualsiasi tipo. |
|
557 0x3c string TEXtREAd File Palm DOC |
|
558 0x3c string SDocSilX File iSilo 3 Doc per PalmPilot |
|
559 0x3c string applSil File di applicazione iSilo |
|
560 0x3c string appl Applicazione Palm Pilot |
|
561 0x3c string ToGoToGo File iSilo Doc per Palm Pilot |
|
562 |
|
563 #File SGI con estensione .rgb |
|
564 0 string \001\332 Dati immagine SGI, |
|
565 >2 byte 1 RLE, |
|
566 >2 byte 0 Verbatim, |
|
567 >5 ubyte x %u-D |
|
568 >7 ubyte x %u x |
|
569 >9 ubyte x %u, |
|
570 >11 ubyte x %u canale/i |
|
571 |
|
572 2048 string PCD_IPI Kodak Photo CD image pack file |
|
573 >0xe02 byte&0x03 0x00 , landscape mode |
|
574 >0xe02 byte&0x03 0x01 , portrait mode |
|
575 >0xe02 byte&0x03 0x02 , landscape mode |
|
576 >0xe02 byte&0x03 0x03 , portrait mode |
|
577 0 string PCD_OPA Kodak Photo CD overview pack file |
|
578 |
|
579 # Documenti MS. Non sono disponibili molte informazioni. |
|
580 0 string \320\317\021\340\241\261\032\341 Microsoft |
|
581 >546 string bjbj Word |
|
582 >0 byte <0 Documento |
|
583 0 string {\\rtf Documento RTF Microsoft |
|
584 |
|
585 # formato multimediale mp4 con diversi file multimediali integrati |
|
586 4 string ftyp MPEG-4 |
|
587 >8 string isom Base Media v1 [IS0 14496-12:2003] |
|
588 >8 string iso2 Base Media v2 [ISO 14496-12:2005] |
|
589 >8 string m4a\040 Apple iTunes AAC-LC (.M4A) Audio |
|
590 >8 string m4v\040 Apple iTunes (.M4V) Video |
|
591 >8 string qt Apple QuickTime (.MOV/QT) |
|
592 >8 string jp2 JPEG 2000 Image |
|
593 >8 string jpm JPEG 2000 Compound Image (.JPM) [ISO 15444-6] |
|
594 >8 string jpx JPEG 2000 con estensioni (.JPX) [ISO 15444-2] |
|
595 >8 string mp42 v2 [ISO 14496-14] |
|
596 4 string moov File QuickTime MOV |