mmap problems

Alexandre Jose Reis Santoro
Mon Dec 27 11:47:00 GMT 1999

The following mmap call works on both Linux and Solaris, but fails on

      caddr_t p = NULL;
      if ((p = mmap(0, 
                    PROT_READ | PROT_WRITE,
                    (bn * 8192))) == MAP_FAILED)
         fprintf(stderr, "DBFile1::getBlock - mmap failed : %d\n", errno);
         exit(1); //@@ errno set -- handle errors

In the cygwin-NT case, mmap works properly if the offset value (given by
bn*8192) is 0, but fails otherwise with EACCESS.

Has anyone encountered this problem before? Does anyone know what is

Any help would be appreciated,

- Alex Santoro (

Want to unsubscribe from this list?
Send a message to

More information about the Cygwin mailing list