libfile and MIME integration

Ian F. Darwin ian at darwinsys.com
Thu Mar 20 11:33:53 EST 2003


> I looked at [mkhybrid libfile], and I have discarded their api. It does not
> have a namespace (consistent naming of functions), does not report
> errors properly, and has no way to pass in flags.  In other words,
> it is nothing more than a single afternoon's hack.  I am still
> working on integrating patches from libmagic that was sent to me
> via e-mail.

Well, thanks for checking.

I have a new file "binmagic" which calls is_tar and does a few other
things that need more work than can easily be done in the magic file
at present. Is it OK if I commit this file but not yet commit the changes
to main to hook it in, so people can get a look at it? I don't know how
you normally coordinate CVS changes and I don't want to interfere
with the work you're doing.

The "binmagic" stuff is, e.g., is_tar, getting the sizes of various
binary image files (jpeg), reading ISO9660 CD's and printing
various fields from the header neatly, etc.

Thanks
Ian




More information about the File mailing list