Module Name: src
Committed By: christos
Date: Sat Mar 19 18:44:10 UTC 2016
Modified Files:
src/sys/sys: mman.h
Log Message:
Add MAP_FMT
To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/sys/mman.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/mman.h
diff -u src/sys/sys/mman.h:1.48 src/sys/sys/mman.h:1.49
--- src/sys/sys/mman.h:1.48 Sun Aug 3 15:14:24 2014
+++ src/sys/sys/mman.h Sat Mar 19 14:44:10 2016
@@ -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 @@ typedef __off_t off_t; /* file offset
#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)
*/