head	1.2;
access;
symbols
	RELENG_4_11_0_RELEASE:1.1.1.3.6.1
	RELENG_4_11:1.1.1.3.6.1.0.18
	RELENG_4_11_BP:1.1.1.3.6.1
	RELENG_4_10_0_RELEASE:1.1.1.3.6.1
	RELENG_4_10:1.1.1.3.6.1.0.16
	RELENG_4_10_BP:1.1.1.3.6.1
	RELENG_4_9_0_RELEASE:1.1.1.3.6.1
	RELENG_4_9:1.1.1.3.6.1.0.14
	RELENG_4_9_BP:1.1.1.3.6.1
	RELENG_4_8_0_RELEASE:1.1.1.3.6.1
	RELENG_4_8:1.1.1.3.6.1.0.12
	RELENG_4_8_BP:1.1.1.3.6.1
	RELENG_4_7_0_RELEASE:1.1.1.3.6.1
	RELENG_4_7:1.1.1.3.6.1.0.10
	RELENG_4_7_BP:1.1.1.3.6.1
	RELENG_4_6_2_RELEASE:1.1.1.3.6.1
	RELENG_4_6_1_RELEASE:1.1.1.3.6.1
	RELENG_4_6_0_RELEASE:1.1.1.3.6.1
	RELENG_4_6:1.1.1.3.6.1.0.8
	RELENG_4_6_BP:1.1.1.3.6.1
	RELENG_4_5_0_RELEASE:1.1.1.3.6.1
	RELENG_4_5:1.1.1.3.6.1.0.6
	RELENG_4_5_BP:1.1.1.3.6.1
	RELENG_4_4_0_RELEASE:1.1.1.3.6.1
	RELENG_4_4:1.1.1.3.6.1.0.4
	RELENG_4_4_BP:1.1.1.3.6.1
	RELENG_4_3_0_RELEASE:1.1.1.3.6.1
	RELENG_4_3:1.1.1.3.6.1.0.2
	RELENG_4_3_BP:1.1.1.3.6.1
	RELENG_4_2_0_RELEASE:1.1.1.3
	RELENG_4_1_1_RELEASE:1.1.1.3
	PRE_SMPNG:1.1.1.3
	RELENG_4_1_0_RELEASE:1.1.1.3
	RELENG_3_5_0_RELEASE:1.1.1.3
	RELENG_4_0_0_RELEASE:1.1.1.3
	RELENG_4:1.1.1.3.0.6
	RELENG_4_BP:1.1.1.3
	RELENG_3_4_0_RELEASE:1.1.1.3
	RELENG_3_3_0_RELEASE:1.1.1.3
	RELENG_3_2_PAO:1.1.1.3.0.4
	RELENG_3_2_PAO_BP:1.1.1.3
	RELENG_3_2_0_RELEASE:1.1.1.3
	RELENG_3_1_0_RELEASE:1.1.1.3
	RELENG_3:1.1.1.3.0.2
	RELENG_3_BP:1.1.1.3
	RELENG_2_2_8_RELEASE:1.1.1.2.2.1
	RELENG_3_0_0_RELEASE:1.1.1.3
	RELENG_2_2_7_RELEASE:1.1.1.2.2.1
	RELENG_2_2_6_RELEASE:1.1.1.2.2.1
	RELENG_2_2_5_RELEASE:1.1.1.2.2.1
	RELENG_2_2_2_RELEASE:1.1.1.2
	RELENG_2_2_1_RELEASE:1.1.1.2
	file_3_22:1.1.1.3
	RELENG_2_2_0_RELEASE:1.1.1.2
	RELENG_2_1_7_RELEASE:1.1.1.1
	RELENG_2_1_6_1_RELEASE:1.1.1.1
	RELENG_2_1_6_RELEASE:1.1.1.1
	RELENG_2_2:1.1.1.2.0.2
	RELENG_2_2_BP:1.1.1.2
	RELENG_2_1_5_RELEASE:1.1.1.1
	file_3_19:1.1.1.2
	RELENG_2_1_0_RELEASE:1.1.1.1
	RELENG_2_1_0:1.1.1.1.0.6
	RELENG_2_1_0_BP:1.1.1.1
	RELENG_2_0_5_RELEASE:1.1.1.1
	RELENG_2_0_5:1.1.1.1.0.4
	RELENG_2_0_5_BP:1.1.1.1
	RELENG_2_0_5_ALPHA:1.1.1.1
	RELEASE_2_0:1.1.1.1
	BETA_2_0:1.1.1.1
	ALPHA_2_0:1.1.1.1.0.2
	file_3_14:1.1.1.1
	DARWIN:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2000.11.05.09.06.04;	author obrien;	state dead;
