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: <3AB60CEC.7FB88267@cs.technion.ac.il> Date: Mon, 19 Mar 2001 15:43:08 +0200 From: Claus Wagner X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20 i686) X-Accept-Language: Hebrew, en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: ?mmap? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi! This e-mail concerns the current "mmap" implementation. When I map the same piece of a file twice into the virtual address space (using *mmap*) the second call returns the same address as the first call has returned. There are some cases, which make a multiple mapping of the same piece of a file reasonable. For example setting different protection attributes for two regions of one file: .... ptr1 = mmap(fd,...,offset); ptr2 = mmap(fd,...,offset); .... mprotect(ptr1,PROT_READ,PAGE_SIZE); mprotect(ptr2,PROT_WRITE|PROT_READ,PAGE_SIZE); ..... Anyway, I don't think, that the semantic of mmap should be like it is right now in your implementaion. Regards Claus Wagner. ps: ... or should I read the POSIX standard :-) -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple