Good practices regarding MIME type

William Orr will at worrbase.com
Thu Dec 10 21:28:17 GMT 2020


Hey,

Afaik, OpenBSD doesn't ship a libmagic implementation by default, but it does ship a version of file(1) as well as a magic(5) db that you can look at. If you look at the source of the file command, you might be able to work out how to make use of the file(5) db or just lift the code from there.

Alternatively, libmagic is in ports.

Hope that helps!


More information about the Gemini mailing list