summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Darwin <ian@darwinsys.com>2006-06-01 18:19:41 +0000
committerIan Darwin <ian@darwinsys.com>2006-06-01 18:19:41 +0000
commit9f124c1d83d650280b19c610499b1add3c52f0a2 (patch)
tree9a6cb4ec32269d609f4ea624f7c1e6c8e6a316d7
parent77da0f412bc6a5fda7e45a44784e453dc0477fb5 (diff)
downloadfile-git-9f124c1d83d650280b19c610499b1add3c52f0a2.tar.gz
Add code outline, ok Christos
-rw-r--r--MAINT24
1 files changed, 22 insertions, 2 deletions
diff --git a/MAINT b/MAINT
index 614c7624..2a51470d 100644
--- a/MAINT
+++ b/MAINT
@@ -1,4 +1,4 @@
-$Id: MAINT,v 1.6 2006/05/03 18:48:33 christos Exp $
+$Id: MAINT,v 1.7 2006/06/01 18:19:41 ian Exp $
Maintenance notes:
@@ -28,8 +28,28 @@ you need to make changes, please add a patch file next to the
distribution tar, and a README file that clearly explains what you
are trying to fix.
-
Thank you for your assistance and cooperation.
+Code Overview
+
+This is a rough idea of the control flow from the main program:
+
+file.c main()
+file.c process (called for each file)
+ printf file name
+magic.c magic_file()
+fsmagic.c file_fsmagic()
+ (handles statbuf modes for DEV)
+ (handles statbuf modes for executable &c.
+ reads data from file.
+funcs.c: file_buffer()
+compress.c file_zmagic()
+is_tar.c file_is_tar()
+softmagic.c file_softmagic()
+ match() - looks for match against main magic database
+ascmagic.c file_ascmagic()
+readelf.c file_tryelf()
+ "unknown"
+
Christos Zoulas
christos@astron.com