System calls that return file descriptors

Dmitry V. Levin ldv at altlinux.org
Fri May 23 02:54:11 UTC 2014


On Thu, May 22, 2014 at 07:15:39PM +0530, Zubin Mithra wrote:
> 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.

openat is similar to open.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140523/d8e9e020/attachment.bin>


More information about the Strace-devel mailing list