Home
last modified time | relevance | path

Searched refs:nread (Results 1 – 25 of 91) sorted by relevance

1234

/external/curl/lib/
Dtransfer.c92 int nread; in Curl_fillreadbuffer() local
114 nread = (int)data->state.fread_func(data->req.upload_fromhere, 1, in Curl_fillreadbuffer()
117 if(nread == CURL_READFUNC_ABORT) { in Curl_fillreadbuffer()
122 else if(nread == CURL_READFUNC_PAUSE) { in Curl_fillreadbuffer()
143 else if((size_t)nread > buffersize) { in Curl_fillreadbuffer()
185 "%x%s", nread, endofline_native); in Curl_fillreadbuffer()
189 nread += hexlen; in Curl_fillreadbuffer()
195 memcpy(data->req.upload_fromhere + nread, in Curl_fillreadbuffer()
204 length = nread; in Curl_fillreadbuffer()
216 if((nread - hexlen) == 0) in Curl_fillreadbuffer()
[all …]
Dcontent_encoding.c95 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 …]
Dfile.c310 size_t nread; in file_upload() local
370 nread = (size_t)readcount; in file_upload()
374 if((curl_off_t)nread <= data->state.resume_from) { in file_upload()
375 data->state.resume_from -= nread; in file_upload()
376 nread = 0; in file_upload()
381 nread -= (size_t)data->state.resume_from; in file_upload()
389 nwrite = write(fd, buf2, nread); in file_upload()
390 if(nwrite != nread) { in file_upload()
395 bytecount += nread; in file_upload()
434 ssize_t nread; in file_do() local
[all …]
Dhttp2.c594 size_t nread; in on_data_chunk_recv() local
613 nread = MIN(stream->len, len); in on_data_chunk_recv()
614 memcpy(&stream->mem[stream->memlen], data, nread); in on_data_chunk_recv()
616 stream->len -= nread; in on_data_chunk_recv()
617 stream->memlen += nread; in on_data_chunk_recv()
629 nread, stream_id, in on_data_chunk_recv()
633 if(nread < len) { in on_data_chunk_recv()
634 stream->pausedata = data + nread; in on_data_chunk_recv()
635 stream->pauselen = len - nread; in on_data_chunk_recv()
638 len - nread, stream_id)); in on_data_chunk_recv()
[all …]
Dsendf.c416 ssize_t nread; in Curl_recv_plain() local
419 nread = get_pre_recved(conn, num, buf, len); in Curl_recv_plain()
420 if(nread > 0) { in Curl_recv_plain()
422 return nread; in Curl_recv_plain()
425 nread = sread(sockfd, buf, len); in Curl_recv_plain()
428 if(-1 == nread) { in Curl_recv_plain()
452 return nread; in Curl_recv_plain()
630 ssize_t nread = sread(sockfd, buf, bytesfromsocket); in Curl_read_plain() local
632 if(-1 == nread) { in Curl_read_plain()
647 *n = nread; in Curl_read_plain()
[all …]
Dhttp_proxy.c254 size_t nread; /* total size read */ in Curl_proxyCONNECT() local
264 nread=0; in Curl_proxyCONNECT()
267 while((nread<BUFSIZE) && (keepon && !error)) { in Curl_proxyCONNECT()
286 DEBUGASSERT(ptr+BUFSIZE-nread <= data->state.buffer+BUFSIZE+1); in Curl_proxyCONNECT()
287 result = Curl_read(conn, tunnelsocket, ptr, BUFSIZE-nread, in Curl_proxyCONNECT()
314 nread += gotbytes; in Curl_proxyCONNECT()
319 nread = 0; /* make next read start over in the read buffer */ in Curl_proxyCONNECT()
391 nread = 0; /* make next read start over in the read in Curl_proxyCONNECT()
Dtelnet.c124 char *buffer, ssize_t nread);
1226 char *buffer, ssize_t nread) in send_telnet_data() argument
1233 while(!result && nread--) { in send_telnet_data()
1309 ssize_t nread; in telnet_do() local
1502 result = Curl_read(conn, sockfd, buf, BUFSIZE - 1, &nread); in telnet_do()
1513 else if(nread <= 0) { in telnet_do()
1518 result = telrcv(conn, (unsigned char *) buf, nread); in telnet_do()
1591 result = Curl_read(conn, sockfd, buf, BUFSIZE - 1, &nread); in telnet_do()
1602 else if(nread <= 0) { in telnet_do()
1607 total_dl += nread; in telnet_do()
[all …]
Dsocks.c58 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/
Dlinux-proc-maps.c68 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 …]
Delf-from-memory.c81 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/
Dstrings.c34 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/libunwind/src/
Dos-linux.h211 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/wpa_supplicant_8/src/wps/
Dhttpread.c370 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 …]
Dwps_er_ssdp.c25 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/libpng/contrib/arm-neon/
Dlinux-auxv.c46 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/libevent/
Devmap.c59 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/strace/
Dutil.c1026 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/
Dunix_domain_socket_linux_unittest.cc100 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/
DPipelinedMsgParser.java310 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/
Dfopen.c461 size_t nread; in main() local
509 nread = url_fread(buffer, 1, sizeof(buffer), handle); in main()
510 fwrite(buffer, 1, nread, outf); in main()
511 } while(nread); in main()
532 nread = url_fread(buffer, 1, sizeof(buffer), handle); in main()
533 fwrite(buffer, 1, nread, outf); in main()
539 nread = url_fread(buffer, 1, sizeof(buffer), handle); in main()
540 fwrite(buffer, 1, nread, outf); in main()
Dhttpput.c44 curl_off_t nread; in read_callback() local
51 nread = (curl_off_t)retcode; in read_callback()
54 " bytes from file\n", nread); in read_callback()
Dftpupload.c53 curl_off_t nread; in read_callback() local
59 nread = (curl_off_t)retcode; in read_callback()
62 " bytes from file\n", nread); in read_callback()
Dsendrecv.c68 curl_off_t nread; in main() local
130 nread = (curl_off_t)iolen; in main()
132 printf("Received %" CURL_FORMAT_CURL_OFF_T " bytes.\n", nread); in main()
/external/libedit/src/
Dread.c483 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/
Dtool_getpass.c228 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()

1234