Searched refs:cmsgh (Results 1 – 2 of 2) sorted by relevance
98 cmsghdr* const cmsgh = CMSG_FIRSTHDR(&message); in send() local99 cmsgh->cmsg_len = CMSG_LEN(sizeof(fd)); in send()100 cmsgh->cmsg_level = SOL_SOCKET; in send()101 cmsgh->cmsg_type = SCM_RIGHTS; in send()102 memcpy(CMSG_DATA(cmsgh), &fd, sizeof(fd)); in send()
100 cmsghdr* const cmsgh = CMSG_FIRSTHDR(&message); in processClient() local101 if (cmsgh && cmsgh->cmsg_level == SOL_SOCKET && cmsgh->cmsg_type == SCM_RIGHTS && in processClient()102 cmsgh->cmsg_len == CMSG_LEN(sizeof(*socketFd))) { in processClient()103 memcpy(socketFd, CMSG_DATA(cmsgh), sizeof(*socketFd)); in processClient()