home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17339 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.7 KB

  1. Path: sparky!uunet!mcsun!sunic!dkuug!diku!bombadil
  2. From: bombadil@diku.dk (Kristian Nielsen)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Getting a valid FileSysStartupMsg pointers.
  5. Message-ID: <1992Dec14.145907.3739@odin.diku.dk>
  6. Date: 14 Dec 92 14:59:07 GMT
  7. References: <1992Dec13.030020.13319@mail.cornell.edu> <37848@cbmvax.commodore.com>
  8. Sender: bombadil@rimfaxe.diku.dk
  9. Organization: Department of Computer Science, U of Copenhagen
  10. Lines: 25
  11.  
  12. jesup@cbmvax.commodore.com (Randell Jesup) writes:
  13.  
  14. >chris@alchemy.tn.cornell.edu writes:
  15. >>However, apparently dol_StartUp does NOT always point to a valid
  16. >>FileSystemStartupMsg (hereafter abbreviated FSSM) even though IsFileSystem()
  17. >>returns true.  I have particularly found this to be the case on devices
  18.  
  19. >    This is an ugly area.  Unfortunately, early in the Amiga days (or
  20. >perhaps back in tripos), someone though strings would be neat to hold
  21. >parameters for handler startups.  So they implemented BSTRs as an alternative
  22. >to FSSMs.  They also thought that passing small integers would make it slightly
  23. >easier on whoever was writing the port-handler (SER/PAR/PRT).  So they also
  24. >added support to pass an integer.  So, startup can hold 3 things: an integer,
  25. >an BPTR to a BSTR, or a pointer to an FSSM (actually I think it's a BPTR).
  26. >Ugly, eh?
  27.  
  28. YES! I've found this out the hard way while developing XFH: (a
  29. compressing file system handler).I  pass a string to the handler in the
  30. 'Startup' field of the mountlist. Even system programs like C:Info seem
  31. to try to interpret this as a FSSM and cause enforcer hits.
  32.  
  33. I was under the impression that passing a string to a handler as startup
  34. is a completely legal thing to do, but perhaps this is not so?
  35.  
  36.     - Kristian (author of XFH).
  37.