From owner-freebsd-questions Sat Jan 2 04:24:08 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA13629 for freebsd-questions-outgoing; Sat, 2 Jan 1999 04:24:08 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from guru.phone.net (guru.phone.net [209.157.82.120]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id EAA13624 for ; Sat, 2 Jan 1999 04:24:06 -0800 (PST) (envelope-from mwm@phone.net) Received: (qmail 22373 invoked by uid 100); 2 Jan 1999 12:23:42 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 2 Jan 1999 12:23:42 -0000 Date: Sat, 2 Jan 1999 04:23:42 -0800 (PST) From: Mike Meyer To: raymond@one.com.au cc: questions@FreeBSD.ORG Subject: Re: File magic numbers In-Reply-To: <199901021217.WAA10118@gw.one.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG There aren't any such magic numbers. A simple "man file" tells you the information file uses to determine file types is in /usr/share/misc/magic. Doing "man magic" provides the documentation on the format for that file. Read through that, and figure out if your file format can be identified by what it does without adding hooks specifically for that. Date: Sat, 2 Jan 1999 22:17:21 +1000 (EST) > From: raymond@one.com.au > To: undisclosed-recipients: ; > Subject: File magic numbers > > Message sent at 10:09 PM on 02 Jan 99 by PVX::RAYMOND. Id: 328852. > To: freebsd-questions@FreeBSD.ORG > > I am creating a new type of data file that I would like to be able > to be identified by the file command. Could you please tell me who > (if anyone) assigns new "magic numbers" for file types? > > Ray Newman > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message