diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-06-16 15:37:31 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-08-05 19:45:19 +0100 |
commit | d8173e2496e25ef68e409049eff1b672982af21c (patch) | |
tree | b35c9e44cbd7b775ea1ea5b0ff12f773a94d96ee | |
parent | bb648757f04e595b029be6ceaa6e2db66876c8cb (diff) | |
download | glibc-d8173e2496e25ef68e409049eff1b672982af21c.tar.gz glibc-d8173e2496e25ef68e409049eff1b672982af21c.tar.xz glibc-d8173e2496e25ef68e409049eff1b672982af21c.zip |
TODO(uapi): cheri: Fix sigevent ABI
TODO: depends on kernel sigevent definition update.
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/types/sigevent_t.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 |