Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Wed, 28 Feb 2001 18:17:05 +0300 From: Egor Duda X-Mailer: The Bat! (v1.45) Personal Reply-To: Egor Duda Organization: DEO X-Priority: 3 (Normal) Message-ID: <86100174963.20010228181705@logos-m.ru> To: Jesper Eskilson CC: cygwin AT cygwin DOT com Subject: Re: lseek() misbehaving. In-reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi! Wednesday, 28 February, 2001 Jesper Eskilson jojo AT virtutech DOT se wrote: JE> read() read 32 bytes (requested 32) from fd 3 JE> ======= JE> b8 c0 7 8e d8 b8 0 90 8e c0 b9 0 1 29 f6 29 ff fc f3 a5 ea 19 0 0 90 bf f4 3f 8e d8 8e d0 JE> ======= ... JE> read() read 32 bytes (requested 32) from fd 3 JE> ======= JE> 89 fc 8e e1 bb 78 0 1e 64 c5 37 b1 6 fc 57 f3 a5 5f 1f c6 45 4 24 64 89 3f 64 8c 47 2 30 e4 JE> ======= JE> Now, you'd expect that the two 32-bytes block (32 is arbitrarily chosen) JE> would be identical, but they are not. The (second) call to lseek() does not JE> move the file-pointer at all, so the second 32-byte block is what you JE> would've gotten if you read 64 bytes the first time. i've checked in the patch for fhandler_dev_floppy::lseek several hours ago. your program behaves correctly with my current cvs build of cygwin1.dll you can wait for a new snapshot, or build cygwin1.dll from current cvs yourself, and check if it solves your problem. Egor. mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19 -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple