public inbox for
help / color / mirror / Atom feed
* [newlib-cygwin] shm_open2: Implement SHM_GROW_ON_WRITE
@ 2022-07-11 11:52 Sebastian Huber
  0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2022-07-11 11:52 UTC (permalink / raw)
  To: newlib-cvs;h=c95c267a461475c6c2bac5c3f23c567e5360589c

commit c95c267a461475c6c2bac5c3f23c567e5360589c
Author: Kyle Evans <>
Date:   Fri Jul 10 00:43:45 2020 +0000

    shm_open2: Implement SHM_GROW_ON_WRITE
    Lack of SHM_GROW_ON_WRITE is actively breaking Python's memfd_create tests,
    so go ahead and implement it. A future change will make memfd_create always
    set SHM_GROW_ON_WRITE, to match Linux behavior and unbreak Python's tests
    on -CURRENT.
    Reviewed by:    kib
    Differential Revision:

 newlib/libc/sys/rtems/include/sys/mman.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/newlib/libc/sys/rtems/include/sys/mman.h b/newlib/libc/sys/rtems/include/sys/mman.h
index 7a9b49429..99c1eb8b3 100644
--- a/newlib/libc/sys/rtems/include/sys/mman.h
+++ b/newlib/libc/sys/rtems/include/sys/mman.h
@@ -190,6 +190,7 @@
  * shmflags for shm_open2()
 #define	SHM_ALLOW_SEALING		0x00000001
+#define	SHM_GROW_ON_WRITE		0x00000002
  * Flags for memfd_create().

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

only message in thread, other threads:[~2022-07-11 11:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-11 11:52 [newlib-cygwin] shm_open2: Implement SHM_GROW_ON_WRITE Sebastian Huber

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).