<p>(Apologies if this is a duplicate of something already reported here or elsewhere. I could have sworn I already reported and had communication about it, but I can't find record of that anywhere.)</p>
<p>strace gets the structure definitions and command macro values from <code>sys/ipc.h</code>, <code>sys/sem.h</code>, etc. only falling back to the kernel uapi headers if these are missing. However, for moving 32-bit archs to 64-bit <code>time_t</code>, the application-facing/libc types for <code>semid_ds</code>, etc. must necessarily mismatch the kernel types since the existing time fields lack correct alignment (and on some archs, even lack padding) to be expanded/used in-place.</p>
<p>Since strace wants to be working with the structures and command numbers present in the tracee's interface with the kernel, not its own interface with libc, it should be including the kernel uapi headers for these definitions.</p>
<p>Original report and analysis was on the musl libc list in regards to time64 conversion: <a href="https://www.openwall.com/lists/musl/2019/10/29/7" rel="nofollow">https://www.openwall.com/lists/musl/2019/10/29/7</a></p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/strace/strace/issues/116?email_source=notifications&email_token=AAFX7DABRD5NCKRFUFQ5SODQ2GY4HA5CNFSM4J63O5QKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ICOTBXQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAFX7DCRSPLQHQAJEEYWXVDQ2GY4HANCNFSM4J63O5QA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAFX7DDX2HOHS6KZT4TAWM3Q2GY4JA5CNFSM4J63O5QKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ICOTBXQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/strace/strace/issues/116?email_source=notifications\u0026email_token=AAFX7DABRD5NCKRFUFQ5SODQ2GY4HA5CNFSM4J63O5QKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ICOTBXQ",
"url": "https://github.com/strace/strace/issues/116?email_source=notifications\u0026email_token=AAFX7DABRD5NCKRFUFQ5SODQ2GY4HA5CNFSM4J63O5QKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ICOTBXQ",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>