[jffi-next] 15/24: Pass -1 as the fd arg to mmap, since some unixen might require it

Tim Potter tpot-guest at moszumanska.debian.org
Wed Mar 4 04:51:31 UTC 2015


This is an automated email from the git hooks/post-receive script.

tpot-guest pushed a commit to tag 0.6.5
in repository jffi-next.

commit f0d1163de244b02031c7e988f64eb790617425c4
Author: Wayne Meissner <wmeissner at gmail.com>
Date:   Sat Jan 30 15:02:17 2010 +1000

    Pass -1 as the fd arg to mmap, since some unixen might require it
---
 src/com/kenai/jffi/PageManager.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/com/kenai/jffi/PageManager.java b/src/com/kenai/jffi/PageManager.java
index 2ba61cf..f8230e0 100644
--- a/src/com/kenai/jffi/PageManager.java
+++ b/src/com/kenai/jffi/PageManager.java
@@ -91,7 +91,7 @@ abstract public class PageManager {
         public long allocatePages(int npages, int protection) {
             long sz = npages * pageSize();
             return Foreign.getInstance().mmap(0, sz, protection,
-                    Foreign.MAP_ANON | Foreign.MAP_PRIVATE, 0, 0);
+                    Foreign.MAP_ANON | Foreign.MAP_PRIVATE, -1, 0);
 
         }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jffi-next.git



More information about the pkg-java-commits mailing list