Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!bader+ From: bader+@andrew.cmu.edu (Miles Bader) Newsgroups: comp.sys.amiga.tech Subject: Re: Bug in DoIO / SendIO ?? Message-ID: Date: 21 Mar 90 23:54:58 GMT References: <9003160832.AA23378@jade.berkeley.edu>, <10280@cbmvax.commodore.com> Organization: Information Technology Center, Carnegie Mellon, Pittsburgh, PA Lines: 28 In-Reply-To: <10280@cbmvax.commodore.com> valentin@cbmvax.commodore.com (Valentin Pepelea) writes: > In article <9003160832.AA23378@jade.berkeley.edu> BEYSSAC@FRESE51.BITNET writes: > > There seems to be a bug in the KickStart 1.2 DoIO/SendIO routines. > >On entry they clear the IO_FLAGS fields of the IoRequest structure. ... > > I discovered this using the trackdisk.device in raw mode with the > >IOTDF_INDEXSYNC flag. It didn't work ! I wrote a little patch for DoIO > >and SendIO, and now it works as it should. There is no problem with the > >other parts of the system. > > Indeed, this appears to be a bug, but not where you think it is! In this > case, you are supposed to be calling BeginIO() directly rather than > going indirectly thorugh SendIO() or DoIO(). To use BeginIO() you must > link with amiga.lib. > > So this is a documentation bug for the trackdisk.device. The documentation > of the audio.device mentions explicitly that BeginIO() must be used. Thank > you for pointing this bug out. I recall someone asking this a long time ago, and the replies gave the impression that: 1) it is a bug, 2) it will stay broken for compatibility's sake (and thus the workaround "BeginIO"). No? [This is important, of course, since we have the right to feel irritated about it if really is a bug; I know I've never seen a good reason for it being a "feature"] -Miles