xref: /freebsd/contrib/file/TODO (revision 5f0216bd883edee71bf81051e3c20505e4820903)
1b6cee71dSXin LIMost TODOs live in the TODO section of doc/file.man (i.e. file(1)).
2b6cee71dSXin LIThey are more visible there, so please add any further TODOs to that
3b6cee71dSXin LIfile, not here. More speculative material can live here.
47dbb948bSDavid E. O'Brien
580c86c36SDavid E. O'Brien(This change was made when Reuben Thomas noticed that all the bugs
680c86c36SDavid E. O'Brienlisted in the BUGS section of the man page had been fixed!)
7b6cee71dSXin LI
8b6cee71dSXin LI---
9b6cee71dSXin LI
10b6cee71dSXin LIIt would be nice to simplify file considerably. For example,
11b6cee71dSXin LIreimplement the apprentice and non-pattern magic methods in Python,
12b6cee71dSXin LIand compile the magic patterns to a giant regex (or something similar;
13b6cee71dSXin LImaybe using Ragel (http://www.complang.org/ragel/)) so that only a
14b6cee71dSXin LIsmall amount of C is needed (because fast execution is typically only
15b6cee71dSXin LIrequired for soft magic, not the more detailed information given by
16b6cee71dSXin LIhard-wired routines). In this regard, note that hplip, which is
17b6cee71dSXin LIBSD-licensed, has a magic reimplementation in Python.
18c2931133SXin LI
19c2931133SXin LIRead the kerberos magic entry for more ideas.
20*5f0216bdSXin LI
21*5f0216bdSXin LIWrite a string merger to make magic entry sizes dynamic.
22*5f0216bdSXin LIStrings will be converted to offsets from the string table.
23