From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1921) id 38E65385415D; Mon, 11 Jul 2022 11:52:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 38E65385415D Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Sebastian Huber To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] shm_open2: Implement SHM_GROW_ON_WRITE X-Act-Checkin: newlib-cygwin X-Git-Author: Kyle Evans X-Git-Refname: refs/heads/master X-Git-Oldrev: 1a840361e80d17ab7b1dd6db32372ea21ce69b09 X-Git-Newrev: c95c267a461475c6c2bac5c3f23c567e5360589c Message-Id: <20220711115204.38E65385415D@sourceware.org> Date: Mon, 11 Jul 2022 11:52:04 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2022 11:52:04 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Dc95c267a461= 475c6c2bac5c3f23c567e5360589c commit c95c267a461475c6c2bac5c3f23c567e5360589c Author: Kyle Evans Date: Fri Jul 10 00:43:45 2020 +0000 shm_open2: Implement SHM_GROW_ON_WRITE =20 Lack of SHM_GROW_ON_WRITE is actively breaking Python's memfd_create te= sts, so go ahead and implement it. A future change will make memfd_create al= ways set SHM_GROW_ON_WRITE, to match Linux behavior and unbreak Python's tes= ts on -CURRENT. =20 Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D25502 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/rte= ms/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 =20 /* * Flags for memfd_create().