From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id C1C0F3857409; Fri, 5 Aug 2022 19:37:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C1C0F3857409 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc/arm/morello/main] TODO(uapi): cheri: Fix sigevent ABI X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/morello/main X-Git-Oldrev: bb648757f04e595b029be6ceaa6e2db66876c8cb X-Git-Newrev: d8173e2496e25ef68e409049eff1b672982af21c Message-Id: <20220805193721.C1C0F3857409@sourceware.org> Date: Fri, 5 Aug 2022 19:37:21 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2022 19:37:21 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d8173e2496e25ef68e409049eff1b672982af21c commit d8173e2496e25ef68e409049eff1b672982af21c Author: Szabolcs Nagy Date: Thu Jun 16 15:37:31 2022 +0100 TODO(uapi): cheri: Fix sigevent ABI TODO: depends on kernel sigevent definition update. Diff: --- sysdeps/unix/sysv/linux/bits/types/sigevent_t.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/bits/types/sigevent_t.h b/sysdeps/unix/sysv/linux/bits/types/sigevent_t.h index e8b28de7e3..ab0a6c0690 100644 --- a/sysdeps/unix/sysv/linux/bits/types/sigevent_t.h +++ b/sysdeps/unix/sysv/linux/bits/types/sigevent_t.h @@ -7,7 +7,11 @@ #define __SIGEV_MAX_SIZE 64 #if __WORDSIZE == 64 -# define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 4) +# ifdef __CHERI_PURE_CAPABILITY__ +# define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 8) +# else +# define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 4) +# endif #else # define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 3) #endif