System calls that return file descriptors

Zubin Mithra zubin.mithra at gmail.com
Thu May 22 13:45:39 UTC 2014


On Thu, May 22, 2014 at 7:12 PM, Fiedler Roman <Roman.Fiedler at ait.ac.at>wrote:

> > Von: Zubin Mithra [mailto:zubin.mithra at gmail.com]
> >
> > 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).
>
> There is a receive call, that allows to forward open file descriptors
> between
> processes. I do not known, if you call those received fds "socket fds",
> since
> they could be any (unresolvable) fd -- unless you poke into /proc for more
> information.
>

Thank you, I will look into that.
I also just realised that I should look at the "dup"-like calls.


Cheers,
-- zm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140522/3fa60c3d/attachment.html>


More information about the Strace-devel mailing list