public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Implement INHERIT_ZERO for minherit(2).
@ 2018-08-24 13:09 Sebastian Huber
0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2018-08-24 13:09 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=ca3b7a988ac6ba37c020e6a7795f263ee25eef55
commit ca3b7a988ac6ba37c020e6a7795f263ee25eef55
Author: delphij <delphij@FreeBSD.org>
Date: Tue Mar 14 17:10:42 2017 +0000
Implement INHERIT_ZERO for minherit(2).
INHERIT_ZERO is an OpenBSD feature.
When a page is marked as such, it would be zeroed
upon fork().
This would be used in new arc4random(3) functions.
PR: 182610
Reviewed by: kib (earlier version)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D427
Diff:
---
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 8897acb..8aeed87 100644
--- a/newlib/libc/sys/rtems/include/sys/mman.h
+++ b/newlib/libc/sys/rtems/include/sys/mman.h
@@ -43,6 +43,7 @@
#define INHERIT_SHARE 0
#define INHERIT_COPY 1
#define INHERIT_NONE 2
+#define INHERIT_ZERO 3
#endif
/*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-08-24 13:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-24 13:09 [newlib-cygwin] Implement INHERIT_ZERO for minherit(2) 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).