# file command's magic file # # The fields of the file are basically: # byte offset # type to read # number to match # string to print if the number matches or the condition applies # # The way to read this file is to recognize that the delimiting field is the # numeric in the byte offset column. If a ">" is encountered in the byte # offset column, file will continue scanning and trying to match fields # until a line which doesn't begin with a ">" is encountered. The second # field tells what type of number should be read (typically short, long, or # string). The third field gives the value to be matched or the condition # to be tested from the byte offset for the length specified. The last # column prints the diagnostic which fits the information accrued from the # table. # # 0 long 0x02080108 s500 pure executable >16 long >0 -version %ld 0 long 0x02080107 s500 executable >16 long >0 -version %ld 0 long 0x02080106 s500 relocatable executable >16 long >0 -version %ld 0 long 0x020c0108 s200 pure executable >4 short >0 -version %ld >36 long >0 not stripped 0 long 0x020c0107 s200 executable >4 short >0 -version %ld >36 long >0 not stripped 0 long 0x020c010b s200 demand-load executable >4 short >0 -version %ld >36 long >0 not stripped 0 long 0x020c0106 s200 relocatable executable >4 short >0 -version %ld 0 long 0x020a0108 s200 (2.x release) pure executable >4 short >0 -version %ld >36 long >0 not stripped 0 long 0x020a0107 s200 (2.x release) executable >4 short >0 -version %ld >36 long >0 not stripped 0 short 0x8000 lif file 0 long 0x39bed PDP-11 old archive 0 long 0x39bee PDP-11 4.0 archive 0 long 0x213c6172 archive file 0 long 0x0000ff65 old archive 0 long 0x0208ff65 s500 old archive 0 long 0x020cff65 s200 old archive 0 long 0x020aff65 s200 old archive 0 short 0x71c7 cpio archive 0 short 0x3037 ASCII cpio archive 0 long 0x3c61723e VAX 5.0 archive 0 long 0x65ff0000 VAX 3.0 archive