Hello,
This is just a wild guess: maybe it has to do with that
sendfile() is for copying data between one file descriptor and
another; sendfile() invokes sendpage() of the corresponding protocol.
With AF_UNIX sockets, which are IPC mechanism, you can pass file
descriptors from one process to another
using control messages (ancillary data).
You can do it with SCM_RIGHTS type control message. (the msg_control
of msg should point to a cmsghdr with SCM_RIGHTS as its cmsg_type)
Just want to reiterate that I am not sure about it.
Regards,
Rami Rosen
2009/6/29 Rémi Denis-Courmont <remi.denis-courmont@nokia.com>: