summaryrefslogtreecommitdiffstats
path: root/contrib/file/TODO
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-12-14 13:59:40 -0200
committerRenato Botelho <renato@netgate.com>2016-12-14 13:59:40 -0200
commitcc9fac304cafadab4656653aa1a62fdad74b4e94 (patch)
tree43fee446af0c829986548dcbe6862d3ac31bae2e /contrib/file/TODO
parent812767d2bb4e201b4f826fd31924d2cafb8fe0ae (diff)
parent6d3cdf0ab519f1b7bad6bd132eda48242f0ff7c8 (diff)
downloadFreeBSD-src-cc9fac304cafadab4656653aa1a62fdad74b4e94.zip
FreeBSD-src-cc9fac304cafadab4656653aa1a62fdad74b4e94.tar.gz
Merge remote-tracking branch 'origin/stable/10' into devel
Diffstat (limited to 'contrib/file/TODO')
-rw-r--r--contrib/file/TODO20
1 files changed, 17 insertions, 3 deletions
diff --git a/contrib/file/TODO b/contrib/file/TODO
index 5c2ed49..78890cf 100644
--- a/contrib/file/TODO
+++ b/contrib/file/TODO
@@ -6,7 +6,6 @@ file, not here. More speculative material can live here.
listed in the BUGS section of the man page had been fixed!)
---
-
It would be nice to simplify file considerably. For example,
reimplement the apprentice and non-pattern magic methods in Python,
and compile the magic patterns to a giant regex (or something similar;
@@ -15,8 +14,23 @@ small amount of C is needed (because fast execution is typically only
required for soft magic, not the more detailed information given by
hard-wired routines). In this regard, note that hplip, which is
BSD-licensed, has a magic reimplementation in Python.
-
+---
Read the kerberos magic entry for more ideas.
-
+---
Write a string merger to make magic entry sizes dynamic.
Strings will be converted to offsets from the string table.
+---
+Programming language support, we can introduce the concept of a group
+of rules where n rules need to match before the rule is positive. This
+could require structural changes to the matching code :-(
+
+0 group 2 # require 2 matches
+# rule 1
+>0 ....
+...
+# rule 2
+>0 ....
+...
+
+christos
+
OpenPOWER on IntegriCloud