Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Add MAP_FMT



details:   https://anonhg.NetBSD.org/src/rev/db481808c21c
branches:  trunk
changeset: 344278:db481808c21c
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Mar 19 18:44:10 2016 +0000

description:
Add MAP_FMT

diffstat:

 sys/sys/mman.h |  28 +++++++++++++++++++++++++++-
 1 files changed, 27 insertions(+), 1 deletions(-)

diffs (42 lines):

diff -r 9e8d3877915f -r db481808c21c sys/sys/mman.h
--- a/sys/sys/mman.h    Sat Mar 19 17:15:13 2016 +0000
+++ b/sys/sys/mman.h    Sat Mar 19 18:44:10 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mman.h,v 1.48 2014/08/03 19:14:24 wiz Exp $    */
+/*     $NetBSD: mman.h,v 1.49 2016/03/19 18:44:10 christos Exp $       */
 
 /*-
  * Copyright (c) 1982, 1986, 1993
@@ -112,6 +112,32 @@
 #define        MAP_ALIGNMENT_256TB     MAP_ALIGNED(48) /* 2^48 */
 #define        MAP_ALIGNMENT_64PB      MAP_ALIGNED(56) /* 2^56 */
 
+#ifdef _NETBSD_SOURCE
+#define MAP_FMT        "\177\020\
+b\0SHARED\0\
+b\1PRIVATE\0\
+b\2COPY\0\
+b\4FIXED\0\
+b\5RENAME\0\
+b\6NORESERVE\0\
+b\7INHERIT\0\
+b\11HASSEMAPHORE\0\
+b\12TRYFIXED\0\
+b\13WIRED\0\
+F\14\1\
+:\0FILE\0\
+:\1ANONYMOUS\0\
+b\15STACK\0\
+F\30\010\
+:\020ALIGN=64KB\0\
+:\030ALIGN=16MB\0\
+:\040ALIGN=4GB\0\
+:\050ALIGN=1TB\0\
+:\060ALIGN=256TB\0\
+:\070ALIGN=64PB\0\
+"
+#endif
+
 /*
  * Error indicator returned by mmap(2)
  */



Home | Main Index | Thread Index | Old Index