Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: Steve Jorgensen Message-Id: <199910210615.AAA20389@zen.alb.khoral.com> Subject: Mmap problem To: cygwin AT sourceware DOT cygnus DOT com Date: Thu, 21 Oct 1999 00:15:29 -0600 (MDT) X-Mailer: ELM [version 2.4 PL25] Content-Type: text I'm trying to port Khoros Pro 2001 to NT using cygwin, and am having a problem with the mmap call. Khoros has a transport abstraction that makes using mmap, tcpip, file, pipes, or memory all look like a standard unix file, allowing users to use our k* file i/o calls to read and write to each different kind of transport. Anyway, the mmap transport, in order to avoid excessive resizing, forces the underlying mmap'ed file to grow more than the write call needs. At close time, we ftruncate the file back to the size it's supposed to be. The problem is that ftruncate is returning with an access error. This works on all the unix systems we've ported to. I've tried the ftruncate both before and after the munmap call with the same results. Any ideas what else I can try, or am I just out of luck? I'm using Cygwin1.0 on a Windows NT 4.0 box. Thanks for any help. Steve -- ----------------------------------------------------------- Steven Jorgensen steve AT khoral DOT com steve AT haunt DOT com ------------------------------+---------------------------- Khoral Research Inc. | PHONE: (505) 837-6500 6200 Uptown Blvd, Suite 200 | FAX: (505) 881-3842 Albuquerque, NM 87110 | URL: http://www.khoral.com/ ----------------------------------------------------------- -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com