Searched refs:cmptr (Results 1 – 1 of 1) sorted by relevance
248 struct cmsghdr* cmptr = (struct cmsghdr*)malloc(CONTROLLEN); in sendFdPipe() local259 msg.msg_control = (caddr_t) cmptr; in sendFdPipe()262 cmptr->cmsg_level = SOL_SOCKET; in sendFdPipe()263 cmptr->cmsg_type = SCM_RIGHTS; in sendFdPipe()264 cmptr->cmsg_len = CONTROLLEN; in sendFdPipe()265 memcpy(CMSG_DATA(cmptr), &SocketFD, sizeof(int)); in sendFdPipe()292 free(cmptr); in sendFdPipe()327 struct cmsghdr* cmptr = (struct cmsghdr*)malloc(CONTROLLEN); in receiveFdPipe() local338 msghdr.msg_control = (caddr_t) cmptr; in receiveFdPipe()356 memcpy(&newfd, CMSG_DATA(cmptr), sizeof(int)); in receiveFdPipe()[all …]
Completed in 19 milliseconds