lseek() fails to seek on /dev/fd0 ('\\.\A:')

Egor Duda deo@logos-m.ru
Mon Feb 26 11:11:00 GMT 2001


Hi!

Monday, 26 February, 2001 Corinna Vinschen cygwin@cygwin.com wrote:

CV> On Mon, Feb 26, 2001 at 09:03:11AM -0500, Earnie Boyd wrote:
>> Egor Duda wrote:
>> > 
>> > Anyway,  if  we  decide to be linux- and solaris- compatible here, the
>> > patch would be trivial.
>> > 
>> 
>> I thought the decision to be as Linux compatible as possible had already
>> been determined.  I suggest that someone submit the trivial patch.

CV> Indeed. I would be interested in the trivial patch as well.

well, almost trivial ;-)
It's not fully compatible with linux, as it doesn't allow seeking past
the  end  of  media (i think this is ok), and, alas, for NT only :( (i
don't  think  this  is ok, but i haven't found a way to get media size
under w9x)

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19
floppy-lseek.diff
floppy-lseek.ChangeLog

-------------- next part --------------
2001-02-26  Egor Duda  <deo@logos-m.ru>

	* fhandler_floppy.cc (fhandler_dev_floppy::lseek): Determine
	drive geometry to allow seeking from the end of raw floppy
	device. Don't allow reading past the end of media. Always return
	new file pointer position.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: floppy-lseek.diff
Type: text/x-diff
Size: 2409 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20010226/322e37b0/attachment.bin>


More information about the Cygwin-patches mailing list