This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: assertion "ptr != MAP_FAILED" failed while using mmap
"Brian Dessent" <brian@dessent.net> wrote in message 3EFA8DC0.441238CB@dessent.net">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/