* Add MAP_SHARED_VALIDATE from Linux 4.15
@ 2018-02-01 18:14 Joseph Myers
2018-02-06 0:25 ` Dmitry V. Levin
0 siblings, 1 reply; 2+ messages in thread
From: Joseph Myers @ 2018-02-01 18:14 UTC (permalink / raw)
To: libc-alpha
[Proposed for once the release changes for 2.27, and the post-release
changes opening master for development for 2.28, have been committed.]
This patch adds the MAP_SHARED_VALIDATE macro from Linux 4.15 to
bits/mman-linux.h and the hppa bits/mman.h.
Tested for x86_64.
2018-02-01 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
(MAP_SHARED_VALIDATE): New macro.
* sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
(MAP_SHARED_VALIDATE): Likewise.
diff --git a/sysdeps/unix/sysv/linux/bits/mman-linux.h b/sysdeps/unix/sysv/linux/bits/mman-linux.h
index e61212a..70edeb6 100644
--- a/sysdeps/unix/sysv/linux/bits/mman-linux.h
+++ b/sysdeps/unix/sysv/linux/bits/mman-linux.h
@@ -42,6 +42,8 @@
#define MAP_SHARED 0x01 /* Share changes. */
#define MAP_PRIVATE 0x02 /* Changes are private. */
#ifdef __USE_MISC
+# define MAP_SHARED_VALIDATE 0x03 /* Share changes and validate
+ extension flags. */
# define MAP_TYPE 0x0f /* Mask for type of mapping. */
#endif
diff --git a/sysdeps/unix/sysv/linux/hppa/bits/mman.h b/sysdeps/unix/sysv/linux/hppa/bits/mman.h
index 84ba0d6..380be7b 100644
--- a/sysdeps/unix/sysv/linux/hppa/bits/mman.h
+++ b/sysdeps/unix/sysv/linux/hppa/bits/mman.h
@@ -34,6 +34,8 @@
#define MAP_SHARED 0x01 /* Share changes */
#define MAP_PRIVATE 0x02 /* Changes are private */
#ifdef __USE_MISC
+# define MAP_SHARED_VALIDATE 0x03 /* Share changes and validate
+ extension flags. */
# define MAP_TYPE 0x03 /* Mask for type of mapping */
#endif
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Add MAP_SHARED_VALIDATE from Linux 4.15
2018-02-01 18:14 Add MAP_SHARED_VALIDATE from Linux 4.15 Joseph Myers
@ 2018-02-06 0:25 ` Dmitry V. Levin
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry V. Levin @ 2018-02-06 0:25 UTC (permalink / raw)
To: libc-alpha
[-- Attachment #1: Type: text/plain, Size: 690 bytes --]
On Thu, Feb 01, 2018 at 06:14:46PM +0000, Joseph Myers wrote:
> [Proposed for once the release changes for 2.27, and the post-release
> changes opening master for development for 2.28, have been committed.]
>
> This patch adds the MAP_SHARED_VALIDATE macro from Linux 4.15 to
> bits/mman-linux.h and the hppa bits/mman.h.
>
> Tested for x86_64.
>
> 2018-02-01 Joseph Myers <joseph@codesourcery.com>
>
> * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
> (MAP_SHARED_VALIDATE): New macro.
> * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
> (MAP_SHARED_VALIDATE): Likewise.
I've double-checked that this matches Linux 4.15 headers.
--
ldv
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-02-06 0:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-01 18:14 Add MAP_SHARED_VALIDATE from Linux 4.15 Joseph Myers
2018-02-06 0:25 ` Dmitry V. Levin
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 read-only IMAP folder(s) and NNTP newsgroup(s).