home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!munnari.oz.au!metro!basser.cs.su.oz.au!swift!suite.sw.oz.au!peterc
- From: peterc@suite.sw.oz.au (Peter Chubb)
- Subject: Debugging a filesystem handler...
- Organization: Softway Pty Ltd
- Date: Mon, 31 Aug 92 06:19:28 GMT
- Message-ID: <1992Aug31.061928.18053@softway.sw.oz.au>
- Sender: news@softway.sw.oz.au (Usenet)
- Lines: 40
-
-
- 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
-
- Softway Pty Ltd, P.O. Box 305, Strawberry Hills, NSW 2012, AUSTRALIA
- Phone: +61 2 698 2322; Fax: +61 2 699 9174; Telex: AA27987
- Internet: peterc@softway.oz.au UUCP: ...!uunet!softway.oz!peterc
-