<p><code>%file</code> includes syscalls that take a file name as an argument. <code>%desc</code> includes syscalls that take an fd as an argument. <code>readdir(2)</code> takes fd as an arguments, hence it is included in <code>%desc</code> and not in <code>%file</code>.</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/123?email_source=notifications&email_token=AOVBTR7MKG6MKBHAJ7RTMHTREWQ33A5CNFSM4KRDAUDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM56AHI#issuecomment-591126557">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AOVBTR22ELTZIYESWWZVRA3REWQ33ANCNFSM4KRDAUDA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AOVBTRYDUWNDCKCKE33OUQTREWQ33A5CNFSM4KRDAUDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM56AHI.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/123?email_source=notifications\u0026email_token=AOVBTR7MKG6MKBHAJ7RTMHTREWQ33A5CNFSM4KRDAUDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM56AHI#issuecomment-591126557",
"url": "https://github.com/strace/strace/issues/123?email_source=notifications\u0026email_token=AOVBTR7MKG6MKBHAJ7RTMHTREWQ33A5CNFSM4KRDAUDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM56AHI#issuecomment-591126557",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>