Home
last modified time | relevance | path

Searched refs:cmsg (Results 1 – 7 of 7) sorted by relevance

/system/core/logd/
DLogListener.cpp69 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&hdr); in onDataAvailable() local
70 while (cmsg != NULL) { in onDataAvailable()
71 if (cmsg->cmsg_level == SOL_SOCKET in onDataAvailable()
72 && cmsg->cmsg_type == SCM_CREDENTIALS) { in onDataAvailable()
73 cred = (struct ucred *)CMSG_DATA(cmsg); in onDataAvailable()
76 cmsg = CMSG_NXTHDR(&hdr, cmsg); in onDataAvailable()
/system/netd/client/
DFwmarkClient.cpp71 char cmsg[CMSG_SPACE(sizeof(fd))]; in send() member
75 memset(cmsgu.cmsg, 0, sizeof(cmsgu.cmsg)); in send()
76 message.msg_control = cmsgu.cmsg; in send()
77 message.msg_controllen = sizeof(cmsgu.cmsg); in send()
/system/core/libion/
Dion_test.c135 struct cmsghdr *cmsg; in ion_share_test() local
149 cmsg = CMSG_FIRSTHDR(&msg); in ion_share_test()
150 cmsg->cmsg_level = SOL_SOCKET; in ion_share_test()
151 cmsg->cmsg_type = SCM_RIGHTS; in ion_share_test()
152 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); in ion_share_test()
153 *(int *)CMSG_DATA(cmsg) = share_fd; in ion_share_test()
170 struct cmsghdr *cmsg; in ion_share_test() local
189 cmsg = CMSG_FIRSTHDR(&child_msg); in ion_share_test()
190 if (cmsg == NULL) { in ion_share_test()
194 recv_fd = *(int*)CMSG_DATA(cmsg); in ion_share_test()
/system/core/libcutils/
Duevent.c73 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&hdr); in uevent_kernel_recv() local
74 if (cmsg == NULL || cmsg->cmsg_type != SCM_CREDENTIALS) { in uevent_kernel_recv()
79 struct ucred *cred = (struct ucred *)CMSG_DATA(cmsg); in uevent_kernel_recv()
/system/bt/btif/src/
Dbtif_sock_util.c115 struct cmsghdr *cmsg; in sock_send_fd() local
124 cmsg = CMSG_FIRSTHDR(&msg); in sock_send_fd()
125 cmsg->cmsg_level = SOL_SOCKET; in sock_send_fd()
126 cmsg->cmsg_type = SCM_RIGHTS; in sock_send_fd()
127 cmsg->cmsg_len = CMSG_LEN(sizeof send_fd); in sock_send_fd()
128 memcpy(CMSG_DATA(cmsg), &send_fd, sizeof send_fd); in sock_send_fd()
/system/netd/server/
DFwmarkServer.cpp62 char cmsg[CMSG_SPACE(sizeof(*socketFd))]; in processClient() member
65 memset(cmsgu.cmsg, 0, sizeof(cmsgu.cmsg)); in processClient()
66 message.msg_control = cmsgu.cmsg; in processClient()
67 message.msg_controllen = sizeof(cmsgu.cmsg); in processClient()
/system/core/adb/
Djdwp_service.cpp339 struct cmsghdr* cmsg; in jdwp_process_event() local
356 cmsg = CMSG_FIRSTHDR(&msg); in jdwp_process_event()
357 cmsg->cmsg_len = msg.msg_controllen; in jdwp_process_event()
358 cmsg->cmsg_level = SOL_SOCKET; in jdwp_process_event()
359 cmsg->cmsg_type = SCM_RIGHTS; in jdwp_process_event()
360 ((int*)CMSG_DATA(cmsg))[0] = fd; in jdwp_process_event()