/frameworks/base/core/jni/ |
android_net_LocalSocketImpl.cpp | 140 "invalid cmsg length"); 254 struct cmsghdr *cmsg; local 278 // See "man cmsg" really 281 cmsg = CMSG_FIRSTHDR(&msg); 282 cmsg->cmsg_level = SOL_SOCKET; 283 cmsg->cmsg_type = SCM_RIGHTS; 284 cmsg->cmsg_len = CMSG_LEN(sizeof fds); 285 memcpy(CMSG_DATA(cmsg), fds, sizeof fds);
|
/system/core/adb/ |
jdwp_service.cpp | 273 struct cmsghdr* cmsg; local 289 cmsg = CMSG_FIRSTHDR(&msg); 290 cmsg->cmsg_len = msg.msg_controllen; 291 cmsg->cmsg_level = SOL_SOCKET; 292 cmsg->cmsg_type = SCM_RIGHTS; 293 ((int*)CMSG_DATA(cmsg))[0] = fd;
|
/external/ltp/utils/sctp/func_tests/ |
test_sockopt.c | 76 struct cmsghdr *cmsg; local 186 cmsg = CMSG_FIRSTHDR(&outmessage); 187 cmsg->cmsg_level = IPPROTO_SCTP; 188 cmsg->cmsg_type = SCTP_SNDRCV; 189 cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); 190 outmessage.msg_controllen = cmsg->cmsg_len; 191 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); 384 cmsg = CMSG_FIRSTHDR(&outmessage); 385 cmsg->cmsg_level = IPPROTO_SCTP; 386 cmsg->cmsg_type = SCTP_SNDRCV [all...] |
/external/iputils/ |
traceroute6.c | 702 struct cmsghdr *cmsg; local 705 for (cmsg = CMSG_FIRSTHDR(&msg); 706 cmsg; 707 cmsg = CMSG_NXTHDR(&msg, cmsg)) { 708 if (cmsg->cmsg_level != SOL_IPV6) 710 switch (cmsg->cmsg_type) { 715 ipi = (struct in6_pktinfo *)CMSG_DATA(cmsg);
|
/external/strace/ |
msghdr.c | 52 struct cmsghdr *cmsg; member in union:__anon31878 310 u.cmsg->cmsg_len; 315 u.cmsg->cmsg_level; 320 u.cmsg->cmsg_type;
|
/external/ltp/testcases/network/lib6/ |
asapi_03.c | 303 unsigned char cmsg[2048]; local 336 msg.msg_control = cmsg; 337 msg.msg_controllen = sizeof(cmsg);
|
/external/iproute2/lib/ |
libnetlink.c | 497 struct cmsghdr *cmsg; local 523 for (cmsg = CMSG_FIRSTHDR(&msg); cmsg; 524 cmsg = CMSG_NXTHDR(&msg, cmsg)) 525 if (cmsg->cmsg_level == SOL_NETLINK && 526 cmsg->cmsg_type == NETLINK_LISTEN_ALL_NSID && 527 cmsg->cmsg_len == CMSG_LEN(sizeof(int))) { 528 int *data = (int *)CMSG_DATA(cmsg);
|
/external/protobuf/python/google/protobuf/pyext/ |
message.cc | 464 CMessage* cmsg = reinterpret_cast<CMessage*>(child); local 465 if (visitor.VisitCMessage(cmsg, descriptor) == -1) 2322 CMessage* cmsg = cmessage::NewEmptyMessage(message_class); local 2437 CMessage* cmsg = reinterpret_cast<CMessage*>(py_cmsg); local 2806 CMessage* cmsg = reinterpret_cast<CMessage*>(msg); local 2814 CMessage* cmsg = reinterpret_cast<CMessage*>(msg); local [all...] |
map_container.cc | 618 CMessage* cmsg = cmessage::NewEmptyMessage(self->message_class); local 619 ret = reinterpret_cast<PyObject*>(cmsg); 621 if (cmsg == NULL) { 624 cmsg->owner = self->owner; 625 cmsg->message = message; 626 cmsg->parent = self->parent; [all...] |
repeated_scalar_container.cc | 270 CMessage* cmsg = reinterpret_cast<CMessage*>(py_cmsg); local 273 cmsg->owner = self->owner; 274 cmsg->parent = self->parent; 275 cmsg->message = const_cast<Message*>(&msg); 276 cmsg->read_only = false;
|
/hardware/qcom/gps/loc_api/libloc_api_50001/ |
loc_eng_dmn_conn.cpp | 230 cmsgbuf.cmsg.cmsg_response.result = status;
|
/hardware/qcom/gps/msm8084/loc_api/libloc_api_50001/ |
loc_eng_dmn_conn.cpp | 230 cmsgbuf.cmsg.cmsg_response.result = status;
|
/hardware/qcom/gps/msm8909/loc_api/libloc_api_50001/ |
loc_eng_dmn_conn.cpp | 230 cmsgbuf.cmsg.cmsg_response.result = status;
|
/hardware/qcom/gps/msm8960/loc_api/libloc_api_50001/ |
loc_eng_dmn_conn.cpp | 230 cmsgbuf.cmsg.cmsg_response.result = status;
|
/hardware/qcom/gps/msm8994/loc_api/libloc_api_50001/ |
loc_eng_dmn_conn.cpp | 230 cmsgbuf.cmsg.cmsg_response.result = status;
|
/hardware/qcom/gps/msm8996/loc_api/libloc_api_50001/ |
loc_eng_dmn_conn.cpp | 230 cmsgbuf.cmsg.cmsg_response.result = status;
|
/external/llvm/bindings/go/llvm/ |
target.go | 128 cmsg := C.LLVMCopyStringRepOfTargetData(td.C) 129 s = C.GoString(cmsg) 130 C.LLVMDisposeMessage(cmsg)
|
/external/deqp/external/vulkancts/modules/vulkan/api/ |
vktApiExternalMemoryTests.cpp | 1378 cmsghdr* cmsg; local 1433 const cmsghdr* const cmsg = CMSG_FIRSTHDR(&msg); local 2384 cmsghdr* cmsg; local 2439 const cmsghdr* const cmsg = CMSG_FIRSTHDR(&msg); local 3063 cmsghdr* cmsg; local 3117 const cmsghdr* const cmsg = CMSG_FIRSTHDR(&msg); local [all...] |
/external/openssh/regress/ |
netcat.c | 1000 struct cmsghdr *cmsg; local 1015 cmsg = CMSG_FIRSTHDR(&msg); 1016 cmsg->cmsg_len = CMSG_LEN(sizeof(int)); 1017 cmsg->cmsg_level = SOL_SOCKET; 1018 cmsg->cmsg_type = SCM_RIGHTS; 1019 *(int *)CMSG_DATA(cmsg) = nfd; [all...] |
/external/dhcpcd-6.8.2/ |
if-linux.c | 1246 struct cmsghdr *cmsg; local 1269 for (cmsg = CMSG_FIRSTHDR(&msg); 1270 cmsg; 1271 cmsg = CMSG_NXTHDR(&msg, cmsg)) 1273 if (cmsg->cmsg_level == SOL_PACKET && 1274 cmsg->cmsg_type == PACKET_AUXDATA) { 1275 aux = (void *)CMSG_DATA(cmsg); [all...] |
/external/openssh/ |
defines.h | 545 #define CMSG_DATA(cmsg) ((u_char *)(cmsg) + __CMSG_ALIGN(sizeof(struct cmsghdr)))
|
/external/google-breakpad/src/client/linux/handler/ |
exception_handler_unittest.cc | 898 char cmsg[kControlMsgSize]; local 899 memset(cmsg, 0, kControlMsgSize); 900 msg.msg_control = cmsg; 901 msg.msg_controllen = sizeof(cmsg); [all...] |
/external/valgrind/include/vki/ |
vki-darwin.h | 203 #define VKI_CMSG_DATA(cmsg) CMSG_DATA(cmsg) 205 #define VKI_CMSG_NXTHDR(mhdr, cmsg) CMSG_NXTHDR(mhdr, cmsg)
|
/prebuilts/go/darwin-x86/src/syscall/ |
syscall_linux_amd64.go | 134 func (cmsg *Cmsghdr) SetLen(length int) { 135 cmsg.Len = uint64(length)
|
syscall_linux_arm.go | 216 func (cmsg *Cmsghdr) SetLen(length int) { 217 cmsg.Len = uint32(length)
|