Lines Matching defs:fd
47 mm_send_fd(int sock, int fd)
65 msg.msg_accrights = (caddr_t)&fd;
66 msg.msg_accrightslen = sizeof(fd);
74 *(int *)CMSG_DATA(cmsg) = fd;
82 pfd.fd = sock;
86 debug3("%s: sendmsg(%d): %s", __func__, fd, strerror(errno));
90 error("%s: sendmsg(%d): %s", __func__, fd,
122 int fd;
131 msg.msg_accrights = (caddr_t)&fd;
132 msg.msg_accrightslen = sizeof(fd);
138 pfd.fd = sock;
157 if (msg.msg_accrightslen != sizeof(fd)) {
158 error("%s: no fd", __func__);
175 fd = (*(int *)CMSG_DATA(cmsg));
177 return fd;