/system/connectivity/wifilogd/ |
D | raw_os.cpp | 46 ssize_t RawOs::Recv(int sockfd, void* buf, size_t buflen, int flags) { in Recv() argument 47 return recv(sockfd, buf, buflen, flags); in Recv() 50 ssize_t RawOs::Write(int fd, const void* buf, size_t buflen) { in Write() argument 51 return write(fd, buf, buflen); in Write()
|
D | os.cpp | 94 size_t buflen) { in ReceiveDatagram() argument 98 CHECK(buflen <= GetMaxVal<ssize_t>()); in ReceiveDatagram() 100 const ssize_t res = raw_os_->Recv(fd, buf, buflen, MSG_TRUNC); in ReceiveDatagram() 113 size_t buflen) { in Write() argument 117 CHECK(buflen <= GetMaxVal<ssize_t>()); in Write() 119 const ssize_t res = raw_os_->Write(fd, buf, buflen); in Write() 125 SAFELY_CLAMP(buflen, ssize_t, 0, in Write()
|
D | raw_os.h | 49 virtual ssize_t Recv(int sockfd, void* buf, size_t buflen, int flags); 52 virtual ssize_t Write(int fd, const void* buf, size_t buflen);
|
D | memory_reader.h | 35 MemoryReader(const void* buf, size_t buflen) in MemoryReader() argument 36 : head_(static_cast<const uint8_t*>(buf)), n_bytes_avail_(buflen) {} in MemoryReader()
|
D | os.h | 87 size_t buflen); 97 size_t buflen);
|
/system/extras/ioshark/ |
D | ioshark_bench_mmap.c | 107 char **bufp, int *buflen, u_int64_t *op_counts, in mmap_do_io() argument 115 p = get_buf(bufp, buflen, len, 0); in mmap_do_io() 131 p = get_buf(bufp, buflen, len, 1); in mmap_do_io() 146 p = get_buf(bufp, buflen, len, 0); in mmap_do_io() 167 char **bufp, int *buflen, u_int64_t *op_counts, in ioshark_handle_mmap() argument 189 bufp, buflen, op_counts, in ioshark_handle_mmap() 198 mmap_do_io(db_node, prot, offset, len, bufp, buflen, in ioshark_handle_mmap()
|
D | ioshark_bench.c | 217 char **bufp, int *buflen) in do_one_io() argument 241 p = get_buf(bufp, buflen, file_op->prw_len, 0); in do_one_io() 256 p = get_buf(bufp, buflen, file_op->prw_len, 1); in do_one_io() 271 p = get_buf(bufp, buflen, file_op->rw_len, 0); in do_one_io() 286 p = get_buf(bufp, buflen, file_op->rw_len, 1); in do_one_io() 303 bufp, buflen, op_counts, in do_one_io() 403 int buflen = 0; in do_io() local 477 op_counts, &rw_bytes, &buf, &buflen); in do_io()
|
D | ioshark_bench.h | 140 char *get_buf(char **buf, int *buflen, int len, int do_fill); 146 char **bufp, int *buflen, u_int64_t *op_counts,
|
D | ioshark_bench_subr.c | 241 get_buf(char **buf, int *buflen, int len, int do_fill __attribute__((unused))) in get_buf() argument 251 if (*buflen < len) { in get_buf() 252 *buflen = MAX(MINBUFLEN, len * 2); in get_buf() 255 *buf = malloc(*buflen); in get_buf() 261 count = *buflen / sizeof(u_int32_t); in get_buf() 277 int buflen = 0; in create_file() local 287 buf = get_buf(&buf, &buflen, n, 1); in create_file()
|
/system/netd/resolv/ |
D | res_mkquery.cpp | 109 int buflen) /* size of buffer */ in res_nmkquery() argument 122 if ((buf == NULL) || (buflen < HFIXEDSZ)) return (-1); in res_nmkquery() 131 ep = buf + buflen; in res_nmkquery() 199 int buflen, /* size of buffer */ in res_nopt() argument 210 ep = buf + buflen; in res_nopt() 235 if (minlen > buflen) { in res_nopt() 238 padlen = std::min(padlen, static_cast<uint16_t>(buflen - minlen)); in res_nopt()
|
D | gethnamaddr.cpp | 125 char* buf, size_t buflen); 145 res_state res, struct hostent* hent, char* buf, size_t buflen, in getanswer() argument 188 ep = buf + buflen; in getanswer() 412 char* buf, size_t buflen) { in gethostbyname_internal_real() argument 428 if (buflen < size) goto nospc; in gethostbyname_internal_real() 468 info.buflen = buflen; in gethostbyname_internal_real() 477 HENT_ARRAY(hp->h_addr_list, 1, buf, buflen); in gethostbyname_internal_real() 478 HENT_ARRAY(hp->h_aliases, 0, buf, buflen); in gethostbyname_internal_real() 481 if (size > buflen) goto nospc; in gethostbyname_internal_real() 489 buflen -= size; in gethostbyname_internal_real() [all …]
|
D | sethostent.cpp | 83 if ((ptr = buf = (char*) malloc(len = info->buflen)) == NULL) { in _hf_gethtbyname2() 97 hp = netbsd_gethostent_r(hf, info->hp, info->buf, info->buflen, &he); in _hf_gethtbyname2() 123 if ((size_t)(ptr - buf) >= info->buflen) goto nospc; in _hf_gethtbyname2() 143 len = info->buflen; in _hf_gethtbyname2() 192 while ((hp = netbsd_gethostent_r(hf, info->hp, info->buf, info->buflen, &he)) != NULL) in _hf_gethtbyaddr()
|
D | res_send.cpp | 376 int res_nsend(res_state statp, const u_char* buf, int buflen, u_char* ans, int anssiz, int* rcode, in res_nsend() argument 387 res_pquery(buf, buflen); in res_nsend() 389 v_circuit = (statp->options & RES_USEVC) || buflen > PACKETSZ; in res_nsend() 394 cache_status = _resolv_cache_lookup(statp->netid, buf, buflen, ans, anssiz, &anslen, flags); in res_nsend() 409 _resolv_cache_query_failed(statp->netid, buf, buflen, flags); in res_nsend() 539 resplen = res_tls_send(statp, Slice(const_cast<u_char*>(buf), buflen), in res_nsend() 543 _resolv_cache_add(statp->netid, buf, buflen, ans, resplen); in res_nsend() 548 _resolv_cache_query_failed(statp->netid, buf, buflen, flags); in res_nsend() 566 n = send_vc(statp, ¶ms, buf, buflen, ans, anssiz, &terrno, ns, &now, rcode, in res_nsend() 584 _resolv_cache_query_failed(statp->netid, buf, buflen, flags); in res_nsend() [all …]
|
D | res_debug.cpp | 161 int buflen = 2048; in do_section() local 170 char* buf = (char*) malloc((size_t) buflen); in do_section() 237 n = ns_sprintrr(handle, &rr, NULL, NULL, buf, (u_int) buflen); in do_section() 242 if (buflen < 131072) { in do_section() 243 buf = (char*) malloc((size_t)(buflen += 1024)); in do_section()
|
D | hostent.h | 40 size_t buflen; member
|
/system/connectivity/wifilogd/tests/ |
D | mock_raw_os.h | 38 MOCK_METHOD4(Recv, ssize_t(int sockfd, void* buf, size_t buflen, int flags)); 39 MOCK_METHOD3(Write, ssize_t(int fd, const void* buf, size_t buflen));
|
D | mock_os.h | 41 std::tuple<size_t, Errno>(int fd, void* buf, size_t buflen)); 43 size_t buflen));
|
D | command_processor_unittest.cpp | 73 [&accumulator](int /*fd*/, const void* write_buf, size_t buflen) { in CommandProcessorTest() argument 74 accumulator.append(static_cast<const char*>(write_buf), buflen); in CommandProcessorTest() 75 return std::tuple<size_t, Os::Errno>(buflen, 0); in CommandProcessorTest() 406 [&written_to_os](int /*fd*/, const void* write_buf, size_t buflen) { in TEST_F() argument 407 written_to_os.append(static_cast<const char*>(write_buf), buflen); in TEST_F() 408 return std::tuple<size_t, Os::Errno>{buflen / 2, EINTR}; in TEST_F()
|
/system/core/libkeyutils/ |
D | keyutils.cpp | 77 long keyctl_get_security(key_serial_t id, char* buffer, size_t buflen) { in keyctl_get_security() argument 78 return keyctl(KEYCTL_GET_SECURITY, id, buffer, buflen); in keyctl_get_security()
|
/system/core/libkeyutils/include/ |
D | keyutils.h | 56 long keyctl_get_security(key_serial_t key, char* buffer, size_t buflen);
|
/system/core/libpackagelistparser/ |
D | packagelistparser.c | 102 size_t buflen = 0; in packagelist_parse() local 114 while ((bytesread = getline(&buf, &buflen, fp)) > 0) { in packagelist_parse()
|
/system/core/logcat/tests/ |
D | logcat_test.cpp | 220 static char* fgetLongTime(char* buffer, size_t buflen, FILE* fp) { in fgetLongTime() argument 221 while (fgets(buffer, buflen, fp)) { in fgetLongTime()
|
/system/netd/tests/ |
D | binder_test.cpp | 753 int netmaskToPrefixLength(const uint8_t *buf, size_t buflen) { in netmaskToPrefixLength() argument 758 for (unsigned int i = 0; i < buflen; i++) { in netmaskToPrefixLength()
|