"Fossies" - the Fresh Open Source Software Archive

Member "file-5.35/magic/Magdir/netbsd" (28 Sep 2017, 11113 Bytes) of package /linux/misc/file-5.35.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "netbsd": 5.32_vs_5.33.

    1 
    2 #------------------------------------------------------------------------------
    3 # $File: netbsd,v 1.25 2017/09/28 02:37:47 christos Exp $
    4 # netbsd:  file(1) magic for NetBSD objects
    5 #
    6 # All new-style magic numbers are in network byte order.
    7 # The old-style magic numbers are indistinguishable from the same magic
    8 # numbers used in other systems, and are handled, for all those systems,
    9 # in aout.
   10 #
   11 
   12 0	belong&0377777777	041400413	a.out NetBSD/i386 demand paged
   13 >0	byte			&0x80
   14 >>20	lelong			<4096		shared library
   15 >>20	lelong			=4096		dynamically linked executable
   16 >>20	lelong			>4096		dynamically linked executable
   17 >0	byte			^0x80		executable
   18 >16	lelong			>0		not stripped
   19 0	belong&0377777777	041400410	a.out NetBSD/i386 pure
   20 >0	byte			&0x80		dynamically linked executable
   21 >0	byte			^0x80		executable
   22 >16	lelong			>0		not stripped
   23 0	belong&0377777777	041400407	a.out NetBSD/i386
   24 >0	byte			&0x80		dynamically linked executable
   25 >0	byte			^0x80
   26 >>0	byte			&0x40		position independent
   27 >>20	lelong			!0		executable
   28 >>20	lelong			=0		object file
   29 >16	lelong			>0		not stripped
   30 0	belong&0377777777	041400507	a.out NetBSD/i386 core
   31 >12	string			>\0		from '%s'
   32 >32	lelong			!0		(signal %d)
   33 
   34 0	belong&0377777777	041600413	a.out NetBSD/m68k demand paged
   35 >0	byte			&0x80
   36 >>20	belong			<8192		shared library
   37 >>20	belong			=8192		dynamically linked executable
   38 >>20	belong			>8192		dynamically linked executable
   39 >0	byte			^0x80		executable
   40 >16	belong			>0		not stripped
   41 0	belong&0377777777	041600410	a.out NetBSD/m68k pure
   42 >0	byte			&0x80		dynamically linked executable
   43 >0	byte			^0x80		executable
   44 >16	belong			>0		not stripped
   45 0	belong&0377777777	041600407	a.out NetBSD/m68k
   46 >0	byte			&0x80		dynamically linked executable
   47 >0	byte			^0x80
   48 >>0	byte			&0x40		position independent
   49 >>20	belong			!0		executable
   50 >>20	belong			=0		object file
   51 >16	belong			>0		not stripped
   52 0	belong&0377777777	041600507	a.out NetBSD/m68k core
   53 >12	string			>\0		from '%s'
   54 >32	belong			!0		(signal %d)
   55 
   56 0	belong&0377777777	042000413	a.out NetBSD/m68k4k demand paged
   57 >0	byte			&0x80
   58 >>20	belong			<4096		shared library
   59 >>20	belong			=4096		dynamically linked executable
   60 >>20	belong			>4096		dynamically linked executable
   61 >0	byte			^0x80		executable
   62 >16	belong			>0		not stripped
   63 0	belong&0377777777	042000410	a.out NetBSD/m68k4k pure
   64 >0	byte			&0x80		dynamically linked executable
   65 >0	byte			^0x80		executable
   66 >16	belong			>0		not stripped
   67 0	belong&0377777777	042000407	a.out NetBSD/m68k4k
   68 >0	byte			&0x80		dynamically linked executable
   69 >0	byte			^0x80
   70 >>0	byte			&0x40		position independent
   71 >>20	belong			!0		executable
   72 >>20	belong			=0		object file
   73 >16	belong			>0		not stripped
   74 0	belong&0377777777	042000507	a.out NetBSD/m68k4k core
   75 >12	string			>\0		from '%s'
   76 >32	belong			!0		(signal %d)
   77 
   78 0	belong&0377777777	042200413	a.out NetBSD/ns32532 demand paged
   79 >0	byte			&0x80
   80 >>20	lelong			<4096		shared library
   81 >>20	lelong			=4096		dynamically linked executable
   82 >>20	lelong			>4096		dynamically linked executable
   83 >0	byte			^0x80		executable
   84 >16	lelong			>0		not stripped
   85 0	belong&0377777777	042200410	a.out NetBSD/ns32532 pure
   86 >0	byte			&0x80		dynamically linked executable
   87 >0	byte			^0x80		executable
   88 >16	lelong			>0		not stripped
   89 0	belong&0377777777	042200407	a.out NetBSD/ns32532
   90 >0	byte			&0x80		dynamically linked executable
   91 >0	byte			^0x80
   92 >>0	byte			&0x40		position independent
   93 >>20	lelong			!0		executable
   94 >>20	lelong			=0		object file
   95 >16	lelong			>0		not stripped
   96 0	belong&0377777777	042200507	a.out NetBSD/ns32532 core
   97 >12	string			>\0		from '%s'
   98 >32	lelong			!0		(signal %d)
   99 
  100 0	belong&0377777777	045200507	a.out NetBSD/powerpc core
  101 >12	string			>\0		from '%s'
  102 
  103 0	belong&0377777777	042400413	a.out NetBSD/SPARC demand paged
  104 >0	byte			&0x80
  105 >>20	belong			<8192		shared library
  106 >>20	belong			=8192		dynamically linked executable
  107 >>20	belong			>8192		dynamically linked executable
  108 >0	byte			^0x80		executable
  109 >16	belong			>0		not stripped
  110 0	belong&0377777777	042400410	a.out NetBSD/SPARC pure
  111 >0	byte			&0x80		dynamically linked executable
  112 >0	byte			^0x80		executable
  113 >16	belong			>0		not stripped
  114 0	belong&0377777777	042400407	a.out NetBSD/SPARC
  115 >0	byte			&0x80		dynamically linked executable
  116 >0	byte			^0x80
  117 >>0	byte			&0x40		position independent
  118 >>20	belong			!0		executable
  119 >>20	belong			=0		object file
  120 >16	belong			>0		not stripped
  121 0	belong&0377777777	042400507	a.out NetBSD/SPARC core
  122 >12	string			>\0		from '%s'
  123 >32	belong			!0		(signal %d)
  124 
  125 0	belong&0377777777	042600413	a.out NetBSD/pmax demand paged
  126 >0	byte			&0x80
  127 >>20	lelong			<4096		shared library
  128 >>20	lelong			=4096		dynamically linked executable
  129 >>20	lelong			>4096		dynamically linked executable
  130 >0	byte			^0x80		executable
  131 >16	lelong			>0		not stripped
  132 0	belong&0377777777	042600410	a.out NetBSD/pmax pure
  133 >0	byte			&0x80		dynamically linked executable
  134 >0	byte			^0x80		executable
  135 >16	lelong			>0		not stripped
  136 0	belong&0377777777	042600407	a.out NetBSD/pmax
  137 >0	byte			&0x80		dynamically linked executable
  138 >0	byte			^0x80
  139 >>0	byte			&0x40		position independent
  140 >>20	lelong			!0		executable
  141 >>20	lelong			=0		object file
  142 >16	lelong			>0		not stripped
  143 0	belong&0377777777	042600507	a.out NetBSD/pmax core
  144 >12	string			>\0		from '%s'
  145 >32	lelong			!0		(signal %d)
  146 
  147 0	belong&0377777777	043000413	a.out NetBSD/vax 1k demand paged
  148 >0	byte			&0x80
  149 >>20	lelong			<4096		shared library
  150 >>20	lelong			=4096		dynamically linked executable
  151 >>20	lelong			>4096		dynamically linked executable
  152 >0	byte			^0x80		executable
  153 >16	lelong			>0		not stripped
  154 0	belong&0377777777	043000410	a.out NetBSD/vax 1k pure
  155 >0	byte			&0x80		dynamically linked executable
  156 >0	byte			^0x80		executable
  157 >16	lelong			>0		not stripped
  158 0	belong&0377777777	043000407	a.out NetBSD/vax 1k
  159 >0	byte			&0x80		dynamically linked executable
  160 >0	byte			^0x80
  161 >>0	byte			&0x40		position independent
  162 >>20	lelong			!0		executable
  163 >>20	lelong			=0		object file
  164 >16	lelong			>0		not stripped
  165 0	belong&0377777777	043000507	a.out NetBSD/vax 1k core
  166 >12	string			>\0		from '%s'
  167 >32	lelong			!0		(signal %d)
  168 
  169 0	belong&0377777777	045400413	a.out NetBSD/vax 4k demand paged
  170 >0	byte			&0x80
  171 >>20	lelong			<4096		shared library
  172 >>20	lelong			=4096		dynamically linked executable
  173 >>20	lelong			>4096		dynamically linked executable
  174 >0	byte			^0x80		executable
  175 >16	lelong			>0		not stripped
  176 0	belong&0377777777	045400410	a.out NetBSD/vax 4k pure
  177 >0	byte			&0x80		dynamically linked executable
  178 >0	byte			^0x80		executable
  179 >16	lelong			>0		not stripped
  180 0	belong&0377777777	045400407	a.out NetBSD/vax 4k
  181 >0	byte			&0x80		dynamically linked executable
  182 >0	byte			^0x80
  183 >>0	byte			&0x40		position independent
  184 >>20	lelong			!0		executable
  185 >>20	lelong			=0		object file
  186 >16	lelong			>0		not stripped
  187 0	belong&0377777777	045400507	a.out NetBSD/vax 4k core
  188 >12	string			>\0		from '%s'
  189 >32	lelong			!0		(signal %d)
  190 
  191 # NetBSD/alpha does not support (and has never supported) a.out objects,
  192 # so no rules are provided for them.  NetBSD/alpha ELF objects are
  193 # dealt with in "elf".
  194 0	lelong		0x00070185		ECOFF NetBSD/alpha binary
  195 >10	leshort		0x0001			not stripped
  196 >10	leshort		0x0000			stripped
  197 0	belong&0377777777	043200507	a.out NetBSD/alpha core
  198 >12	string			>\0		from '%s'
  199 >32	lelong			!0		(signal %d)
  200 
  201 0	belong&0377777777	043400413	a.out NetBSD/mips demand paged
  202 >0	byte			&0x80
  203 >>20	belong			<8192		shared library
  204 >>20	belong			=8192		dynamically linked executable
  205 >>20	belong			>8192		dynamically linked executable
  206 >0	byte			^0x80		executable
  207 >16	belong			>0		not stripped
  208 0	belong&0377777777	043400410	a.out NetBSD/mips pure
  209 >0	byte			&0x80		dynamically linked executable
  210 >0	byte			^0x80		executable
  211 >16	belong			>0		not stripped
  212 0	belong&0377777777	043400407	a.out NetBSD/mips
  213 >0	byte			&0x80		dynamically linked executable
  214 >0	byte			^0x80
  215 >>0	byte			&0x40		position independent
  216 >>20	belong			!0		executable
  217 >>20	belong			=0		object file
  218 >16	belong			>0		not stripped
  219 0	belong&0377777777	043400507	a.out NetBSD/mips core
  220 >12	string			>\0		from '%s'
  221 >32	belong			!0		(signal %d)
  222 
  223 0	belong&0377777777	043600413	a.out NetBSD/arm32 demand paged
  224 >0	byte			&0x80
  225 >>20	lelong			<4096		shared library
  226 >>20	lelong			=4096		dynamically linked executable
  227 >>20	lelong			>4096		dynamically linked executable
  228 >0	byte			^0x80		executable
  229 >16	lelong			>0		not stripped
  230 0	belong&0377777777	043600410	a.out NetBSD/arm32 pure
  231 >0	byte			&0x80		dynamically linked executable
  232 >0	byte			^0x80		executable
  233 >16	lelong			>0		not stripped
  234 0	belong&0377777777	043600407	a.out NetBSD/arm32
  235 >0	byte			&0x80		dynamically linked executable
  236 >0	byte			^0x80
  237 >>0	byte			&0x40		position independent
  238 >>20	lelong			!0		executable
  239 >>20	lelong			=0		object file
  240 >16	lelong			>0		not stripped
  241 # NetBSD/arm26 has always used ELF objects, but it shares a core file
  242 # format with NetBSD/arm32.
  243 0	belong&0377777777	043600507	a.out NetBSD/arm core
  244 >12	string			>\0		from '%s'
  245 >32	lelong			!0		(signal %d)
  246 
  247 # Kernel core dump format
  248 0	belong&0x0000ffff 0x00008fca	NetBSD kernel core file
  249 >0	belong&0x03ff0000 0x00000000	\b, Unknown
  250 >0	belong&0x03ff0000 0x00010000	\b, sun 68010/68020
  251 >0	belong&0x03ff0000 0x00020000	\b, sun 68020
  252 >0	belong&0x03ff0000 0x00640000	\b, 386 PC
  253 >0	belong&0x03ff0000 0x00860000	\b, i386 BSD
  254 >0	belong&0x03ff0000 0x00870000	\b, m68k BSD (8K pages)
  255 >0	belong&0x03ff0000 0x00880000	\b, m68k BSD (4K pages)
  256 >0	belong&0x03ff0000 0x00890000	\b, ns32532 BSD
  257 >0	belong&0x03ff0000 0x008a0000	\b, SPARC/32 BSD
  258 >0	belong&0x03ff0000 0x008b0000	\b, pmax BSD
  259 >0	belong&0x03ff0000 0x008c0000	\b, vax BSD (1K pages)
  260 >0	belong&0x03ff0000 0x008d0000	\b, alpha BSD
  261 >0	belong&0x03ff0000 0x008e0000	\b, mips BSD (Big Endian)
  262 >0	belong&0x03ff0000 0x008f0000	\b, arm6 BSD
  263 >0	belong&0x03ff0000 0x00900000	\b, m68k BSD (2K pages)
  264 >0	belong&0x03ff0000 0x00910000	\b, sh3 BSD
  265 >0	belong&0x03ff0000 0x00950000	\b, ppc BSD (Big Endian)
  266 >0	belong&0x03ff0000 0x00960000	\b, vax BSD (4K pages)
  267 >0	belong&0x03ff0000 0x00970000	\b, mips1 BSD
  268 >0	belong&0x03ff0000 0x00980000	\b, mips2 BSD
  269 >0	belong&0x03ff0000 0x00990000	\b, m88k BSD
  270 >0	belong&0x03ff0000 0x00920000	\b, parisc BSD
  271 >0	belong&0x03ff0000 0x009b0000	\b, sh5/64 BSD
  272 >0	belong&0x03ff0000 0x009c0000	\b, SPARC/64 BSD
  273 >0	belong&0x03ff0000 0x009d0000	\b, amd64 BSD
  274 >0	belong&0x03ff0000 0x009e0000	\b, sh5/32 BSD
  275 >0	belong&0x03ff0000 0x009f0000	\b, ia64 BSD
  276 >0	belong&0x03ff0000 0x00b70000	\b, aarch64 BSD
  277 >0	belong&0x03ff0000 0x00b80000	\b, or1k BSD
  278 >0	belong&0x03ff0000 0x00b90000	\b, Risk-V BSD
  279 >0	belong&0x03ff0000 0x00c80000	\b, hp200 BSD
  280 >0	belong&0x03ff0000 0x012c0000	\b, hp300 BSD
  281 >0	belong&0x03ff0000 0x020b0000	\b, hp800 HP-UX
  282 >0	belong&0x03ff0000 0x020c0000	\b, hp200/hp300 HP-UX
  283 >0	belong&0xfc000000 0x04000000	\b, CPU
  284 >0	belong&0xfc000000 0x08000000	\b, DATA
  285 >0	belong&0xfc000000 0x10000000	\b, STACK
  286 >4	leshort	x			\b, (headersize = %d
  287 >6	leshort	x			\b, segmentsize = %d
  288 >8	lelong	x			\b, segments = %d)
  289 
  290 # little endian only for now.
  291 0	name		ktrace
  292 >4	leshort		7
  293 >>6	leshort		<3		NetBSD ktrace file version %d
  294 >>>12	string		x		from %s
  295 >>>56	string		x		\b, emulation %s
  296 >>>8	lelong		<65536		\b, pid=%d
  297 
  298 56	string		netbsd
  299 >0	use		ktrace
  300 56	string		linux
  301 >0	use		ktrace
  302 56	string		sunos
  303 >0	use		ktrace
  304 56	string		hpux
  305 >0	use		ktrace