Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin@cygwin.com
From: "Alex Vinokur" <alexvn@connect.to>
Subject: Re: assertion "ptr != MAP_FAILED" failed while using mmap
Date: Thu, 26 Jun 2003 12:51:43 +0300
Lines: 27
Message-ID: <bdefp6$gt5$1@main.gmane.org>
References: <Pine.CYG.4.55.0306251825330.3408@ellixia> <Pine.GSO.4.44.0306251849140.22307-100000@slinky.cs.nyu.edu> <bddr4g$on$1@main.gmane.org> <bde0gu$huc$1@main.gmane.org> <3EFA8DC0.441238CB@dessent.net>
X-Complaints-To: usenet@main.gmane.org
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200


"Brian Dessent" <brian@dessent.net> wrote in message news:3EFA8DC0.441238CB@dessent.net...
> Alex Vinokur wrote:
>
> > > The program prints:
> > === Error : 22 Invalid argument ===
> >
> > Which argument?
>
> The flags argument requires at least one of MAP_SHARED or MAP_PRIVATE, I
> think.
>
> Brian
>

It works fine with MAP_SHARED.
Thanks.

   =====================================
   Alex Vinokur
     mailto:alexvn@connect.to
     http://mathforum.org/library/view/10978.html
   =====================================






--
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/

