]> granicus.if.org Git - file/commitdiff
Add code outline, ok Christos
authorIan Darwin <ian@darwinsys.com>
Thu, 1 Jun 2006 18:19:41 +0000 (18:19 +0000)
committerIan Darwin <ian@darwinsys.com>
Thu, 1 Jun 2006 18:19:41 +0000 (18:19 +0000)
MAINT

diff --git a/MAINT b/MAINT
index 614c7624f43a672c1c292bf2e57d8ec291bb4be3..2a51470ddb74bb3a3df95fc47c00f3a400327324 100644 (file)
--- 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