System calls that return file descriptors
Zubin Mithra
zubin.mithra at gmail.com
Thu May 22 13:19:13 UTC 2014
Hey everyone,
I just had a look around for system calls that return file descriptors on a
couple of docs[1][2][3] and the ones I could find are `sys_creat` and
`sys_open`(not looking at the ones that return socket fds right now).
The commit that introduces the -yy flag can be found here[4].
The commit that introduces return fd resolving can be found here[5]. Is the
implementation good/similar to what you had in mind? Is there a
better/cleaner way to do it?
Some sample output of return fd resolving can be found here[6].
Thank you for your time!
Thanks,
Zubin
[1] http://www.lxhp.in-berlin.de/lhpsysc1.html#exit
[2]
http://blog.rchapman.org/post/36801038863/linux-system-call-table-for-x86-64
[3] http://docs.cs.up.ac.za/programming/asm/derick_tut/syscalls.html
[4]
https://github.com/eQu1NoX/strace/commit/12405cfc96175830dc040641969cdc7caf665a9b
https://github.com/eQu1NoX/strace/commit/166f7ee4927015ac8ea42a63a160e59ca964752b
[5]
https://github.com/eQu1NoX/strace/commit/55eec746ec64fd51c3be42b861eb26f16927651d
[6] https://gist.github.com/eQu1NoX/ac2d2f8734955e7bdedf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140522/5e115aa7/attachment.html>
More information about the Strace-devel
mailing list