HomeSort by relevance Sort by last modified time
    Searched defs:cmsg (Results 1 - 16 of 16) sorted by null

  /system/core/libcutils/
uevent.c 56 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&hdr); local
57 if (cmsg == NULL || cmsg->cmsg_type != SCM_CREDENTIALS) {
62 struct ucred *cred = (struct ucred *)CMSG_DATA(cmsg);
  /external/bluetooth/bluez/audio/
ipc.c 88 struct cmsghdr *cmsg; local
106 for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL;
107 cmsg = CMSG_NXTHDR(&msgh, cmsg)) {
108 if (cmsg->cmsg_level == SOL_SOCKET
109 && cmsg->cmsg_type == SCM_RIGHTS) {
110 memcpy(&ret, CMSG_DATA(cmsg), sizeof(int));
unix.c 145 struct cmsghdr *cmsg; local
155 cmsg = CMSG_FIRSTHDR(&msgh);
156 cmsg->cmsg_level = SOL_SOCKET;
157 cmsg->cmsg_type = SCM_RIGHTS;
158 cmsg->cmsg_len = CMSG_LEN(sizeof(int));
160 memcpy(CMSG_DATA(cmsg), &fd, sizeof(int));
    [all...]
  /external/valgrind/main/none/tests/
fdleak_cmsg.c 58 struct cmsghdr *cmsg; local
67 cmsg = CMSG_FIRSTHDR(&msg);
68 cmsg->cmsg_level = SOL_SOCKET;
69 cmsg->cmsg_type = SCM_RIGHTS;
70 cmsg->cmsg_len = CMSG_LEN(sizeof(int) * 2);
71 ((int *)CMSG_DATA(cmsg))[0] = fd1;
72 ((int *)CMSG_DATA(cmsg))[1] = fd2;
95 struct cmsghdr *cmsg = &control_un.cm; local
130 cmsg = CMSG_FIRSTHDR(&msg);
131 while (cmsg) {
    [all...]
  /external/webkit/Source/WebKit2/Platform/CoreIPC/unix/
ConnectionUnix.cpp 360 struct cmsghdr* cmsg = CMSG_FIRSTHDR(&message); local
361 cmsg->cmsg_level = SOL_SOCKET;
362 cmsg->cmsg_type = SCM_RIGHTS;
363 cmsg->cmsg_len = CMSG_LEN(sizeof(int) * attachments.size());
365 int* fdptr = reinterpret_cast<int*>(CMSG_DATA(cmsg));
371 message.msg_controllen = cmsg->cmsg_len;
  /hardware/ti/omap4xxx/ion/
ion_test.c 151 struct cmsghdr *cmsg; local
165 cmsg = CMSG_FIRSTHDR(&msg);
166 cmsg->cmsg_level = SOL_SOCKET;
167 cmsg->cmsg_type = SCM_RIGHTS;
168 cmsg->cmsg_len = CMSG_LEN(sizeof(int));
169 *(int *)CMSG_DATA(cmsg) = share_fd;
185 struct cmsghdr *cmsg; local
204 cmsg = CMSG_FIRSTHDR(&child_msg);
205 if (cmsg == NULL) {
206 printf("no cmsg rcvd in child")
    [all...]
  /dalvik/vm/jdwp/
JdwpAdb.cpp 137 struct cmsghdr* cmsg; local
156 cmsg = CMSG_FIRSTHDR(&msg);
157 cmsg->cmsg_len = msg.msg_controllen;
158 cmsg->cmsg_level = SOL_SOCKET;
159 cmsg->cmsg_type = SCM_RIGHTS;
160 ((int*)(void*)CMSG_DATA(cmsg))[0] = -1;
176 return ((int*)(void*)CMSG_DATA(cmsg))[0];
  /external/ipsec-tools/src/racoon/
privsep.c 1546 struct cmsghdr *cmsg; local
1584 struct cmsghdr *cmsg; local
    [all...]
  /frameworks/base/core/jni/
android_net_LocalSocketImpl.cpp 475 "invalid cmsg length");
591 struct cmsghdr *cmsg; local
615 // See "man cmsg" really
618 cmsg = CMSG_FIRSTHDR(&msg);
619 cmsg->cmsg_level = SOL_SOCKET;
620 cmsg->cmsg_type = SCM_RIGHTS;
621 cmsg->cmsg_len = CMSG_LEN(sizeof fds);
622 memcpy(CMSG_DATA(cmsg), fds, sizeof fds);
  /system/core/adb/
jdwp_service.c 319 struct cmsghdr* cmsg; local
336 cmsg = CMSG_FIRSTHDR(&msg);
337 cmsg->cmsg_len = msg.msg_controllen;
338 cmsg->cmsg_level = SOL_SOCKET;
339 cmsg->cmsg_type = SCM_RIGHTS;
340 ((int*)CMSG_DATA(cmsg))[0] = fd;
  /external/bluetooth/hcidump/src/
hcidump.c 151 struct cmsghdr *cmsg; local
282 cmsg = CMSG_FIRSTHDR(&msg);
283 while (cmsg) {
285 switch (cmsg->cmsg_type) {
287 memcpy(&dir, CMSG_DATA(cmsg), sizeof(int));
291 memcpy(&frm.ts, CMSG_DATA(cmsg),
295 cmsg = CMSG_NXTHDR(&msg, cmsg);
  /external/quake/quake/src/QW/client/
menu.c 1057 char *cmsg[] = { local
1095 for (p = cmsg; *p; p++, y += 8) {
  /external/strace/
net.c 1085 struct cmsghdr *cmsg = len < sizeof(struct cmsghdr) ? local
1087 if (cmsg == NULL || umoven(tcp, addr, len, (char *) cmsg) < 0) {
1089 free(cmsg);
1093 tprintf(", {cmsg_len=%zu, cmsg_level=", cmsg->cmsg_len);
1094 printxval(socketlayers, cmsg->cmsg_level, "SOL_???");
1097 if (cmsg->cmsg_level == SOL_SOCKET) {
1100 printxval(scmvals, cmsg->cmsg_type, "SCM_???");
1101 cmsg_len = (len < cmsg->cmsg_len) ? len : cmsg->cmsg_len
    [all...]
  /external/dbus/dbus/
dbus-sysdeps-unix.c 288 we shall read at max plus the cmsg header. */
1506 } cmsg; local
1595 } cmsg; local
1601 } cmsg; local
    [all...]
  /external/ping/
ping.c 959 } cmsg = { {sizeof(struct cmsghdr) + sizeof(struct in_pktinfo), SOL_IP, IP_PKTINFO}, variable in typeref:struct:__anon9185
973 struct cmsghdr *cmsg; local
996 for (cmsg = CMSG_FIRSTHDR(&msg); cmsg; cmsg = CMSG_NXTHDR(&msg, cmsg)) {
997 if (cmsg->cmsg_level == SOL_IP) {
998 if (cmsg->cmsg_type == IP_RECVERR)
999 e = (struct sock_extended_err *)CMSG_DATA(cmsg);
1113 &iov, 1, &cmsg, 0, 0 }
    [all...]
  /external/qemu/
qemu-char.c 2072 struct cmsghdr *cmsg; local
2098 struct cmsghdr cmsg; member in union:__anon10146
    [all...]

Completed in 312 milliseconds