Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 7 Sep 2005 20:04:25 +0200 From: Corinna Vinschen To: "[ML] CygWin " Subject: Re: happily messing up with raw devices (aka: lseek problems) Message-ID: <20050907180425.GS5555@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: "[ML] CygWin " References: <431F266D DOT 3050604 AT lapo DOT it> <20050907174848 DOT GR5555 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050907174848.GR5555@calimero.vinschen.de> User-Agent: Mutt/1.4.2i On Sep 7 19:48, Corinna Vinschen wrote: > On Sep 7 19:42, Lapo Luchini wrote: > > Is is normal that Cygwin's lseek doesn't work on /dev/sda? > > What should I do? > > My own personal work-around would be to read all those 44 sectors (and > > discarding them), but I don't like that very much, is there some > > better/cleaner alternative? > > > > If anyone wants to see the source code, it's all in my Monotone > > server, so either > > I really thought you know better. > > - "It doesn't work" is not helpful. What's the error you get? > What happens? > > - What about a simple testcase(tm) to demonstrate the problem? Btw., I just tested with my own small testcase(tm) and with od(1) and I don't see anything wrong. Is it possible that you are stumbling over the fact that the second parameter to lseek is an off_t type and off_t is 64 bit (long long) on Cygwin? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/