HomeFreeBSD

Make file descriptor passing for CloudABI's recvmsg() work.

Description

Make file descriptor passing for CloudABI's recvmsg() work.

Similar to the change for sendmsg(), create a pointer size independent
implementation of recvmsg() and let cloudabi32 and cloudabi64 call into
it. In case userspace requests one or more file descriptors, call
kern_recvit() in such a way that we get the control message headers in
an mbuf. Iterate over all of the headers and copy the file descriptors
to userspace.

Details

Provenance
edAuthored on
Parents
rS315735: Implement moving SD.
Branches
Unknown
Tags
Unknown