From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (joerg@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o56Kis3o018287 for ; Sun, 6 Jun 2010 16:44:54 -0400 (EDT) Received: (from joerg@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id o56KirPH001241; Sun, 6 Jun 2010 16:44:53 -0400 (EDT) Date: Sun, 6 Jun 2010 16:44:53 -0400 (EDT) Message-Id: <201006062044.o56KirPH001241@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: joerg@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Add MAP_SHARED for mmap, at least NetBSD with DIAGNOSTIC is X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Add MAP_SHARED for mmap, at least NetBSD with DIAGNOSTIC is quite noisy otherwise. Modified Files: -------------- mdocml: main.c Revision Data ------------- Index: main.c =================================================================== RCS file: /home/joerg/cvsroot/mdocml/main.c,v retrieving revision 1.82 retrieving revision 1.83 diff -Lmain.c -Lmain.c -u -p -r1.82 -r1.83 --- main.c +++ main.c @@ -395,7 +395,7 @@ read_whole_file(struct curparse *curp, s *with_mmap = 1; fb->sz = (size_t)st.st_size; fb->buf = mmap(NULL, fb->sz, PROT_READ, - MAP_FILE, curp->fd, 0); + MAP_FILE|MAP_SHARED, curp->fd, 0); if (fb->buf != MAP_FAILED) return(1); } -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv