Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jan 1999 22:59:38 +1000 (EST)
From:      raymond@one.com.au
To:        undisclosed-recipients:;
Subject:   File magic numbers - cont
Message-ID:  <199901021259.WAA10155@gw.one.com.au>

next in thread | raw e-mail | index | archive | help
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.
>
>        <mike
>
>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901021259.WAA10155>