This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: happily messing up with raw devices (aka: lseek problems)


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/


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