Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Wed, 7 Sep 2005 20:04:25 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: "[ML] CygWin " <cygwin@cygwin.com>
Subject: Re: happily messing up with raw devices (aka: lseek problems)
Message-ID: <20050907180425.GS5555@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: "[ML] CygWin " <cygwin@cygwin.com>
References: <431F266D.3050604@lapo.it> <20050907174848.GR5555@calimero.vinschen.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@cygwin.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/