branches;
next	1.1;

1.1
date	94.09.03.19.16.25;	author csgr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	94.09.03.19.16.26;	author csgr;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	96.01.23.12.27.38;	author mpp;	state Exp;
branches
	1.1.1.2.2.1;
next	1.1.1.3;

1.1.1.3
date	97.03.18.17.59.20;	author mpp;	state Exp;
branches
	1.1.1.3.6.1;
next	;

1.1.1.3.6.1
date	2000.11.29.19.32.50;	author obrien;	state dead;
branches;
next	;

1.1.1.2.2.1
date	97.08.18.18.59.40;	author jdp;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Switch over to using the Christos Zoulas maintained version in contrib/
This also gives use the same exact results as NetBSD, thus sharing more
code with our bretheren.
@
text
@#
# magic.hp: Hewlett Packard Magic
#
# XXX - somebody should figure out whether any byte order needs to be
# applied to the "TML" stuff; I'm assuming the Apollo stuff is
# big-endian as it was mostly 68K-based.
#
# HP-PA is big-endian, so it (and "800", which is *also* HP-PA-based; I
# assume "HPPA-RISC1.1" really means "HP-PA Version 1.1", which first
# showed up in the 700 series, although later 800 series machines are,
# I think, based on the PA7100 which implements HP-PA 1.1) are flagged
# as big-endian.
#
# I think the 500 series was the old stack-based machines, running a
# UNIX environment atop the "SUN kernel"; dunno whether it was
# big-endian or little-endian.
#
# I'm guessing that the 200 series was 68K-based; the 300 and 400 series
# are.
#
# The "misc" stuff needs a byte order; the archives look suspiciously
# like the old 177545 archives (0xff65 = 0177545).
#
#### Old Apollo stuff
0	beshort		0627		Apollo m68k COFF executable
>18	beshort		^040000		not stripped 
>22	beshort		>0		- version %ld
0	beshort		0624		apollo a88k COFF executable
>18	beshort		^040000		not stripped 
>22	beshort		>0		- version %ld
0       long            01203604016     TML 0123 byte-order format
0       long            01702407010     TML 1032 byte-order format
0       long            01003405017     TML 2301 byte-order format
0       long            01602007412     TML 3210 byte-order format
#### HPPA
0	belong 		0x02100106	HPPA-RISC1.1 relocatable object
0	belong 		0x02100107	HPPA-RISC1.1 executable
>(144)	belong		0x054ef630	dynamically linked
>96	belong		>0		-not stripped

0	belong 		0x02100108	HPPA-RISC1.1 shared executable
>(144)	belong		0x054ef630	dynamically linked
>96	belong		>0		-not stripped

0	belong 		0x0210010b	HPPA-RISC1.1 demand-load executable
>(144)	belong		0x054ef630	dynamically linked
>96	belong		>0		-not stripped

0	belong 		0x0210010e	HPPA-RISC1.1 shared library
>96	belong		>0		-not stripped

0	belong 		0x0210010d	HPPA-RISC1.1 dynamic load library
>96	belong		>0		-not stripped

#### 800
0	belong 		0x020b0106	HP s800 relocatable object

0	belong 		0x020b0107	HP s800 executable
>(144)	belong		0x054ef630	dynamically linked
>96	belong		>0		-not stripped

0	belong 		0x020b0108	HP s800 shared executable
>(144)	belong		0x054ef630	dynamically linked
>96	belong		>0		-not stripped

0	belong 		0x020b010b	HP s800 demand-load executable
>(144)	belong		0x054ef630	dynamically linked
>96	belong		>0		-not stripped

0	belong 		0x020b010e	HP s800 shared library
>96	belong		>0		-not stripped

0	belong 		0x020b010d	HP s800 dynamic load library
>96	belong		>0		-not stripped

0	belong		0x213c6172	archive file
>68	belong 		0x020b0619	-HP s800 relocatable library

#### 500
0	long		0x02080106	HP s500 relocatable executable
>16	long		>0		-version %ld

0	long		0x02080107	HP s500 executable
>16	long		>0		-version %ld

0	long		0x02080108	HP s500 pure executable
>16	long		>0		-version %ld

