I am trying to send a file descriptor over a Linux socket pair, to a child
process from the parent process. I open a file descriptor AFTER I fork the
child, so I must be able to send the file descriptor over the socket pair,
rather than the child process using the same variable name. I would do
this using sendmsg(), and recvmsg() system call in BSD style UN*X system,
but I could not find recvmsg() or sendmsg() definition in my .../include/linux/
I am wondering is recvmsg() and sendmsg() system calls supported in Linux at
all? If not, how can I send over a file descriptor over a socket pair?