This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Corinna Vinschen <cygwin@cygwin.com> writes:

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

The patch's triviality depends on how one checks for if a file descriptor
refers to a raw device or not. I'm not sure how to do that reliably.

For our purposes it is enough to check if the file-descriptor refers to a
regular file and avoid doing a SEEK_END in that case, but that is probably
not sufficient in the general case.

/Jesper
-- 
-------------------------------------------------------------------------
Jesper Eskilson                                         jojo@virtutech.se
Virtutech                                         http://www.virtutech.se
-------------------------------------------------------------------------


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]