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 contenedor ar obsoleto |
64 0 long 0177555 contenedor ar obsoleto |
88 0 short 0177545 contenedor ar pdp11/pre System V |
65 0 short 0177545 contenedor ar pdp11/pre System V |
89 0 long 0100554 área de trabajo apl |
66 0 long 0100554 área de trabajo apl |
90 0 short 017037 datos empaquetados |
67 0 short 017037 datos empaquetados |
91 0 string <ar> contenedor ar System V Release 1 |
68 0 string <ar> contenedor ar System V Release 1 |
92 0 string !<arch> contenedor ar actual |
69 #0 string !<arch> contenedor ar actual |
93 0 short 0407 ejecutable vax pdp11/pre System V |
70 0 short 0407 ejecutable vax pdp11/pre System V |
94 >8 ushort >0 sin filtrar |
71 >8 ushort >0 sin filtrar |
95 >15 ubyte >0 - versión %ld |
72 >15 ubyte >0 - versión %ld |
96 0 short 0401 unix-rt ldp |
73 0 short 0401 unix-rt ldp |
97 0 short 0405 recubrimiento de pdp11 |
74 0 short 0405 recubrimiento de pdp11 |
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 de Interpress |
276 0 string Interpress/Xerox Documento de Interpress |
298 # version ID follows, in the form /n.n |
277 # version ID follows, in the form /n.n |
299 0 string StartFontMetrics Medidas de tipos de letra de Adobe |
278 0 string StartFontMetrics Medidas de tipos de letra de Adobe |
300 0 string StartFont Bits de tipos de letra de Adobe |
279 0 string StartFont Bits de tipos de letra de Adobe |
301 0 long 0x137A2944 Tipo de letra bitmap de NeWS |
280 0 long 0x137A2944 Tipo de letra bitmap de NeWS |
302 0 long 0x137A2947 Familia de tipos de letra de NeWS |
281 0 long 0x137A2947 Familia de tipos de letra de NeWS |
303 8 long 0x137A2B45 Tipo de letra bitmap de X11/NeWS |
282 8 long 0x137A2B45 Tipo de letra bitmap de X11/NeWS |
304 8 long 0x137A2B48 Familia de tipos de letra de X11/NeWS |
283 8 long 0x137A2B48 Familia de tipos de letra de X11/NeWS |
305 # snoop files are always big-endian |
|
306 # big-endian entries, with ullong equivalent of string "snoop" |
|
307 0 ullong 0x736e6f6f70000000 Archivo de captura Snoop |
|
308 >8 long >0 - versión %ld |
|
309 # little-endian entries, with ullong equivalent of string "snoop" |
|
310 0 ullong 0x000000706f6f6e73 Archivo de captura Snoop |
|
311 >11 long >0 - versión %ld |
|
312 0 short 0436 Definición de vfont |
284 0 short 0436 Definición de vfont |
313 0 string <MakerFile Documento de Frame Maker |
285 0 string <MakerFile Documento de Frame Maker |
314 0 string <MIFFile Archivo MIF de Frame Maker |
286 0 string <MIFFile Archivo MIF de Frame Maker |
315 0 string <MML Archivo MML de Frame Maker |
287 0 string <MML Archivo MML de Frame Maker |
316 0 string <BookFile Archivo de libro de Frame Maker |
288 0 string <BookFile Archivo de libro de Frame Maker |
504 38 string application/vnd.sun.xml.writer Documentos de texto de StarOffice 7 |
476 38 string application/vnd.sun.xml.writer Documentos de texto de StarOffice 7 |
505 38 string application/vnd.sun.xml.calc Hoja de cálculo de StarOffice 7 |
477 38 string application/vnd.sun.xml.calc Hoja de cálculo de StarOffice 7 |
506 38 string application/vnd.sun.xml.draw Dibujo de StarOffice 7 |
478 38 string application/vnd.sun.xml.draw Dibujo de StarOffice 7 |
507 38 string application/vnd.sun.xml.impress Presentación de StarOffice 7 |
479 38 string application/vnd.sun.xml.impress Presentación de StarOffice 7 |
508 38 string application/vnd.sun.xml.math Fórmula de StarOffice 7 |
480 38 string application/vnd.sun.xml.math Fórmula de 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 Contenedor ZIP |
497 0 string PK\003\004 Contenedor ZIP |
510 0 string MZ DOS ejecutable (EXE) |
498 0 string MZ DOS ejecutable (EXE) |
511 0 string LZ DOS incorporado |
499 0 string LZ DOS incorporado |
512 0 byte 0xe9 DOS ejecutable (COM) |
500 0 byte 0xe9 DOS ejecutable (COM) |
513 0 byte 0xeb DOS ejecutable (COM) |
501 0 byte 0xeb DOS ejecutable (COM) |
|
502 0 string \013\023\010\000 ksh compiled shell script executable |
514 24 long 60012 Archivo de contenedor ufsdump |
503 24 long 60012 Archivo de contenedor ufsdump |
515 0 string TZif archivo de datos de zona horaria zoneinfo |
504 0 string TZif archivo de datos de zona horaria zoneinfo |
516 0 string BZh datos comprimidos bzip2 |
505 0 string BZh datos comprimidos bzip2 |
517 >3 byte >47 , tamaño de bloque = %c00k |
506 >3 byte >47 , tamaño de bloque = %c00k |
518 0 string SUNWcpch Cabecera compilada previamente del compilador de C de Sun |
507 0 string SUNWcpch Cabecera compilada previamente del compilador de C de Sun |
527 >8 ushort x de esc v%u |
516 >8 ushort x de esc v%u |
528 >10 ushort x rev %u |
517 >10 ushort x rev %u |
529 0 string _SM_ Imagen de DMTF SMBIOS |
518 0 string _SM_ Imagen de DMTF SMBIOS |
530 >6 byte x versión %u |
519 >6 byte x versión %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 Flujo de instantánea ZFS |
|
525 # little endian stream |
|
526 8 ullong 0xaccbbaf502000000 Flujo de instantánea ZFS |
|
527 |
|
528 |
|
529 # Video files |
|
530 2 string \001\272\041 Archivo de vídeo MPEG |
|
531 0 string \377\375 Archivo de audio MPEG-1 capa 2 |
|
532 0 string \377\373 Archivo de audio MPEG-1 capa 3 |
|
533 0 string \377\372 Archivo de audio MPEG-1 capa 3 |
|
534 0 string \111\104\063 MPEG-1 capa 3 con ID3v2 |
|
535 |
|
536 # AVI and GVI files |
|
537 20 string hdrlavih Vídeo Avi RIFF |
|
538 >36 ulong >0 %u Bps máx., |
|
539 >64 ushort x %u X |
|
540 >68 ushort x %u, |
|
541 >48 ulong x %u fotogramas |
|
542 |
|
543 20 string goog RIFF gvi |
|
544 >88 ulong >0 %u Bps máx |
|
545 >116 ushort x %u X |
|
546 >120 ushort x %u, |
|
547 >100 ulong x %u fotogramas |
|
548 |
|
549 # JPEG 2000 - jp2 image file. |
|
550 3 string \014\152\120\040\040 JPEG 2000 Image file |
|
551 |
|
552 # iso 9660 CD-ROM image and El Torito Bootable standard |
|
553 32769 string CD\0 ISO 9660 filesystem image |
|
554 >34823 string EL\040TORITO - El Torito |
|
555 |
|
556 # Palm Pilot files .pdb and .prc of some type. |
|
557 0x3c string TEXtREAd Archivo Palm DOC |
|
558 0x3c string SDocSilX Archivo iSilo 3 Doc para PalmPilot |
|
559 0x3c string applSil Archivo de aplicación iSilo |
|
560 0x3c string appl Aplicación de Palm Pilot |
|
561 0x3c string ToGoToGo Archivo iSilo Doc para Palm Pilot |
|
562 |
|
563 #SGI files with .rgb extention |
|
564 0 string \001\332 Datos de imagen 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 canal(es) |
|
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 # MS Documents. No hay demasiada información disponible |
|
580 0 string \320\317\021\340\241\261\032\341 Microsoft |
|
581 >546 string bjbj Documento de Word |
|
582 >0 byte <0 |
|
583 0 string {\\rtf Documento Rich Text Format de Microsoft |
|
584 |
|
585 # mp4 media format with different media files embedded in it |
|
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 Imagen JPEG 2000 |
|
593 >8 string jpm Imagen compuesta JPEG 2000 (.JPM) [ISO 15444-6] |
|
594 >8 string jpx JPEG 2000 con extensiones (.JPX) [ISO 15444-2] |
|
595 >8 string mp42 v2 [ISO 14496-14] |
|
596 4 string moov Archivo MOV de QuickTime |