On 2021-03-09 01:06, L A Walsh wrote:
manpage for strace maybe needs updating
No, not really. I believe that would only be cosmetic as it's just a an example in the manpage. But if it bugs you, you can always rewrite the manpage for the _example_ you're referring to and make a pull request. Mind you that open and openat has had a bit of heated arguments during the years on mailinglists and you can't expect glibc to always give you openat instead of open depending on distro. Certain commands needs a higher level of understanding of what they're actually doing. This one needs you to understand system calls and that there is plenty of them. There is over 600 system calls in glibc and 5 that starts with open. I always start by issuing -c (summary) for strace and then check the individual calls that seems to be appropriate. Example: strace -c cat /dev/null But for all that starts with "open", you're supposed to do regexp or comma separated for exact match. regexp strace -e trace=/open cat /dev/null exact match strace -e trace=open,open_by_handle_at,open_tree,openat,openat2 cat /dev/null -- /bengan