public inbox for email@example.com
help / color / mirror / Atom feed
* [newlib-cygwin] Add a shm_open2 syscall to support upcoming memfd_create
@ 2022-07-11 11:50 Sebastian Huber
0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2022-07-11 11:50 UTC (permalink / raw)
Author: Kyle Evans <kevans@FreeBSD.org>
Date: Wed Sep 25 17:59:15 2019 +0000
Add a shm_open2 syscall to support upcoming memfd_create
shm_open2 allows a little more flexibility than the original shm_open.
shm_open2 doesn't enforce CLOEXEC on its callers, and it has a separate
shmflag argument that can be expanded later. Currently the only shmflag is
to allow file sealing on the returned fd.
shm_open and memfd_create will both be implemented in libc to use this new
__FreeBSD_version is bumped to indicate the presence.
Reviewed by: kib, markj
Differential Revision: https://reviews.freebsd.org/D21393
newlib/libc/sys/rtems/include/sys/mman.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/newlib/libc/sys/rtems/include/sys/mman.h b/newlib/libc/sys/rtems/include/sys/mman.h
index f75490c96..6e178d83d 100644
@@ -176,6 +176,12 @@
* Anonymous object constant for shm_open().
#define SHM_ANON ((char *)1)
+ * shmflags for shm_open2()
+#define SHM_ALLOW_SEALING 0x00000001
#endif /* __BSD_VISIBLE */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-11 11:50 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:50 [newlib-cygwin] Add a shm_open2 syscall to support upcoming memfd_create 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).