Mail Archives: djgpp-workers/1996/03/19/10:39:02
>>>>> "Eli" == Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> writes:
>> For what it's worth, WinNT was recently biting us because it
>> didn't support the standard INT 2F BIOS call to read CD-ROMs.
>> It just silently returned after doing nothing...with the carry
>> clear, which would normally indicate success. Woohoo.
Eli> Is this in `getmntent' or in the code you've written?
In code we wrote. I hadn't even thought about getmntent. Is it going
to do something bad also?
I worked around it by putting magic cookies in our transfer buffer
that should get overwritten by a successful call and seeing if they
survived the call. If they survived the call, I wrote a different set
of magic cookies in the transfer buffer and retried the read. If both
sets of cookies survived, it must be the case that the read actually
failed (as opposed to the CD sector happening to contain some of the
cookies).
-Mat
- Raw text -