PERFORCE change 1200321 for review

John Baldwin jhb at FreeBSD.org
Tue Sep 16 17:41:02 UTC 2014


http://p4web.freebsd.org/@@1200321?ac=10

Change 1200321 by jhb at jhb_jhbbsd on 2014/09/16 17:40:10

	More hacks re: MAP_RENAME and MAP_NORESERVE.

Affected files ...

.. //depot/projects/smpng/sys/sys/param.h#196 edit
.. //depot/projects/smpng/sys/vm/vm_mmap.c#113 edit

Differences ...

==== //depot/projects/smpng/sys/sys/param.h#196 (text+ko) ====

@@ -80,6 +80,7 @@
 #define	P_OSREL_SIGWAIT		700000
 #define	P_OSREL_SIGSEGV		700004
 #define	P_OSREL_MAP_ANON	800104
+#define	P_OSREL_MAP_RENAME	1100033
 
 #define	P_OSREL_MAJOR(x)	((x) / 100000)
 #endif

==== //depot/projects/smpng/sys/vm/vm_mmap.c#113 (text+ko) ====

@@ -220,6 +220,12 @@
 	fp = NULL;
 
 	/*
+	 * Ignore old flags that used to be defined but did not do anything.
+	 */
+	if (curproc < P_OSREL_MAP_RENAME)
+		flags &= ~(MAP_RESERVED0020 | MAP_RESERVED0040);
+	
+	/*
 	 * Enforce the constraints.
 	 * Mapping of length 0 is only allowed for old binaries.
 	 * Anonymous mapping shall specify -1 as filedescriptor and


More information about the p4-projects mailing list