Subject: bin/422: file(1) does not recognize 4.4BSD binaries
To: None <gnats-admin>
From: jason downs <downsj@CSOS.ORST.EDU>
List: netbsd-bugs
Date: 08/18/1994 15:20:06
>Number:         422
>Category:       bin
>Synopsis:       file(1) does not recognize 4.4BSD binaries
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 18 15:20:05 1994
>Originator:     jason downs
>Organization:
spherical domain of death and darkness
>Release:        NetBSD 1.0_BETA
>Environment:
	
System: NetBSD foundation 1.0_BETA NetBSD 1.0_BETA (FOUNDATION) #1: Mon Aug 8 14:05:59 PDT 1994 thorpej@foundation:/tmp_mnt/nemesis/usr/src/sys/arch/hp300/compile/FOUNDATION hp300


>Description:
	The hp300 port can run 4.4BSD binaries; I am running a rather large
	one (the X server) at the moment.  A slight annoyance is that file(1)
	still does not know the HP300 BSD binary magic numbers.
>How-To-Repeat:
	run file(1) on an HP300 BSD binary.
>Fix:
	Add something like the following to /usr/src/usr.bin/file/magdir
	(under the name hpBSD or somesuch):

# hpBSD magic numbers
0	beshort		200	old hp200 BSD
>2	beshort		0407	impure binary
>2	beshort		0410	read-only binary
>2	beshort		0413	demand paged binary
0	beshort		300	hp300 BSD
>2	beshort		0407	impure binary
>2	beshort		0410	read-only binary
>2	beshort		0413	demand paged binary

>Audit-Trail:
>Unformatted:


------------------------------------------------------------------------------