Lines Matching full:sizeof
54 #define check_nul(str) (str[sizeof(str) - 1] == '\0')
123 char cmsg_b[CMSG_SPACE(sizeof(int))], m = 'm';
125 struct iovec iov = { &m, sizeof(m) };
128 memset(&msgh, 0, sizeof(msgh));
132 msgh.msg_controllen = CMSG_LEN(sizeof(int));
137 cmsg->cmsg_len = CMSG_LEN(sizeof(int));
139 memcpy(CMSG_DATA(cmsg), &fd, sizeof(int));
164 memset(buf, 0, sizeof(buf));
167 rsp->h.length = sizeof(*rsp);
238 codec->length = sizeof(*pcm);
270 memset(buf, 0, sizeof(buf));
276 rsp->h.length = sizeof(*rsp) + length;
280 strncpy(rsp->object, dev->path, sizeof(rsp->object));
302 memset(buf, 0, sizeof(buf));
306 rsp->h.length = sizeof(*rsp);
334 memset(buf, 0, sizeof(buf));
338 rsp->h.length = sizeof(*rsp);
365 memset(buf, 0, sizeof(buf));
368 rsp->h.length = sizeof(*rsp);
372 memset(buf, 0, sizeof(buf));
375 ind->h.length = sizeof(*ind);
403 memset(buf, 0, sizeof(buf));
406 rsp->h.length = sizeof(*rsp);
410 memset(buf, 0, sizeof(buf));
413 ind->h.length = sizeof(*ind);
435 memset(buf, 0, sizeof(buf));
438 rsp->h.length = sizeof(*rsp);
521 if (space_left < sizeof(sbc_capabilities_t))
531 codec->length = sizeof(sbc_capabilities_t);
546 if (space_left < sizeof(mpeg_capabilities_t))
556 codec->length = sizeof(mpeg_capabilities_t);
569 codec_length = cap->length - (sizeof(struct avdtp_service_capability)
570 + sizeof(struct avdtp_media_codec_capability));
571 type_length = sizeof(codec_cap->media_codec_type);
573 sizeof(codec_capabilities_t);
621 memset(buf, 0, sizeof(buf));
626 rsp->h.length = sizeof(*rsp);
629 strncpy(rsp->object, client->dev->path, sizeof(rsp->object));
714 memset(buf, 0, sizeof(buf));
734 rsp->h.length = sizeof(*rsp);
770 memset(buf, 0, sizeof(buf));
773 rsp->h.length = sizeof(*rsp);
777 memset(buf, 0, sizeof(buf));
780 rsp->h.length = sizeof(*ind);
823 memset(buf, 0, sizeof(buf));
826 rsp->h.length = sizeof(*rsp);
900 memset(buf, 0, sizeof(buf));
904 rsp->h.length = sizeof(*rsp);
908 strncpy(rsp->object, dev->path, sizeof(rsp->object));
1217 memset(buf, 0, sizeof(buf));
1221 rsp->h.length = sizeof(*rsp);
1491 memset(&mpeg_cap, 0, sizeof(mpeg_cap));
1503 sizeof(mpeg_cap));
1510 memset(&sbc_cap, 0, sizeof(sbc_cap));
1523 sizeof(sbc_cap));
1619 memset(buf, 0, sizeof(buf));
1622 rsp->h.length = sizeof(*rsp);
1664 memset(buf, 0, sizeof(buf));
1667 rsp->h.length = sizeof(*rsp);
1694 memset(buf, 0, sizeof(buf));
1696 len = recv(client->sock, buf, sizeof(buf), 0);
1777 memset(&addr, 0, sizeof(addr));
1778 addrlen = sizeof(addr);
1828 memset(&ind, 0, sizeof(ind));
1831 ind.h.length = sizeof(ind);
1860 if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) {