X-Spam-Check-By: sourceware.org Date: Fri, 5 Jan 2007 10:57:52 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: 1.7.0 CVS mmap failure Message-ID: <20070105095752.GB28768@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Jan 4 17:17, Brian Ford wrote: > $ uname -a > CYGWIN_NT-5.1 PC1163-8460-XP 1.7.0(0.161/4/2) 2007-01-04 15:51 i686 > unknown unknown Cygwin > > $ ./mmaptest.exe > CloseHandle(fh_disk_file.get_handle ()) 0x738 failed void* mmap64(void*, > size_t, int, int, int, _off64_t):1275, Win32 error 6 > mmap: Cannot allocate memory > > STC attached. Thanks. Hmm, STCs are nice, but this STC works fine for me, reproducibly: $ ./mmaptest test passed Something's missing in the picture... Btw., just a sidenote: > #include > #include > #include > #include > #include You should rather #include here. strings.h is not the right include for the standard string manipulation functions, only for a couple of legacy BSD functions. See http://www.opengroup.org/onlinepubs/009695399/basedefs/strings.h.html Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/