+ static struct {
+ struct cmsghdr h;
+ int fd;
+ } fd_buf = {
+ .h = {
+ .cmsg_len = sizeof(fd_buf),
+ .cmsg_level = SOL_SOCKET,
+ .cmsg_type = SCM_RIGHTS,
+ }
+ };
+ struct msghdr msghdr = {
+ .msg_iov = iov,
+ .msg_iovlen = iov_len,
+ .msg_control = &fd_buf,
+ .msg_controllen = sizeof(fd_buf),
+ };