#### 200
0	belong 		0x020c0108	HP s200 pure executable
>4	beshort		>0		-version %ld
>8	belong		&0x80000000	save fp regs
>8	belong		&0x40000000	dynamically linked
>8	belong		&0x20000000	debuggable
>36	belong		>0		not stripped

0	belong		0x020c0107	HP s200 executable
>4	beshort		>0		-version %ld
>8	belong		&0x80000000	save fp regs
>8	belong		&0x40000000	dynamically linked
>8	belong		&0x20000000	debuggable
>36	belong		>0		not stripped

0	belong		0x020c010b	HP s200 demand-load executable
>4	beshort		>0		-version %ld
>8	belong		&0x80000000	save fp regs
>8	belong		&0x40000000	dynamically linked
>8	belong		&0x20000000	debuggable
>36	belong		>0		not stripped

0	belong		0x020c0106	HP s200 relocatable executable
>4	beshort		>0		-version %ld
>6	beshort		>0		-highwater %d
>8	belong		&0x80000000	save fp regs
>8	belong		&0x20000000	debuggable
>8	belong		&0x10000000	PIC

0	belong 		0x020a0108	HP s200 (2.x release) pure executable
>4	beshort		>0		-version %ld
>36	belong		>0		not stripped

0	belong		0x020a0107	HP s200 (2.x release) executable
>4	beshort		>0		-version %ld
>36	belong		>0		not stripped

0	belong		0x020c010e	HP s200 shared library
>4	beshort		>0		-version %ld
>6	beshort		>0		-highwater %d
>36	belong		>0		not stripped

0	belong		0x020c010d	HP s200 dynamic load library
>4	beshort		>0		-version %ld
>6	beshort		>0		-highwater %d
>36	belong		>0		not stripped

#### MISC
0	long		0x0000ff65	HP old archive
0	long		0x020aff65	HP s200 old archive
0	long		0x020cff65	HP s200 old archive
0	long		0x0208ff65	HP s500 old archive

0	long		0x015821a6	HP core file

0	long		0x4da7eee8	HP-WINDOWS font
>8	byte		>0		-version %ld
0	string		Bitmapfile	HP Bitmapfile

0	string		IMGfile	CIS 	compimg HP Bitmapfile
0	short		0x8000		lif file
0	long		0x020c010c	compiled Lisp

0	string		msgcat01	HP NLS message catalog,
>8	long		>0		%d messages

# addendum to /etc/magic with HP-48sx file-types by phk@@data.fls.dk 1jan92
0	string		HPHP48-		HP48 binary
>7	byte		>0		- Rev %c
>8	short		0x1129		(ADR)
>8	short		0x3329		(REAL)
>8	short		0x5529		(LREAL)
>8	short		0x7729		(COMPLX)
>8	short		0x9d29		(LCOMPLX)
>8	short		0xbf29		(CHAR)
>8	short		0xe829		(ARRAY)
>8	short		0x0a2a		(LNKARRAY)
>8	short		0x2c2a		(STRING)
>8	short		0x4e2a		(HXS)
>8	short		0x742a		(LIST)
>8	short		0x962a		(DIR)
>8	short		0xb82a		(ALG)
>8	short		0xda2a		(UNIT)
>8	short		0xfc2a		(TAGGED)
>8	short		0x1e2b		(GROB)
>8	short		0x402b		(LIB)
>8	short		0x622b		(BACKUP)
>8	short		0x882b		(LIBDATA)
>8	short		0x9d2d		(PROG)
>8	short		0xcc2d		(CODE)
>8	short		0x482e		(GNAME)
>8	short		0x6d2e		(LNAME)
>8	short		0x922e		(XLIB)
0	string		%%HP:		HP48 text
>6	string		T(0)		- T(0)
>6	string		T(1)		- T(1)
>6	string		T(2)		- T(2)
>6	string		T(3)		- T(3)
>10	string		A(D)		A(D)
>10	string		A(R)		A(R)
>10	string		A(G)		A(G)
>14	string		F(.)		F(.);
>14	string		F(,)		F(,);
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@Bring in file 3.14 by Ian Darwin (and Christos Zoulas)

The following files were moved to different names:
- file.man -> file.1
- magic.man -> magic.5

The following file was removed:
- Magdir/Makefile
@
text
@@


1.1.1.2
log
@Upgrade to file version 3.19.
@
text
@d1 2
a2 3

#------------------------------------------------------------------------------
# hp:  file(1) magic for Hewlett Packard machines (see also "printer")
d18 2
a19 10
# Daniel Quinlan (quinlan@@yggdrasil.com): hp200 machines are 68010 based;
# hp300 are 68020+68881 based; hp400 are also 68k.  The following basic
# HP magic is useful for reference, but using "long" magic is a better
# practice in order to avoid collisions.
#
# 0	beshort		200		hp200 (68010) BSD binary
# 0	beshort		300		hp300 (68020+68881) BSD binary
# 0	beshort		0x20c		hp200/300 HP-UX binary
# 0	beshort		0x20b		hp800 HP-UX binary

d26 1
a26 1
>18	beshort		^040000		not stripped
d29 1
a29 1
>18	beshort		^040000		not stripped
d39 1
a39 1
>96	belong		>0		- not stripped
d43 1
a43 1
>96	belong		>0		- not stripped
d47 1
a47 1
>96	belong		>0		- not stripped
d50 1
a50 1
>96	belong		>0		- not stripped
d53 1
a53 1
>96	belong		>0		- not stripped
d60 1
a60 1
>96	belong		>0		- not stripped
d64 1
a64 1
>96	belong		>0		- not stripped
d68 1
a68 1
>96	belong		>0		- not stripped
d71 1
a71 1
>96	belong		>0		- not stripped
d74 1
a74 1
>96	belong		>0		- not stripped
d77 1
a77 1
>68	belong 		0x020b0619	- HP s800 relocatable library
d81 1
a81 1
>16	long		>0		- version %ld
d84 1
a84 1
>16	long		>0		- version %ld
d87 1
a87 1
>16	long		>0		- version %ld
d91 1
a91 1
>4	beshort		>0		- version %ld
d98 1
a98 1
>4	beshort		>0		- version %ld
d105 1
a105 1
>4	beshort		>0		- version %ld
d112 2
a113 2
>4	beshort		>0		- version %ld
>6	beshort		>0		- highwater %d
d119 1
a119 1
>4	beshort		>0		- version %ld
d123 1
a123 1
>4	beshort		>0		- version %ld
d127 2
a128 2
>4	beshort		>0		- version %ld
>6	beshort		>0		- highwater %d
d132 2
a133 2
>4	beshort		>0		- version %ld
>6	beshort		>0		- highwater %d
d145 1
a145 1
>8	byte		>0		- version %ld
a148 1
# XXX - see "lif"
a191 11

# hpBSD magic numbers
0	beshort		200		hp200 (68010) BSD
>2	beshort		0407		impure binary
>2	beshort		0410		read-only binary
>2	beshort		0413		demand paged binary
0	beshort		300		hp300 (68020+68881) BSD
>2	beshort		0407		impure binary
>2	beshort		0410		read-only binary
>2	beshort		0413		demand paged binary

@


1.1.1.2.2.1
log
@Sync with -current.
@
text
@d9 6
a23 8
# Guy Harris (guy@@netapp.com): some additions to this list came from
# HP-UX 10.0's "/usr/include/sys/unistd.h" (68030, 68040, PA-RISC 1.1,
# 1.2, and 2.0).  The 1.2 and 2.0 stuff isn't in the HP-UX 10.0
# "/etc/magic", though, except for the "archive file relocatable library"
# stuff, and the 68030 and 68040 stuff isn't there at all - are they not
# used in executables, or have they just not yet updated "/etc/magic"
# completely?
#
d27 1
a27 6
# 0	beshort		0x20d		hp400 (68030) HP-UX binary
# 0	beshort		0x20e		hp400 (68040?) HP-UX binary
# 0	beshort		0x20b		PA-RISC1.0 HP-UX binary
# 0	beshort		0x210		PA-RISC1.1 HP-UX binary
# 0	beshort		0x211		PA-RISC1.2 HP-UX binary
# 0	beshort		0x214		PA-RISC2.0 HP-UX binary
d44 3
a46 4
#### PA-RISC
0	belong 		0x02100106	PA-RISC1.1 relocatable object
0	belong 		0x02100107	PA-RISC1.1 executable
>168	belong		&=0x00000004	dynamically linked
d50 1
a50 2
0	belong 		0x02100108	PA-RISC1.1 shared executable
>168	belong&0x4	0x4		dynamically linked
d54 1
a54 2
0	belong 		0x0210010b	PA-RISC1.1 demand-load executable
>168	belong&0x4	0x4		dynamically linked
d58 1
a58 1
0	belong 		0x0210010e	PA-RISC1.1 shared library
d61 1
a61 1
0	belong 		0x0210010d	PA-RISC1.1 dynamic load library
d65 1
a65 1
0	belong 		0x020b0106	PA-RISC1.0 relocatable object
d67 1
a67 2
0	belong 		0x020b0107	PA-RISC1.0 executable
>168	belong&0x4	0x4		dynamically linked
d71 1
a71 2
0	belong 		0x020b0108	PA-RISC1.0 shared executable
>168	belong&0x4	0x4		dynamically linked
d75 1
a75 2
0	belong 		0x020b010b	PA-RISC1.0 demand-load executable
>168	belong&0x4	0x4		dynamically linked
d79 1
a79 1
0	belong 		0x020b010e	PA-RISC1.0 shared library
d82 1
a82 1
0	belong 		0x020b010d	PA-RISC1.0 dynamic load library
d86 1
a86 4
>68	belong 		0x020b0619	- PA-RISC1.0 relocatable library
>68	belong	 	0x02100619	- PA-RISC1.1 relocatable library
>68	belong 		0x02110619	- PA-RISC1.2 relocatable library
>68	belong 		0x02140619	- PA-RISC2.0 relocatable library
d159 1
a159 1
#0	short		0x8000		lif file
@


1.1.1.3
log
@Upgrade to file version 3.22.

Obtained from: ftp://ftp.deshaw.com/pub/file/file-3.22.tar.gz
@
text
@d9 6
a23 8
# Guy Harris (guy@@netapp.com): some additions to this list came from
# HP-UX 10.0's "/usr/include/sys/unistd.h" (68030, 68040, PA-RISC 1.1,
# 1.2, and 2.0).  The 1.2 and 2.0 stuff isn't in the HP-UX 10.0
# "/etc/magic", though, except for the "archive file relocatable library"
# stuff, and the 68030 and 68040 stuff isn't there at all - are they not
# used in executables, or have they just not yet updated "/etc/magic"
# completely?
#
d27 1
a27 6
# 0	beshort		0x20d		hp400 (68030) HP-UX binary
# 0	beshort		0x20e		hp400 (68040?) HP-UX binary
# 0	beshort		0x20b		PA-RISC1.0 HP-UX binary
# 0	beshort		0x210		PA-RISC1.1 HP-UX binary
# 0	beshort		0x211		PA-RISC1.2 HP-UX binary
# 0	beshort		0x214		PA-RISC2.0 HP-UX binary
d44 3
a46 4
#### PA-RISC
0	belong 		0x02100106	PA-RISC1.1 relocatable object
0	belong 		0x02100107	PA-RISC1.1 executable
>168	belong		&=0x00000004	dynamically linked
d50 1
a50 2
0	belong 		0x02100108	PA-RISC1.1 shared executable
>168	belong&0x4	0x4		dynamically linked
d54 1
a54 2
0	belong 		0x0210010b	PA-RISC1.1 demand-load executable
>168	belong&0x4	0x4		dynamically linked
d58 1
a58 1
0	belong 		0x0210010e	PA-RISC1.1 shared library
d61 1
a61 1
0	belong 		0x0210010d	PA-RISC1.1 dynamic load library
d65 1
a65 1
0	belong 		0x020b0106	PA-RISC1.0 relocatable object
d67 1
a67 2
0	belong 		0x020b0107	PA-RISC1.0 executable
>168	belong&0x4	0x4		dynamically linked
d71 1
a71 2
0	belong 		0x020b0108	PA-RISC1.0 shared executable
>168	belong&0x4	0x4		dynamically linked
d75 1
a75 2
0	belong 		0x020b010b	PA-RISC1.0 demand-load executable
>168	belong&0x4	0x4		dynamically linked
d79 1
a79 1
0	belong 		0x020b010e	PA-RISC1.0 shared library
d82 1
a82 1
0	belong 		0x020b010d	PA-RISC1.0 dynamic load library
d86 1
a86 4
>68	belong 		0x020b0619	- PA-RISC1.0 relocatable library
>68	belong	 	0x02100619	- PA-RISC1.1 relocatable library
>68	belong 		0x02110619	- PA-RISC1.2 relocatable library
>68	belong 		0x02140619	- PA-RISC2.0 relocatable library
d159 1
a159 1
#0	short		0x8000		lif file
@


1.1.1.3.6.1
log
@MFC: switch over to using the Christos Zoulas maintained version in contrib/
@
text
@@

