# @(#)22 1.20.1.2 src/bos/usr/bin/file/POWER/magic, cmdfiles, bos72X, x2021_26B0 6/10/21 12:48:25 # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # bos72X src/bos/usr/bin/file/POWER/magic 1.20.1.2 # # Licensed Materials - Property of IBM # # COPYRIGHT International Business Machines Corp. 1985,2021 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # IBM_PROLOG_END_TAG # COMPONENT_NAME: (CMDFILES) commands that manipulate files # # ORIGINS: 3, 27, 71 # # (c) Copyright 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC. # ALL RIGHTS RESERVED # # OSF/1 1.1 # # file cmd's magic file # # Basically, the fields of this file are as follows: # 1 byte offset, # 2 value type, # 3 optional relational operator ("=" by default) and # value to match (numeric or string constant), # 4 string to be printed. # # Numeric values may be decimal, octal, or hexadecimal. # Strings can be entered as hex values by preceding them with # '0x'. # Also, the last string may have one printf format specification. # # The '>' in occasional column 1's is magic: it forces file to # continue scanning and matching additional lines. The first line # afterwards not so marked terminates the search. # # Recognized AIX Magic Values # 0 short 0x01df executable (RISC System/6000) or object module >12 long >0 not stripped 0 short 0x01f7 64-bit XCOFF executable or object module >20 long >0 not stripped 0 short 0x01ef Discontinued 64-bit XCOFF executable or object module >20 long >0 not stripped 0 short 0x0104 shared library 0 long 505 message catalog 0 string 0xabcdef message catalog 0 long 0x000001f9 compiled message catalog 257 string ustar tar archive 0 long 0x09006bea backup/restore format file 0 long 0x09006fea backup/restore format file 0 short 070707 cpio archive 0 string 070707 ASCII cpio archive 0 short 017436 packed text 0 string archive (big format) 0 string archive 0 string Rast RST format font raster 0 short 0x0103 executable (RT Version 2) or obj module >2 byte 0x50 pure >28 long >0 not stripped >6 short >0 - version %ld 0 short 0x0105 ctab data 0 short 0xfe04 structured file 0 short 0x1f9d compressed data >2 byte &0x80>0 block compressed >2 byte &0x1f>0 %d bit 0 short 0x1f8b gzip (.gz) compressed data 0 long 0x64626444 RISC System/6000 block compressed system dump 512 long 0x64626444 RISC System/6000 block compressed system dump 0 long 0xeeeeeeee RISC System/6000 32-bit system dump 0 long 0xeeeeeeec RISC System/6000 32-bit system dump 0 long 0xeeeeeeef RISC System/6000 32-bit system dump 512 long 0xeeeeeeee RISC System/6000 32-bit system dump 512 long 0xeeeeeeec RISC System/6000 32-bit system dump 512 long 0xeeeeeeef RISC System/6000 32-bit system dump 0 long 0xeeeeeeeb RISC System/6000 64-bit system dump 0 long 0xeeeeeeed RISC System/6000 64-bit system dump 512 long 0xeeeeeeeb RISC System/6000 64-bit system dump 512 long 0xeeeeeeed RISC System/6000 64-bit system dump 0 long 0x4243C0DE LLVM IR bitcode # # CORE File # 4 long &0x0feeddb0=0x0feeddb0 AIX core file # # # ELF # 0 string ELF ELF >4 byte 0 invalid class >4 byte 1 32-bit >4 byte 2 64-bit >5 byte 0 invalid encoding >5 byte 1 LSB >5 byte 2 MSB >6 byte >0 version %d >7 byte 1 HPUX >7 byte 2 NetBSD >7 byte 3 Linux >7 byte 4 GNU >7 byte 5 86Open >7 byte 6 Solaris >7 byte 7 AIX >7 byte 8 IRIX >7 byte 9 FreeBSD >7 byte 10 TRU64 >7 byte 11 Modesto >7 byte 12 OpenBSD # little endian >16 short 0 unknown type >16 byte 1 relocatable >16 byte 2 executable >16 byte 3 shared obj >16 byte 4 core #big endian >17 byte 1 relocatable >17 byte 2 executable >17 byte 3 shared obj >17 byte 4 core # little endian >18 short 0 unknown machine >18 byte 1 WE32100 >18 byte 2 SPARC >18 byte 3 80386 >18 byte 4 M68000 >18 byte 5 M88000 >18 byte 7 80860 >18 byte 8 MIPS I >18 byte 9 IBM 370 >18 byte 10 MIPS RS3000 >18 byte 15 PA-RISC >18 byte 17 Fujitsu VPP500 >18 byte 18 SPARC32PLUS >18 byte 19 Intel 80960 >18 byte 20 PowerPC >18 byte 21 PowerPC64 >18 byte 36 NEC V800 >18 byte 37 Fujitsu FR20 >18 byte 38 TRW RH-32 >18 byte 39 Motorola RCE >18 byte 40 ARM >18 byte 41 ALPHA >18 byte 42 Hitachi SH >18 byte 43 SPARC V9 >18 byte 44 Tricore >18 byte 45 ARC >18 byte 46 Hitachi H8/300 >18 byte 47 Hitachi H8/300H >18 byte 48 Hitachi H8S >18 byte 49 Hitachi H8/500 >18 byte 50 IA-64 >18 byte 51 MIPS-X >18 byte 52 Coldfire >18 byte 53 M68HC12 >18 byte 54 Fujitsu MMA >18 byte 55 Siemens PCP >18 byte 56 Sony nCPU >18 byte 57 Denso NDR1 >18 byte 58 STARCODE >18 byte 59 Toyota ME16 >18 byte 60 ST100 >18 byte 61 TinyJ >18 byte 66 Siemens FX66 >18 byte 67 ST9PLUS >18 byte 68 ST7 >18 byte 69 M68HC16 >18 byte 70 M68HC11 >18 byte 71 M68HC08 >18 byte 72 M68HC05 >18 byte 73 SG SVx >18 byte 74 ST19 >18 byte 75 VAX >18 byte 76 CRIS >18 byte 77 JAVELIN >18 byte 78 FIREPATH >18 byte 79 LSI DSP16 >18 byte 80 Knuth MMIX >18 byte 81 HUANY >18 byte 82 PRISM #big endian >19 byte 1 WE32100 >19 byte 2 SPARC >19 byte 3 80386 >19 byte 4 M68000 >19 byte 5 M88000 >19 byte 7 80860 >19 byte 8 MIPS I >19 byte 9 IBM 370 >19 byte 10 MIPS RS3000 >19 byte 15 PA-RISC >19 byte 17 Fujitsu VPP500 >19 byte 18 SPARC32PLUS >19 byte 19 Intel 80960 >19 byte 20 PowerPC >19 byte 21 PowerPC64 >19 byte 36 NEC V800 >19 byte 37 Fujitsu FR20 >19 byte 38 TRW RH-32 >19 byte 39 Motorola RCE >19 byte 40 ARM >19 byte 41 ALPHA >19 byte 42 Hitachi SH >19 byte 43 SPARC V9 >19 byte 44 Tricore >19 byte 45 ARC >19 byte 46 Hitachi H8/300 >19 byte 47 Hitachi H8/300H >19 byte 48 Hitachi H8S >19 byte 49 Hitachi H8/500 >19 byte 50 IA-64 >19 byte 51 MIPS-X >19 byte 52 Coldfire >19 byte 53 M68HC12 >19 byte 54 Fujitsu MMA >19 byte 55 Siemens PCP >19 byte 56 Sony nCPU >19 byte 57 Denso NDR1 >19 byte 58 STARCODE >19 byte 59 Toyota ME16 >19 byte 60 ST100 >19 byte 61 TinyJ >19 byte 66 Siemens FX66 >19 byte 67 ST9PLUS >19 byte 68 ST7 >19 byte 69 M68HC16 >19 byte 70 M68HC11 >19 byte 71 M68HC08 >19 byte 72 M68HC05 >19 byte 73 SG SVx >19 byte 74 ST19 >19 byte 75 VAX >19 byte 76 CRIS >19 byte 77 JAVELIN >19 byte 78 FIREPATH >19 byte 79 LSI DSP16 >19 byte 80 Knuth MMIX >19 byte 81 HUANY >19 byte 82 PRISM # 0 string HTML document 0 string HTML document 0 string 16 long 0x00000001 MIPS >16 long 0x00000002 National 32x32 >16 long 0x00000003 Intel [34]86 >16 long 0x00000004 Motorola 68xxx >28 long 0x00000002 Object file >28 long 0x0000000c Program file >28 long 0x0000001c Program file, unresolved references # # Archive files # 0 string ! archive >8 string __.SYMDEF random library >8 string __________E - MIPS 0 long 0177555 very old pdp11 archive 0 short 0177545 old pdp11 archive/4.0 archive 0 string System V archive >20 string U with mipsucode members >21 string L with mipsel members >21 string B with mipseb members >19 string L and a EL hash table >19 string B and a EB hash table >22 string X -- out of date 0 long 0100554 apl workspace 0 short 017037 packed data 0 short 017777 compacted data (4.1bsd) 0 short 0116437 compressed data 0 string begin uuencoded data # # All sorts of scripts (with a single space after "#!") # 0x232120 corresponds with "#! ", this value must be entered as hex # because space characters are used as delimiters. # 0 string 0x232120 shell script >3 string /bin/sh - sh (default shell) >3 string /sbin/sh - sh (default shell) >3 string /usr/bin/sh - sh (default shell) >3 string /bin/bsh - bsh (Bourne shell) >3 string /sbin/bsh - bsh (Bourne shell) >3 string /usr/bin/bsh - bsh (Bourne shell) >3 string /bin/csh - csh (C shell) >3 string /usr/bin/csh - csh (C shell) >3 string /bin/ksh - ksh (Korn shell) >3 string /usr/bin/ksh - ksh (Korn shell) >3 string /bin/tcsh - tcsh >3 string /usr/bin/tcsh - tcsh >3 string /bin/rsh - rsh (remote shell) >3 string /usr/bin/rsh - rsh (remote shell) >3 string /bin/Rsh - bsh (restricted) >3 string /usr/bin/Rsh - bsh (restricted) >3 string /bin/psh - psh (POSIX shell) >3 string /usr/bin/psh - psh (POSIX shell) # # All sorts of scripts (without space after "#!") # 0 string #! shell script >2 string /bin/sh - sh (default shell) >2 string /sbin/sh - sh (default shell) >2 string /usr/bin/sh - sh (default shell) >2 string /bin/bsh - bsh (Bourne shell) >2 string /sbin/bsh - bsh (Bourne shell) >2 string /usr/bin/bsh - bsh (Bourne shell) >2 string /bin/csh - csh (C shell) >2 string /usr/bin/csh - csh (C shell) >2 string /bin/ksh - ksh (Korn shell) >2 string /usr/bin/ksh - ksh (Korn shell) >2 string /bin/tcsh - tcsh >2 string /usr/bin/tcsh - tcsh >2 string /bin/rsh - rsh (remote shell) >2 string /usr/bin/rsh - rsh (remote shell) >2 string /bin/Rsh - bsh (restricted) >2 string /usr/bin/Rsh - bsh (restricted) >2 string /bin/psh - psh (POSIX shell) >2 string /usr/bin/psh - psh (POSIX shell) # # Various sorts of executable images. # 0 short 0401 Ultrix-11 Stand-alone or boot executable 0 short 0405 old overlay # 0 short 0407 VAX executable (object file) >8 short >0 not stripped # 0 long 0410 VAX pure executable >16 long >0 not stripped >2 short >0 - version %d # 0 short 0411 pdp-11 separate I&D >8 short >0 not stripped >15 byte >0 - version %ld # 0 short 0413 VAX demand paged pure executable >2 short 02 POSIX >2 short 01 SVID >16 long >0 not stripped # 0 short 0430 Ultrix-11 overlay text kernel executable 0 short 0431 Ultrix-11 user overlay (separated I&D) executable 0 short 0437 pdp11 kernel overlay 0 short 0450 Ultrix-11 overlay kernel executable 0 short 0451 Ultrix-11 overlay kernel (separated I&D) executable # 0 short 0510 ns16000 >28 short 0407 unpure text executable >28 short 0410 pure executable >28 short 0413 demand-paged executable >12 long >0 not stripped >30 short >0 - version %ld >30 short 0 - # 0 short 0515 ns16000 >28 short 0407 unpure text executable >28 short 0410 pure executable >28 short 0413 demand-paged executable >12 long >0 not stripped >30 short >0 - version %ld >30 short 0 - # 0 short 0524 ns32000 >18 short &0004000 apc-II >18 short &0010000 xpc532 >18 short &0020000 xpc w/381 fpu >18 short &0040000 xpc w/580 fpu >20 short 0407 unpure text executable >20 short 0410 pure executable >20 short 0413 demand-paged executable >20 short 0417 unsupported executable >12 long >0 not stripped >22 short 0 - # 0 short 0525 ns32000 >18 short &0004000 apc-II >18 short &0010000 xpc532 >18 short &0020000 xpc w/381 fpu >18 short &0040000 xpc w/580 fpu >20 short 0407 executable >20 short 0410 pure executable >20 short 0413 demand-paged executable >20 short 0417 unsupported executable >12 long >0 not stripped >22 short 0 - # 0 short 0540 mipseb >20 short 0407 executable >20 short 0410 pure >20 short 0413 demand paged >8 long >0 not stripped >8 long <0 not stripped # 0 short 0542 mipsel >20 short 0407 407 >20 short 0410 pure >20 short 0413 demand paged >8 long 0 executable >8 long >0 not stripped >8 long <0 not stripped # 0 short 0565 i386 COFF object # 0 short 0600 mipseb ucode 0 short 0602 mipsel ucode # 0 short 060001 swapped mipseb >20 short 03401 executable >20 short 04001 pure >20 short 05401 demand paged >8 long >0 not stripped >8 long <0 not stripped # 0 short 061001 swapped mipsel >20 short 03401 407 >20 short 04001 pure >20 short 05401 demand paged >8 long 0 executable >8 long >0 not stripped >8 long <0 not stripped # # Various sorts of text and data files. # 0 string head RCS file # 0 long 04553207 X image 0 long 0xdeadbeef core file # # From AIX PS/2 1.2.1 # 0 short 0x04fe structured file 0 short 017437 packed text 0 short 0514 386 System V demand paged executable >12 long >0 not stripped 0 short 0537 370 XA sysV executable >12 long >0 not stripped >22 short >0 - version %d >30 long >0 - 5.2 format 0 short 0535 370 sysV executable >12 long >0 not stripped >22 short >0 - version %d >30 long >0 - 5.2 format 0 short 0532 370 XA sysV pure executable >12 long >0 not stripped >22 short >0 - version %d >30 long >0 - 5.2 format 0 short 0530 370 sysV pure executable >12 long >0 not stripped >22 short >0 - version %d >30 long >0 - 5.2 format 0 short 054001 370 sysV pure executable >12 long >0 not stripped 0 short 055001 370 XA sysV pure executable >12 long >0 not stripped 0 short 056401 370 sysV executable >12 long >0 not stripped 0 short 057401 370 XA sysV executable >12 long >0 not stripped 0 short 0502 basic-16 executable >12 long >0 not stripped 0 short 0503 basic-16 executable (TV) >12 long >0 not stripped 0 short 0511 x86 executable (TV) >12 long >0 not stripped 0 short 0560 3b5 executable >12 long >0 not stripped 0 short 0561 3b5 executable (TV) >12 long >0 not stripped 0 short 0570 vax sysV executable >12 long >0 not stripped >22 short >0 - version %ld 0 short 0575 vax sysV pure executable >12 long >0 not stripped >22 short >0 - version %ld 0 short 074001 vax SysV executable >12 long >0 not stripped >22 short >0 - version %d 0 short 076401 vax SysV pure executable >12 long >0 not stripped >22 short >0 - version %d 0 short 02401 vax bsd overlay 0 short 03401 vax bsd executable >16 long >0 not stripped >2 short >0 - version %d 0 short 04001 vax bsd pure executable >16 long >0 not stripped >2 short >0 - version %d 0 short 04401 vax bsd separate I&D executable >16 long >0 not stripped >2 short >0 - version %d 0 short 05401 vax bsd demand paged executable >16 long >0 not stripped >2 short >0 - version %d 0 short 046001 386 System V demand paged executable >12 long >0 not stripped 0 short 072401 386 AIX demand paged executable >12 long >0 not stripped 0 byte 0x80 8086 relocatable 0 short 0xff65 Xenix archive 0 short 062777 Xenix archive 1 string makefile PBE makefile # # #FrameMaker files # # 0 string 11 string 3.0 (3.0 >11 string 2.0 (2.0 >11 string 1.0 (1.0 >14 byte x %c) 0 string 9 string 3.0 (3.0) >9 string 2.0 (2.0) >9 string 1.0 (1.x) 0 string 17 string 2.0 (2.0) >17 string 1.0 (1.x) 0 string 17 string 1.01 (%s) 0 string 10 string 2.0 (2.0 >10 string 1.0 (1.0 >13 byte x %c) 0 string Maker Intermediate Print File FrameMaker IPL file 0 long 0xcafebabe JAVA class file # #sccs files # 8 string \001s\ sccs #------------------------------------------------------------------------------ # # RPM: file(1) magic for Red Hat Packages Erik Troan (ewt@redhat.com) # 0 short 0xedab >2 short 0xeedb RPM >4 byte x v%d >6 short 0 bin >6 short 1 src >8 short 1 i386 >8 short 2 Alpha >8 short 3 Sparc >8 short 4 MIPS >8 short 5 PowerPC >8 short 6 68000 >8 short 7 SGI >8 short 8 RS6000 >8 short 9 IA64 >8 short 10 Sparc64 >8 short 14 S390 >10 string x %s