Searched refs:cmptr (Results 1 – 1 of 1) sorted by relevance
247 struct cmsghdr* cmptr = (struct cmsghdr*)malloc(CONTROLLEN); in sendFdPipe() local258 msg.msg_control = (caddr_t) cmptr; in sendFdPipe()261 cmptr->cmsg_level = SOL_SOCKET; in sendFdPipe()262 cmptr->cmsg_type = SCM_RIGHTS; in sendFdPipe()263 cmptr->cmsg_len = CONTROLLEN; in sendFdPipe()264 memcpy(CMSG_DATA(cmptr), &SocketFD, sizeof(int)); in sendFdPipe()291 free(cmptr); in sendFdPipe()326 struct cmsghdr* cmptr = (struct cmsghdr*)malloc(CONTROLLEN); in receiveFdPipe() local337 msghdr.msg_control = (caddr_t) cmptr; in receiveFdPipe()355 memcpy(&newfd, CMSG_DATA(cmptr), sizeof(int)); in receiveFdPipe()[all …]
Completed in 15 milliseconds