mailing list of musl libc
 help / color / mirror / code / Atom feed
* [PATCH] powerpc{64}: fix MAP_NORESERVE and MAP_LOCKED in mman.h
@ 2017-09-10 11:34 Szabolcs Nagy
  0 siblings, 0 replies; only message in thread
From: Szabolcs Nagy @ 2017-09-10 11:34 UTC (permalink / raw)
  To: musl

MAP_{NORESERVE,LOCKED} have different values on powerpc than in generic.
---
 arch/powerpc/bits/mman.h   | 7 ++++++-
 arch/powerpc64/bits/mman.h | 5 +++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/arch/powerpc/bits/mman.h b/arch/powerpc/bits/mman.h
index b6a15a12..95ec4358 100644
--- a/arch/powerpc/bits/mman.h
+++ b/arch/powerpc/bits/mman.h
@@ -1,4 +1,9 @@
-#define	PROT_SAO       0x10
+#define PROT_SAO       0x10
+
+#undef MAP_NORESERVE
+#define MAP_NORESERVE   0x40
+#undef MAP_LOCKED
+#define MAP_LOCKED	0x80
 
 #undef MCL_CURRENT
 #define MCL_CURRENT     0x2000
diff --git a/arch/powerpc64/bits/mman.h b/arch/powerpc64/bits/mman.h
index f5974f82..95ec4358 100644
--- a/arch/powerpc64/bits/mman.h
+++ b/arch/powerpc64/bits/mman.h
@@ -1,5 +1,10 @@
 #define PROT_SAO       0x10
 
+#undef MAP_NORESERVE
+#define MAP_NORESERVE   0x40
+#undef MAP_LOCKED
+#define MAP_LOCKED	0x80
+
 #undef MCL_CURRENT
 #define MCL_CURRENT     0x2000
 #undef MCL_FUTURE
-- 
2.14.1



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-09-10 11:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-10 11:34 [PATCH] powerpc{64}: fix MAP_NORESERVE and MAP_LOCKED in mman.h Szabolcs Nagy

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).