/external/curl/lib/ |
D | transfer.c | 96 int nread; in Curl_fillreadbuffer() local 118 nread = (int)data->set.fread_func(data->req.upload_fromhere, 1, in Curl_fillreadbuffer() 121 if(nread == CURL_READFUNC_ABORT) { in Curl_fillreadbuffer() 126 else if(nread == CURL_READFUNC_PAUSE) { in Curl_fillreadbuffer() 147 else if((size_t)nread > buffersize) { in Curl_fillreadbuffer() 189 "%x%s", nread, endofline_native); in Curl_fillreadbuffer() 193 nread += hexlen; in Curl_fillreadbuffer() 199 memcpy(data->req.upload_fromhere + nread, in Curl_fillreadbuffer() 208 length = nread; in Curl_fillreadbuffer() 220 if((nread - hexlen) == 0) in Curl_fillreadbuffer() [all …]
|
D | http2.c | 353 size_t nread; in on_data_chunk_recv() local 374 nread = MIN(stream->len, len); in on_data_chunk_recv() 375 memcpy(&stream->mem[stream->memlen], data, nread); in on_data_chunk_recv() 377 stream->len -= nread; in on_data_chunk_recv() 378 stream->memlen += nread; in on_data_chunk_recv() 386 nread, stream_id, in on_data_chunk_recv() 390 if(nread < len) { in on_data_chunk_recv() 391 stream->pausedata = data + nread; in on_data_chunk_recv() 392 stream->pauselen = len - nread; in on_data_chunk_recv() 395 len - nread, stream_id)); in on_data_chunk_recv() [all …]
|
D | content_encoding.c | 95 uInt nread = z->avail_in; in inflate_stream() local 155 z->avail_in = nread; in inflate_stream() 170 ssize_t nread) in Curl_unencode_deflate_write() argument 187 z->avail_in = (uInt)nread; in Curl_unencode_deflate_write() 280 ssize_t nread) in Curl_unencode_gzip_write() argument 309 z->avail_in = (uInt)nread; in Curl_unencode_gzip_write() 337 switch (check_gzip_header((unsigned char *)k->str, nread, &hlen)) { in Curl_unencode_gzip_write() 340 z->avail_in = (uInt)(nread - hlen); in Curl_unencode_gzip_write() 352 z->avail_in = (uInt)nread; in Curl_unencode_gzip_write() 376 z->avail_in += (uInt)nread; in Curl_unencode_gzip_write() [all …]
|
D | file.c | 307 size_t nread; in file_upload() local 367 nread = (size_t)readcount; in file_upload() 371 if((curl_off_t)nread <= data->state.resume_from ) { in file_upload() 372 data->state.resume_from -= nread; in file_upload() 373 nread = 0; in file_upload() 378 nread -= (size_t)data->state.resume_from; in file_upload() 386 nwrite = write(fd, buf2, nread); in file_upload() 387 if(nwrite != nread) { in file_upload() 392 bytecount += nread; in file_upload() 430 ssize_t nread; in file_do() local [all …]
|
D | sendf.c | 314 ssize_t nread = sread(sockfd, buf, len); in Curl_recv_plain() local 317 if(-1 == nread) { in Curl_recv_plain() 341 return nread; in Curl_recv_plain() 519 ssize_t nread = sread(sockfd, buf, bytesfromsocket); in Curl_read_plain() local 521 if(-1 == nread) { in Curl_read_plain() 534 *n = nread; in Curl_read_plain() 551 ssize_t nread = 0; in Curl_read() local 589 nread = conn->recv[num](conn, num, buffertofill, bytesfromsocket, &result); in Curl_read() 590 if(nread < 0) in Curl_read() 594 memcpy(buf, conn->master_buffer, nread); in Curl_read() [all …]
|
D | http_proxy.c | 239 size_t nread; /* total size read */ in Curl_proxyCONNECT() local 249 nread=0; in Curl_proxyCONNECT() 252 while((nread<BUFSIZE) && (keepon && !error)) { in Curl_proxyCONNECT() 271 DEBUGASSERT(ptr+BUFSIZE-nread <= data->state.buffer+BUFSIZE+1); in Curl_proxyCONNECT() 272 result = Curl_read(conn, tunnelsocket, ptr, BUFSIZE-nread, in Curl_proxyCONNECT() 299 nread += gotbytes; in Curl_proxyCONNECT() 304 nread = 0; /* make next read start over in the read buffer */ in Curl_proxyCONNECT() 376 nread = 0; /* make next read start over in the read in Curl_proxyCONNECT()
|
D | telnet.c | 123 char *buffer, ssize_t nread); 1225 char *buffer, ssize_t nread) in send_telnet_data() argument 1232 while(!result && nread--) { in send_telnet_data() 1308 ssize_t nread; in telnet_do() local 1501 result = Curl_read(conn, sockfd, buf, BUFSIZE - 1, &nread); in telnet_do() 1512 else if(nread <= 0) { in telnet_do() 1517 result = telrcv(conn, (unsigned char *) buf, nread); in telnet_do() 1590 result = Curl_read(conn, sockfd, buf, BUFSIZE - 1, &nread); in telnet_do() 1601 else if(nread <= 0) { in telnet_do() 1606 total_dl += nread; in telnet_do() [all …]
|
D | socks.c | 58 ssize_t nread; in Curl_blockread_all() local 74 result = Curl_read_plain(sockfd, buf, buffersize, &nread); in Curl_blockread_all() 80 if(buffersize == nread) { in Curl_blockread_all() 81 allread += nread; in Curl_blockread_all() 86 if(!nread) { in Curl_blockread_all() 91 buffersize -= nread; in Curl_blockread_all() 92 buf += nread; in Curl_blockread_all() 93 allread += nread; in Curl_blockread_all()
|
/external/elfutils/libdwfl/ |
D | linux-proc-maps.c | 68 ssize_t nread = pread_retry (fd, &buf, sizeof buf, 0); in get_pid_class() local 70 if (nread != sizeof buf || buf[EI_MAG0] != ELFMAG0 in get_pid_class() 108 ssize_t nread; in grovel_auxv() local 117 nread = pread_retry (fd, d.a64, sizeof d.a64, offset); in grovel_auxv() 118 if (nread < 0) in grovel_auxv() 124 for (size_t a32i = 0; a32i < nread / sizeof d.a32[0]; a32i++) in grovel_auxv() 137 for (size_t a64i = 0; a64i < nread / sizeof d.a64[0]; a64i++) in grovel_auxv() 150 offset += nread; in grovel_auxv() 152 while (nread == sizeof d.a64); in grovel_auxv() 214 int nread = -1; in proc_maps_report() local [all …]
|
D | elf-from-memory.c | 81 ssize_t nread = (*read_memory) (arg, buffer, ehdr_vma, in elf_from_remote_memory() local 83 if (nread <= 0) in elf_from_remote_memory() 88 __libdwfl_seterrno (nread < 0 ? DWFL_E_ERRNO : DWFL_E_TRUNCATED); in elf_from_remote_memory() 168 if ((size_t) nread >= phoff + phnum * phentsize) in elf_from_remote_memory() 186 nread = (*read_memory) (arg, buffer, ehdr_vma + phoff, in elf_from_remote_memory() 188 if (nread <= 0) in elf_from_remote_memory() 313 nread = (*read_memory) (arg, buffer + start, in elf_from_remote_memory() 316 return nread <= 0; in elf_from_remote_memory()
|
/external/toybox/toys/posix/ |
D | strings.c | 34 int nread, i, wlen = TT.num, count = 0; local 39 nread = read(fd, toybuf, sizeof(toybuf)); 40 if (nread < 0) perror_msg_raw(filename); 41 if (nread < 1) break; 42 for (i = 0; i < nread; i++, offset++) {
|
/external/wpa_supplicant_8/src/wps/ |
D | httpread.c | 370 int nread; in httpread_read_handler() local 380 nread = read(h->sd, readbuf, sizeof(readbuf)); in httpread_read_handler() 381 if (nread < 0) { in httpread_read_handler() 385 wpa_hexdump_ascii(MSG_MSGDUMP, "httpread - read", readbuf, nread); in httpread_read_handler() 386 if (nread == 0) { in httpread_read_handler() 425 if (nread == 0) in httpread_read_handler() 433 nread--; in httpread_read_handler() 480 if (nread == 0) in httpread_read_handler() 487 if (h->body_alloc_nbytes < (h->body_nbytes + nread + 1)) { in httpread_read_handler() 601 if (nread <= 0) in httpread_read_handler() [all …]
|
D | wps_er_ssdp.c | 25 int nread; in wps_er_ssdp_rx() local 33 nread = recvfrom(sd, buf, sizeof(buf) - 1, 0, in wps_er_ssdp_rx() 35 if (nread <= 0) in wps_er_ssdp_rx() 37 buf[nread] = '\0'; in wps_er_ssdp_rx() 45 (u8 *) buf, nread); in wps_er_ssdp_rx()
|
/external/libunwind/src/ |
D | os-linux.h | 211 ssize_t i, nread; in maps_next() local 238 nread = read (mi->fd, mi->buf + bytes_left, in maps_next() 240 if (nread <= 0) in maps_next() 242 else if ((size_t) (nread + bytes_left) < mi->buf_size) in maps_next() 247 memmove (mi->buf_end - nread - bytes_left, mi->buf, in maps_next() 248 nread + bytes_left); in maps_next() 249 mi->buf = mi->buf_end - nread - bytes_left; in maps_next() 252 eol = mi->buf + bytes_left + nread - 1; in maps_next() 254 for (i = bytes_left; i < bytes_left + nread; ++i) in maps_next()
|
/external/libevent/ |
D | evmap.c | 59 ev_uint16_t nread; member 255 entry->nread = 0; in evmap_io_init() 268 int nread, nwrite, retval = 0; in evmap_io_add() local 286 nread = ctx->nread; in evmap_io_add() 289 if (nread) in evmap_io_add() 295 if (++nread == 1) in evmap_io_add() 302 if (EVUTIL_UNLIKELY(nread > 0xffff || nwrite > 0xffff)) { in evmap_io_add() 326 ctx->nread = (ev_uint16_t) nread; in evmap_io_add() 341 int nread, nwrite, retval = 0; in evmap_io_del() local 356 nread = ctx->nread; in evmap_io_del() [all …]
|
/external/libpng/contrib/arm-neon/ |
D | linux-auxv.c | 46 unsigned int nread; in safe_read() local 54 nread = INT_MAX; in safe_read() 57 nread = (unsigned int)/*SAFE*/nbytes; in safe_read() 59 iread = read(fd, buffer, nread); in safe_read()
|
/external/strace/ |
D | util.c | 1026 unsigned int n, m, nread; local 1066 nread = 0; 1092 nread += m; 1106 if (nread) { 1108 nread, nread + len, addr - nread); 1121 nread += m; 1201 unsigned int n, m, nread; local 1212 nread = 0; 1237 nread += r; 1250 if (!nread) [all …]
|
/external/libchrome/base/posix/ |
D | unix_domain_socket_linux_unittest.cc | 100 const ssize_t nread = UnixDomainSocket::RecvMsgWithPid( in TEST() local 102 ASSERT_EQ(sizeof(kHello), static_cast<size_t>(nread)); in TEST() 129 const ssize_t nread = UnixDomainSocket::RecvMsgWithPid( in TEST() local 131 ASSERT_EQ(sizeof(kHello), static_cast<size_t>(nread)); in TEST() 153 const ssize_t nread = UnixDomainSocket::RecvMsgWithPid( in TEST() local 155 ASSERT_EQ(0, nread); in TEST()
|
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
D | PipelinedMsgParser.java | 310 int nread = 0; in run() local 311 while (nread < contentLength) { in run() 322 nread, contentLength - nread); in run() 324 nread += readlength; in run()
|
/external/curl/docs/examples/ |
D | fopen.c | 454 size_t nread; in main() local 502 nread = url_fread(buffer, 1, sizeof(buffer), handle); in main() 503 fwrite(buffer,1,nread,outf); in main() 504 } while(nread); in main() 525 nread = url_fread(buffer, 1,sizeof(buffer), handle); in main() 526 fwrite(buffer,1,nread,outf); in main() 532 nread = url_fread(buffer, 1,sizeof(buffer), handle); in main() 533 fwrite(buffer,1,nread,outf); in main()
|
D | httpput.c | 40 curl_off_t nread; in read_callback() local 47 nread = (curl_off_t)retcode; in read_callback() 50 " bytes from file\n", nread); in read_callback()
|
D | ftpupload.c | 54 curl_off_t nread; in read_callback() local 60 nread = (curl_off_t)retcode; in read_callback() 63 " bytes from file\n", nread); in read_callback()
|
D | sendrecv.c | 67 curl_off_t nread; in main() local 126 nread = (curl_off_t)iolen; in main() 128 printf("Received %" CURL_FORMAT_CURL_OFF_T " bytes.\n", nread); in main()
|
/external/libedit/src/ |
D | read.c | 483 FUN(el,gets)(EditLine *el, int *nread) in FUN() 495 if (nread == NULL) in FUN() 496 nread = &nrb; in FUN() 497 *nread = 0; in FUN() 535 *nread = 0; in FUN() 717 *nread = num != -1 ? num : 0; in FUN() 719 *nread = (int)(el->el_line.lastchar - el->el_line.buffer); in FUN() 725 *nread = (int)(el->el_line.cursor - el->el_line.buffer); in FUN() 727 if (*nread == 0) { in FUN() 729 *nread = -1; in FUN()
|
/external/curl/src/ |
D | tool_getpass.c | 228 ssize_t nread; in getpass_r() local 237 nread = read(fd, password, buflen); in getpass_r() 238 if(nread > 0) in getpass_r() 239 password[--nread] = '\0'; /* zero terminate where enter is stored */ in getpass_r()
|