home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!caen!sdd.hp.com!usc!elroy.jpl.nasa.gov!jato!jdickson
- From: jdickson@jato.jpl.nasa.gov (Jeff Dickson)
- Subject: Re: Debugging a filesystem handler...
- Message-ID: <1992Sep2.205252.13120@jato.jpl.nasa.gov>
- Organization: Jet Propulsion Laboratory
- References: <1992Aug31.061928.18053@softway.sw.oz.au> <1992Sep2.113512.25406@rhrk.uni-kl.de>
- Date: Wed, 2 Sep 1992 20:52:52 GMT
- Lines: 46
-
- In article <1992Sep2.113512.25406@rhrk.uni-kl.de> apel@physik.uni-kl.de (Martin Apel (SAGA)) writes:
- >peterc@suite.sw.oz.au (Peter Chubb) writes:
- >:
- >: I'm trying to write a new filesystem handler. Example code that I've
- >: looked at (RAW and the disk-handler from earlier Fish disks) debug by
- >: opening a CON: window, then sending CMD_WRITE messages to the
- >: console's message port. This worked under WB1.3 (last time I tried).
- >:
- >: This no longer seems to work under WB2.05. Instead the console device
- >: appears to hang -- no new consoles can be opened.
- >: I'm using SAS C 5.10a. The code looks something like:
- >:
- >: #include <proto/all.h>
- >: struct ExecLibrary *SysBase;
- >: struct DosLibrary *DosBase;
- >: extern struct ExecLibrary * __far AbsExecBase;
- >: BPTR debugFH;
- >:
- >: long __saveds
- >: handler()
- >: {
- >: SysBase = AbsExecBase;
- >: if ((DosBase = OpenLibrary(DOSNAME, 0)) == NULL)
- >: return DOSFALSE;
- >: debugFH = Open("CON:0/0/640/200/Handler Debug", MODE_NEWFILE);
- >:
- >: fsmsg = taskwait();
- >: ....
- >: }
- >:
- >: (I'm typing this in from memory; the actual code is at home!).
- >:
- >: Does anyone know why this no longer works?
- >:
- >:
- >: Regards,
- >:
- >: - Peter Chubb
-
- Handlers suffer from the same limitation tasks do in that most of
- the routines in the DOS library cannot be used. V1.3 must have been pretty
- lax in this area as I used to be able to get away with some similiar shit
- myself. Beginning with 2.0, C= tightened up on the reins.
-
- jeff
-
-