| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
| List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
| List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| Date: | Mon, 27 Dec 1999 11:47:32 -0800 (PST) |
| From: | Alexandre Jose Reis Santoro <santoro AT anna DOT stanford DOT edu> |
| Reply-To: | Alexandre Jose Reis Santoro <santoro AT anna DOT stanford DOT edu> |
| To: | cygwin AT sourceware DOT cygnus DOT com |
| Subject: | mmap problems |
| Message-ID: | <Pine.LNX.3.96.991223111452.17971B-100000@gavea.Stanford.EDU> |
| MIME-Version: | 1.0 |
The following mmap call works on both Linux and Solaris, but fails on
cygwin-NT:
caddr_t p = NULL;
if ((p = mmap(0,
8192,
PROT_READ | PROT_WRITE,
MAP_SHARED,
m_fd,
(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
happening?
Any help would be appreciated,
- Alex Santoro (santoro AT poset DOT stanford DOT edu)
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |