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: 1.7.0 CVS mmap failure

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 <limits.h>
> #include <unistd.h>
> #include <sys/types.h>
> #include <sys/stat.h>
> #include <strings.h>

You should rather #include <string.h> here.  strings.h is not the right
include for the standard string manipulation functions, only for a
couple of legacy BSD functions.  See


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Unsubscribe info:
Problem reports:

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