From owner-freebsd-questions Sat Jan 2 05:00:18 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA16204 for freebsd-questions-outgoing; Sat, 2 Jan 1999 05:00:18 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gw.one.com.au (gw.one.com.au [203.37.221.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA16196 for ; Sat, 2 Jan 1999 05:00:16 -0800 (PST) (envelope-from raymond@one.com.au) From: raymond@one.com.au Received: from one.com.au (pxx.local [10.18.85.1]) by gw.one.com.au (8.8.8/8.8.8) with SMTP id WAA10155 for freebsd-questions@FreeBSD.ORG; Sat, 2 Jan 1999 22:59:38 +1000 (EST) (envelope-from raymond@one.com.au) Date: Sat, 2 Jan 1999 22:59:38 +1000 (EST) Message-Id: <199901021259.WAA10155@gw.one.com.au> Subject: File magic numbers - cont To: undisclosed-recipients:; Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Message sent at 10:52 PM on 02 Jan 99 by PVX::RAYMOND. Id: 328874. To: freebsd-questions@FreeBSD.ORG I had had a look at man magic and /usr/share/misc/magic - but what I'm doing doesn't seem to fit (at least to my limited understanding). I am creating a file type "MUMPS Database". There is an entry # plus5: file(1) magic for Plus Five's UNIX MUMPS which doesn't describe what I'm doing. Basically... does someone arbitrate src/cmd/file/magdir/* or do I just plug in some random numbers? Ray Newman >Subj: Re: File magic numbers >From: mwm@phone.net >To: raymond@one.com.au >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. > > >On Sat, 2 Jan 1999 raymond@one.com.au wrote: > >> 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