Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: From: Turnbull Wallace Capt AFRL/VSBXR To: "'cygwin AT cygwin DOT com'" Subject: problem with mmap and cygwin 1.1.8 Date: Tue, 3 Apr 2001 10:02:09 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Hello all. I tried posting this to the list yesterday and it showed up in the cygwin list web archive but I received an email saying the message bounced so I don't know if it really went to the list or not so I'm reposting. I apologize if you got two copies of this. Hello all. I've recently updated my system to cygwin 1.1.8 and gcc 2.95-3.2. I had been running cygwin 1.1.7 and gcc 2.95.2-6. The following code (which calls mmap) worked fine under 1.1.7 but now mmap fails with errno = 13, "Permission denied." (Actually, the strace shows: "geterrno_from_win_error: unknown windows error 1006, setting errno to 13") I rolled back to the previous setup just to double check and the call to mmap worked fine. Attached is the broken code, some cygcheck output, and strace output. I'm running Windows 2000 Pro, SP1. I did a diff on the cygwin sources and noticed significant changes to mmap.cc between 1.1.7 and 1.1.8 but didn't I didn't delve very deep. Any ideas? --Rhet int create_files() { int i; int fd; char *p; char fname[1024]; long size; int perms; size = get_file_size(); perms = 0666; for (i=0;i