This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: lseek() fails to seek on /dev/fd0 ('\\.\A:')
- To: cygwin at cygwin dot com
- Subject: Re: lseek() fails to seek on /dev/fd0 ('\\.\A:')
- From: Jesper Eskilson <jojo at virtutech dot se>
- Date: 26 Feb 2001 13:03:29 +0100
- Organization: Virtutech AB
- References: <u67ae79bw6v.fsf@rachel.hq.vtech>
Jesper Eskilson <jojo@virtutech.se> writes:
> Why is it ok to seek to 0 bytes and 1 byte, but not 2?
The test-program passed parameters in the wrong order, the correct order is
lseek(fd, pos, whence)
However, this was not the error I was really trying to fix (the real
program passed the parameters in the correct order). The real problem was
that lseek() fails when doing SEEK_END on a raw device. On Linux and
Solaris, lseek() return 0 when doing SEEK_END on raw devices.
Any comments?
/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