delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/24/10:21:06

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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: Tue, 24 Sep 2002 16:20:52 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: MMap offset parameter failing with ENOMEM error
Message-ID: <20020924162052.P29920@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20020919093239 DOT H29920 AT cygbert DOT vinschen DOT de> <000801c26035$9af84410$8e90a8c0 AT citr DOT com DOT au>
Mime-Version: 1.0
In-Reply-To: <000801c26035$9af84410$8e90a8c0@citr.com.au>
User-Agent: Mutt/1.3.22.1i

On Fri, Sep 20, 2002 at 09:38:06AM +1000, Shane Mann wrote:
> Perhaps the wrong error is being returned for this case - I would have
> thought the following error code would be more appropriate:
> 
> [ENXIO]
> Addresses in the range [off,off+len) are invalid for the object specified by
> fildes.

The appropriate error code is EOVERFLOW.  I've checked that in.

> Any ideas?

I've checked in a fix.  The evaluation of the length to map (in 64k chunks)
was incorrect.

Thanks for the error report,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019