home *** CD-ROM | disk | FTP | other *** search
/ The Best of Mecomp Multimedia 2 / MECOMP-CD-II.iso / amiga / tools / boot / setman / setman.doc < prev    next >
Encoding:
Text File  |  1998-03-18  |  6.1 KB  |  149 lines

  1.                                SetFunction Manager
  2.  
  3.                              SetMan / SetManager V2.0
  4.  
  5.  
  6.   V1.0 : Copyright © 1991,1992 by
  7.  
  8.          Nicola Salmoria
  9.          Via Piemonte 11
  10.          53100 Siena ITALY
  11.  
  12.          Internet: mc6489@mclink.it
  13.  
  14.   V2.0 : Copyright © 1998 by
  15.   
  16.          Eric Sauvageau
  17.          5338 10th Avenue
  18.          Montreal, QC
  19.          H1Y-2G6
  20.          CANADA
  21.          
  22.          (Snail address valid until late spring '98)
  23.  
  24.  
  25.          Internet: merlin@thule.no
  26.                    http://www.thule.no/~merlin/
  27.          
  28. This program is FREEWARE. It is NOT, and will never be, public domain.
  29. Copy it as much as you can (provided no charge is made and the archive is left
  30. intact). It cannot be included in any commercial program without the written
  31. permission of the author.
  32.  
  33.  
  34. REQUIREMENTS
  35. ------------
  36. Since V2.0, SetMan requires Kickstart 2.04 or better to run.  SetManager 
  37. will also require ClassAct 2.0 for its GUI (latest classes can be found 
  38. on the Internet at ftp.warped.com /pub/amiga/classact or 
  39. ftp.thule.no /pub/classact/).  SetManList only requires Kickstart 2.04.
  40.  
  41.  
  42. NOVICE USERS
  43. ------------
  44. The program 'SetMan' should be put in C: and executed as the first command in
  45. the startup-sequence. When I say first, I mean FIRST!!  Run it even before
  46. SetPatch.
  47.  
  48. If you're not expert with the Amiga operating system, all you need to know about
  49. SetMan is that it will, under certain circumstances, avoid GURUs. Read on for
  50. more infos.
  51.  
  52.  
  53.  
  54. EXPERT USERS
  55. ------------
  56. Let's go into details. There's a function in exec.library, whose name is
  57. SetFunction(). You know that Amiga libraries contain a 'jump table', where are
  58. stored the addresses of every function in the library. Library functions are
  59. always executed via the jump table, and NEVER through absolute addressing.
  60. SetFunction() allows the user to modify the jump table, in order to insert a
  61. custom routine in place of the standard one.
  62. For example, one could modify the DisplayBeep() vector to play a sound instead
  63. of flashing the screen.
  64.  
  65. SetFunction() is a very useful feature of the Amiga operating system, but it has
  66. the major drawback that there's no system supervising of concurrent use of the
  67. same vector by different tasks. Under certain circumstances, that can be deadly.
  68. Before removing its custom vector, a program should check that it was not
  69. modified again. However, very few do that, and so if you do not terminate such
  70. program in REVERSE order of when you executed them, you'll probably get a system
  71. crash.
  72.  
  73. SetMan modifies the SetFunction() vector, and inserts a custom routine which
  74. solves the previous problems. It keeps a linked list of all changes to
  75. the jump tables, and allows any program to remove its vector at any time.
  76.  
  77.  
  78. In this archive you will find two additional tools:
  79.  
  80. SetManager - it is a Commodity that will allow you to view the list of all
  81.              modified vectors, with the name of the program which inserted 
  82.              a custom routine, the address of that routine, and the current 
  83.              status.  Status will usually be 'active'; if you double-click 
  84.              on the function name, you can disable it, thus removing the 
  85.              custom function.  The third possible state is 'removed', which 
  86.              only occurs when you don't quit programs in the correct
  87.              order I explained later.  It's there for your information, 
  88.              but is absolutely no problem.  When you exit the other program 
  89.              which uses the same vector, both will disappear from the list.
  90.  
  91. NOTE: modified vectors are shown as 'offset' 'library name'. However, SetManager
  92. is able to read the standard 'xxx_lib.fd' files, provided by Commodore.
  93. Just specify the path where those files are located by using the FDPATH 
  94. argument (by default, FD: will be scanned).  With the help of these  files, 
  95. SetManager will display the true function names, instead of offsets.
  96.  
  97.  
  98. SetManList - a CLI command that lets you list the list of all modified 
  99.              vectors in a CLI, just like SetManager does.  It supports 
  100.              two arguments:  NOFD (do not parse .fd files) and FDPATH 
  101.              (location of your .fd files, FD: being the default).
  102.              You can break the output by pressing Ctrl-C.
  103.  
  104.  
  105. PROGRAMMERS
  106. -----------
  107. To know if SetMan is running, all you have to do is search for a public MsgPort
  108. named "SetMan".  When running, you can safely install and remove patches 
  109. at any time through SetFunction(), SetMan will take care of ensuring that 
  110. any patches applied over yours is properly installed instead of the former 
  111. one.
  112.  
  113.  
  114.  
  115. BUGS AND INCOMPATIBILITIES
  116. --------------------------
  117. There are no known bugs in this version of SetMan.
  118.  
  119. A few more words should be spent on compatibility problems.
  120. Due to the very different procedures followed by the original SetFunction() and
  121. by SetMan, it's not possible to guarantee a 100% compatibility with every
  122. program around. Every effort has been made to avoid every possible problem;
  123. SetMan handles correctly every strange behaviour I could think about; the only
  124. way to confuse SetMan should be using two differnt programs communicating
  125. through a message port and doing very strange things. I'm almost sure such
  126. things things should never happen.
  127.  
  128. I've encountered a problem with a program called 'TurboTopaz', which refuses to
  129. quit saying that 'Vector has been changed'. That's true, 'cos SetMan puts a
  130. function of its own ahead of the custom one; if TurboTopaz used SetFunction(),
  131. it would receive in return the value it expects, but it reads directly the jump
  132. table, something I believe is not supported by Commodore.
  133.  
  134. I use a lot of programs which call SetFunction(), and none of them has problems
  135. with SetMan.
  136.  
  137.  
  138.  
  139. ACKNOWLEDGEMENT
  140. ---------------
  141. I'd like to thank Marco Ciuchini who pointed out an important incompatibility
  142. problem which I have been able to completely remove.
  143.  
  144. (Eric: I'd like to thank Nicola for writing SetMan, and for sending me the 
  145. sources so I could do some work on it.  He's the real man behind SetMan, 
  146. I merely updated it, especialy SetManager which I rewrote to offer some 
  147. modern features it was missing like turning it into a Commodity and giving 
  148. it a more advanced GUI.)
  149.