/external/libcups/backend/ |
D | network.c | 117 int datalen; /* Request/response data size */ in backendNetworkSideCB() local 121 datalen = sizeof(data); in backendNetworkSideCB() 123 if (cupsSideChannelRead(&command, &status, data, &datalen, 1.0)) in backendNetworkSideCB() 140 datalen = 0; in backendNetworkSideCB() 146 datalen = 1; in backendNetworkSideCB() 152 command == CUPS_SC_CMD_SNMP_GET ? "GET" : "GET_NEXT", datalen, in backendNetworkSideCB() 155 if (datalen < 2) in backendNetworkSideCB() 158 datalen = 0; in backendNetworkSideCB() 190 datalen = (int)(dataptr - data); in backendNetworkSideCB() 197 datalen = 0; in backendNetworkSideCB() [all …]
|
D | usb-unix.c | 542 int datalen; /* Request/response data size */ in side_cb() local 548 datalen = sizeof(data); in side_cb() 550 if (cupsSideChannelRead(&command, &status, data, &datalen, 1.0)) in side_cb() 563 datalen = 0; in side_cb() 569 datalen = 1; in side_cb() 579 datalen = 0; in side_cb() 584 datalen = strlen(data); in side_cb() 590 datalen = 0; in side_cb() 594 return (cupsSideChannelWrite(command, status, data, datalen, 1.0)); in side_cb()
|
D | testbackend.c | 37 static void walk_cb(const char *oid, const char *data, int datalen, 653 int datalen, /* I - Length of data */ in walk_cb() argument 660 if ((size_t)datalen > (sizeof(temp) - 1)) in walk_cb() 667 memcpy(temp, data, (size_t)datalen); in walk_cb() 668 temp[datalen] = '\0'; in walk_cb() 671 printf("CUPS_SC_CMD_SNMP_WALK %s, %d bytes (%s)\n", oid, datalen, temp); in walk_cb()
|
/external/libcups/cups/ |
D | sidechannel.c | 58 …int *datalen, /* IO - Size of data buffer on entry, number of bytes in buffer on re… in cupsSideChannelDoRequest() argument 68 if (cupsSideChannelRead(&rcommand, &status, data, datalen, timeout)) in cupsSideChannelDoRequest() 98 …int *datalen, /* IO - Size of data buffer on entry, number of bytes in buffer on re… in cupsSideChannelRead() argument 115 datalen, datalen ? *datalen : -1, timeout)); in cupsSideChannelRead() 231 if (templen > 0 && (!data || !datalen)) in cupsSideChannelRead() 240 else if (!datalen || templen > *datalen || templen > (bytes - 4)) in cupsSideChannelRead() 257 *datalen = templen; in cupsSideChannelRead() 297 int *datalen, /* IO - Size of OID buffer on entry, size of value on return */ in cupsSideChannelSNMPGet() argument 308 "timeout=%.3f)", oid, data, datalen, datalen ? *datalen : -1, in cupsSideChannelSNMPGet() 315 if (!oid || !*oid || !data || !datalen || *datalen < 2) in cupsSideChannelSNMPGet() [all …]
|
D | hash.c | 43 size_t datalen, /* I - Length of data to hash */ in cupsHashData() argument 47 if (!algorithm || !data || datalen == 0 || !hash || hashsize == 0) in cupsHashData() 66 CC_MD5_Update(&ctx, data, (CC_LONG)datalen); in cupsHashData() 83 CC_SHA1_Update(&ctx, data, (CC_LONG)datalen); in cupsHashData() 96 CC_SHA224_Update(&ctx, data, (CC_LONG)datalen); in cupsHashData() 109 CC_SHA256_Update(&ctx, data, (CC_LONG)datalen); in cupsHashData() 122 CC_SHA384_Update(&ctx, data, (CC_LONG)datalen); in cupsHashData() 135 CC_SHA512_Update(&ctx, data, (CC_LONG)datalen); in cupsHashData() 154 CC_SHA512_Update(&ctx, data, (CC_LONG)datalen); in cupsHashData() 175 CC_SHA512_Update(&ctx, data, (CC_LONG)datalen); in cupsHashData() [all …]
|
D | sidechannel.h | 109 int datalen, void *context); 125 char *data, int *datalen, 129 char *data, int *datalen, 133 const char *data, int datalen, 138 int *datalen, double timeout)
|
/external/tcpdump/ |
D | print-tcp.c | 65 u_int datalen, int exp); 422 register u_int i, opt, datalen; in tcp_print() local 443 datalen = 0; in tcp_print() 454 datalen = 2; in tcp_print() 455 LENCHECK(datalen); in tcp_print() 460 datalen = 1; in tcp_print() 461 LENCHECK(datalen); in tcp_print() 466 datalen = len - 2; in tcp_print() 467 if (datalen % 8 != 0) { in tcp_print() 472 ND_PRINT((ndo, " %d ", datalen / 8)); in tcp_print() [all …]
|
/external/openssh/ |
D | ssh-ed25519.c | 37 const u_char *data, size_t datalen, u_int compat) in ssh_ed25519_sign() argument 53 datalen >= INT_MAX - crypto_sign_ed25519_BYTES) in ssh_ed25519_sign() 55 smlen = slen = datalen + crypto_sign_ed25519_BYTES; in ssh_ed25519_sign() 59 if ((ret = crypto_sign_ed25519(sig, &smlen, data, datalen, in ssh_ed25519_sign() 60 key->ed25519_sk)) != 0 || smlen <= datalen) { in ssh_ed25519_sign() 70 (r = sshbuf_put_string(b, sig, smlen - datalen)) != 0) in ssh_ed25519_sign() 95 const u_char *data, size_t datalen, u_int compat) in ssh_ed25519_verify() argument 108 datalen >= INT_MAX - crypto_sign_ed25519_BYTES || in ssh_ed25519_verify() 129 if (datalen >= SIZE_MAX - len) { in ssh_ed25519_verify() 133 smlen = len + datalen; in ssh_ed25519_verify() [all …]
|
D | ssh-xmss.c | 40 const u_char *data, size_t datalen, u_int compat) in ssh_xmss_sign() argument 60 if (datalen >= INT_MAX - required_siglen) in ssh_xmss_sign() 62 smlen = slen = datalen + required_siglen; in ssh_xmss_sign() 68 data, datalen, sshkey_xmss_params(key))) != 0 || smlen <= datalen) { in ssh_xmss_sign() 78 (r = sshbuf_put_string(b, sig, smlen - datalen)) != 0) in ssh_xmss_sign() 115 const u_char *data, size_t datalen, u_int compat) in ssh_xmss_verify() argument 133 if (datalen >= INT_MAX - required_siglen) in ssh_xmss_verify() 153 if (datalen >= SIZE_MAX - len) { in ssh_xmss_verify() 157 smlen = len + datalen; in ssh_xmss_verify() 164 memcpy(sm+len, data, datalen); in ssh_xmss_verify() [all …]
|
D | sshkey.h | 285 u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, 288 const u_char *sig, size_t siglen, const u_char *data, size_t datalen, 291 const u_char *data, size_t datalen, u_int compat); 294 const u_char *data, size_t datalen, u_int compat); 296 const u_char *data, size_t datalen, u_int compat); 299 const u_char *data, size_t datalen, u_int compat); 302 const u_char *data, size_t datalen, u_int compat, 305 const u_char *data, size_t datalen, u_int compat); 308 const u_char *data, size_t datalen, u_int compat); 311 const u_char *data, size_t datalen, u_int compat, [all …]
|
D | ssh-ecdsa.c | 51 const u_char *data, size_t datalen, u_int compat) in ssh_ecdsa_sign() argument 73 if ((ret = ssh_digest_memory(hash_alg, data, datalen, in ssh_ecdsa_sign() 116 const u_char *data, size_t datalen, u_int compat) in ssh_ecdsa_verify() argument 173 if ((ret = ssh_digest_memory(hash_alg, data, datalen, in ssh_ecdsa_verify()
|
/external/kernel-headers/original/uapi/linux/ |
D | tipc_config.h | 255 #define TLV_ALIGN(datalen) (((datalen)+(TLV_ALIGNTO-1)) & ~(TLV_ALIGNTO-1)) argument 256 #define TLV_LENGTH(datalen) (sizeof(struct tlv_desc) + (datalen)) argument 257 #define TLV_SPACE(datalen) (TLV_ALIGN(TLV_LENGTH(datalen))) argument 394 #define TCM_ALIGN(datalen) (((datalen)+3) & ~3) argument 395 #define TCM_LENGTH(datalen) (sizeof(struct tipc_cfg_msg_hdr) + datalen) argument 396 #define TCM_SPACE(datalen) (TCM_ALIGN(TCM_LENGTH(datalen))) argument
|
/external/mdnsresponder/mDNSShared/ |
D | dnssd_clientlib.c | 170 uint16_t datalen; // Length currently in use member 192 txtRec->datalen = 0; in TXTRecordCreate() 218 if (txtRec->datalen + keyvalsize > txtRec->buflen) in TXTRecordSetValue() 221 unsigned long newlen = txtRec->datalen + keyvalsize; in TXTRecordSetValue() 225 memcpy(newbuf, txtRec->buffer, txtRec->datalen); in TXTRecordSetValue() 231 start = txtRec->buffer + txtRec->datalen; in TXTRecordSetValue() 242 txtRec->datalen += p - start; in TXTRecordSetValue() 253 uint8_t *item = InternalTXTRecordSearch(txtRec->datalen, txtRec->buffer, key, &keylen); in TXTRecordRemoveValue() 256 remainder = (unsigned long)((txtRec->buffer + txtRec->datalen) - (item + itemlen)); in TXTRecordRemoveValue() 259 txtRec->datalen -= itemlen; in TXTRecordRemoveValue() [all …]
|
/external/ltp/utils/sctp/testlib/ |
D | sctputil.c | 181 test_check_buf_notification(void *buf, int datalen, int msg_flags, in test_check_buf_notification() argument 194 if (datalen != expected_datalen) in test_check_buf_notification() 197 datalen, expected_datalen); in test_check_buf_notification() 221 test_check_msg_notification(struct msghdr *msg, int datalen, in test_check_msg_notification() argument 225 test_check_buf_notification(msg->msg_iov[0].iov_base, datalen, in test_check_msg_notification() 234 test_check_buf_data(void *buf, int datalen, int msg_flags, in test_check_buf_data() argument 246 if (datalen != expected_datalen) in test_check_buf_data() 249 datalen, expected_datalen); in test_check_buf_data() 278 test_check_msg_data(struct msghdr *msg, int datalen, int expected_datalen, in test_check_msg_data() argument 299 test_check_buf_data(msg->msg_iov[0].iov_base, datalen, msg->msg_flags, in test_check_msg_data()
|
/external/ipsec-tools/src/racoon/ |
D | isakmp_frag.c | 90 size_t datalen; local 120 datalen = max_datalen; 122 datalen = len; 126 + datalen; 143 if (len == datalen) 149 memcpy(data, sdata, datalen); 158 len -= datalen; 159 sdata += datalen;
|
/external/wpa_supplicant_8/src/common/ |
D | ieee802_11_common.h | 17 u8 datalen; member 281 (int) sizeof(*_elem) + _elem->datalen; \ 282 _elem = (const struct element *) (_elem->data + _elem->datalen)) 284 #define for_each_element_id(element, _id, data, datalen) \ argument 285 for_each_element(element, data, datalen) \ 291 element->datalen > 0 && \ 295 for_each_element(sub, (element)->data, (element)->datalen) 298 for_each_element_id(sub, id, (element)->data, (element)->datalen) 301 for_each_element_extid(sub, extid, (element)->data, (element)->datalen) 317 const void *data, size_t datalen) in for_each_element_completed() argument [all …]
|
/external/libcups/filter/ |
D | commandtops.c | 133 int datalen; /* Side-channel data length */ in auto_configure() local 140 datalen = 1; in auto_configure() 141 if (cupsSideChannelDoRequest(CUPS_SC_CMD_GET_BIDI, buffer, &datalen, in auto_configure() 183 datalen = 1; in auto_configure() 185 while (cupsSideChannelDoRequest(CUPS_SC_CMD_GET_CONNECTED, buffer, &datalen, in auto_configure() 286 datalen = 0; in auto_configure() 287 cupsSideChannelDoRequest(CUPS_SC_CMD_DRAIN_OUTPUT, buffer, &datalen, 5.0); in auto_configure()
|
/external/iputils/Modules/ |
D | pg3.c | 244 int datalen, iplen; in fill_packet() local 263 datalen = pkt_size-14-20-8; /* Eth + IPh + UDPh */ in fill_packet() 264 if (datalen < 0) in fill_packet() 265 datalen = 0; in fill_packet() 269 udph->len= htons(datalen+8); /* DATA + udphdr */ in fill_packet() 280 iplen = 20 + 8 + datalen; in fill_packet() 290 skb_put(skb, datalen); in fill_packet() 297 if (datalen > frags*PAGE_SIZE) { in fill_packet() 298 skb_put(skb, datalen-frags*PAGE_SIZE); in fill_packet() 299 datalen = frags*PAGE_SIZE; in fill_packet() [all …]
|
/external/iputils/ |
D | traceroute6.c | 332 int datalen = sizeof(struct pkt_format); variable 470 datalen = atoi(*argv); in main() 474 if (datalen == 0) in main() 475 datalen = sizeof(struct pkt_format); in main() 476 else if (datalen < (int)sizeof(struct pkt_format) || in main() 477 datalen >= MAXPACKET) { in main() 487 sendbuff = malloc(datalen); in main() 528 if (setsockopt(sndsock, SOL_SOCKET, SO_SNDBUF, (char *)&datalen, in main() 529 sizeof(datalen)) < 0) { in main() 590 Fprintf(stderr, ", %d hops max, %d byte packets\n", max_ttl, datalen); in main() [all …]
|
/external/python/cpython3/Modules/ |
D | binascii.c | 1307 Py_ssize_t datalen = 0; in binascii_a2b_qp_impl() local 1311 datalen = data->len; in binascii_a2b_qp_impl() 1315 odata = (unsigned char *) PyMem_Calloc(1, datalen); in binascii_a2b_qp_impl() 1322 while (in < datalen) { in binascii_a2b_qp_impl() 1325 if (in >= datalen) break; in binascii_a2b_qp_impl() 1329 while (in < datalen && ascii_data[in] != '\n') in++; in binascii_a2b_qp_impl() 1331 if (in < datalen) in++; in binascii_a2b_qp_impl() 1338 else if ((in + 1 < datalen) && in binascii_a2b_qp_impl() 1412 Py_ssize_t datalen = 0, odatalen = 0; in binascii_b2a_qp_impl() local 1420 datalen = data->len; in binascii_b2a_qp_impl() [all …]
|
/external/python/cpython2/Mac/Modules/ |
D | icgluemodule.c | 125 int datalen; in ici_ICSetPref() local 128 &data, &datalen)) in ici_ICSetPref() 131 (long)datalen)) != 0) in ici_ICSetPref() 241 int datalen; in ici_ICParseURL() local 245 if (!PyArg_ParseTuple(args, "O&s#llO&", PyMac_GetStr255, hint, &data, &datalen, in ici_ICParseURL() 248 if ((err=ICParseURL(self->inst, hint, (Ptr)data, (long)datalen, in ici_ICParseURL() 265 int datalen; in ici_ICLaunchURL() local 268 if (!PyArg_ParseTuple(args, "O&s#ll", PyMac_GetStr255, hint, &data, &datalen, in ici_ICLaunchURL() 271 if ((err=ICLaunchURL(self->inst, hint, (Ptr)data, (long)datalen, in ici_ICLaunchURL()
|
/external/python/cpython2/Modules/ |
D | binascii.c | 1185 Py_ssize_t datalen = 0; in binascii_a2b_qp() local 1194 datalen = pdata.len; in binascii_a2b_qp() 1200 odata = (unsigned char *) PyMem_Malloc(datalen); in binascii_a2b_qp() 1206 memset(odata, 0, datalen); in binascii_a2b_qp() 1209 while (in < datalen) { in binascii_a2b_qp() 1212 if (in >= datalen) break; in binascii_a2b_qp() 1216 while (in < datalen && data[in] != '\n') in++; in binascii_a2b_qp() 1218 if (in < datalen) in++; in binascii_a2b_qp() 1225 else if ((in + 1 < datalen) && in binascii_a2b_qp() 1291 Py_ssize_t datalen = 0, odatalen = 0; in binascii_b2a_qp() local [all …]
|
/external/libpcap/ |
D | pcap-snoop.c | 70 register u_int datalen; in pcap_read_snoop() local 103 datalen = sh->snoop_packetlen; in pcap_read_snoop() 111 (datalen < p->snapshot)) in pcap_read_snoop() 112 datalen += (64 * 1024); in pcap_read_snoop() 114 caplen = (datalen < p->snapshot) ? datalen : p->snapshot; in pcap_read_snoop() 129 pcap_filter(p->fcode.bf_insns, cp, datalen, caplen)) { in pcap_read_snoop() 134 h.len = datalen; in pcap_read_snoop()
|
/external/libjpeg-turbo/ |
D | jcapimin.c | 208 unsigned int datalen) in jpeg_write_marker() argument 218 (*cinfo->marker->write_marker_header) (cinfo, marker, datalen); in jpeg_write_marker() 220 while (datalen--) { in jpeg_write_marker() 229 jpeg_write_m_header(j_compress_ptr cinfo, int marker, unsigned int datalen) in jpeg_write_m_header() argument 237 (*cinfo->marker->write_marker_header) (cinfo, marker, datalen); in jpeg_write_m_header()
|
/external/python/cpython2/Modules/cjkcodecs/ |
D | multibytecodec.c | 469 const Py_UNICODE **data, Py_ssize_t datalen, in multibytecodec_encode() argument 475 if (datalen == 0 && !(flags & MBENC_RESET)) in multibytecodec_encode() 481 buf.inbuf_end = buf.inbuf_top + datalen; in multibytecodec_encode() 483 if (datalen > (PY_SSIZE_T_MAX - 16) / 2) { in multibytecodec_encode() 488 buf.outobj = PyString_FromStringAndSize(NULL, datalen * 2 + 16); in multibytecodec_encode() 550 Py_ssize_t datalen; in MultibyteCodec_Encode() local 571 datalen = PyUnicode_GET_SIZE(arg); in MultibyteCodec_Encode() 583 (const Py_UNICODE **)&data, datalen, errorcb, in MultibyteCodec_Encode() 590 return make_tuple(r, datalen); in MultibyteCodec_Encode() 607 Py_ssize_t datalen, finalsize; in MultibyteCodec_Decode() local [all …]
|