Home
last modified time | relevance | path

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

12345

/external/curl/lib/
Dtransfer.c90 int nread; in Curl_fillreadbuffer() local
112 nread = (int)data->state.fread_func(data->req.upload_fromhere, 1, in Curl_fillreadbuffer()
115 if(nread == CURL_READFUNC_ABORT) { in Curl_fillreadbuffer()
120 else if(nread == CURL_READFUNC_PAUSE) { in Curl_fillreadbuffer()
141 else if((size_t)nread > buffersize) { in Curl_fillreadbuffer()
183 "%x%s", nread, endofline_native); in Curl_fillreadbuffer()
187 nread += hexlen; in Curl_fillreadbuffer()
193 memcpy(data->req.upload_fromhere + nread, in Curl_fillreadbuffer()
202 length = nread; in Curl_fillreadbuffer()
214 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()
374 z->avail_in += (uInt)nread; in Curl_unencode_gzip_write()
[all …]
Dfile.c311 size_t nread; in file_upload() local
371 nread = (size_t)readcount; in file_upload()
375 if((curl_off_t)nread <= data->state.resume_from) { in file_upload()
376 data->state.resume_from -= nread; in file_upload()
377 nread = 0; in file_upload()
382 nread -= (size_t)data->state.resume_from; in file_upload()
390 nwrite = write(fd, buf2, nread); in file_upload()
391 if(nwrite != nread) { in file_upload()
396 bytecount += nread; in file_upload()
435 ssize_t nread; in file_do() local
[all …]
Dhttp2.c602 size_t nread; in on_data_chunk_recv() local
621 nread = MIN(stream->len, len); in on_data_chunk_recv()
622 memcpy(&stream->mem[stream->memlen], data, nread); in on_data_chunk_recv()
624 stream->len -= nread; in on_data_chunk_recv()
625 stream->memlen += nread; in on_data_chunk_recv()
636 nread, stream_id, in on_data_chunk_recv()
640 if(nread < len) { in on_data_chunk_recv()
641 stream->pausedata = data + nread; in on_data_chunk_recv()
642 stream->pauselen = len - nread; in on_data_chunk_recv()
645 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 …]
Dtelnet.c123 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 …]
/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/ltp/testcases/kernel/syscalls/pread/
Dpread01.c103 int nread; /* no. of bytes read by pread() */ in main() local
117 nread = pread(fildes, read_buf[2], K1, K2); in main()
120 if (nread != K1) { in main()
122 "nread=%d, error:%d", nread, errno); in main()
135 nread = pread(fildes, read_buf[3], K1, K3); in main()
136 if (nread != K1) { in main()
138 "nread=%d, error:%d", nread, errno); in main()
149 if ((nread = read(fildes, read_buf[0], K1)) != K1) { in main()
151 "nread=%d, errno=%d", nread, errno); in main()
158 nread = pread(fildes, read_buf[1], K1, K1); in main()
[all …]
/external/toybox/toys/posix/
Dstrings.c41 int nread, i, wlen = TT.num, count = 0; local
52 for (i = nread = 0; ;i++) {
53 if (i >= nread) {
54 nread = read(fd, toybuf, sizeof(toybuf));
56 if (nread < 0) perror_msg_raw(filename);
57 if (nread < 1) {
/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/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/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.c984 unsigned int n, m, nread; in umoven() local
1026 nread = 0; in umoven()
1052 nread += m; in umoven()
1066 if (nread) { in umoven()
1068 nread, nread + len, addr - nread); in umoven()
1081 nread += m; in umoven()
1132 unsigned int n, m, nread; in umovestr() local
1145 nread = 0; in umovestr()
1170 nread += r; in umovestr()
1183 if (!nread) in umovestr()
[all …]
/external/libchrome/base/posix/
Dunix_domain_socket_linux_unittest.cc101 const ssize_t nread = UnixDomainSocket::RecvMsgWithPid( in TEST() local
103 ASSERT_EQ(sizeof(kHello), static_cast<size_t>(nread)); in TEST()
130 const ssize_t nread = UnixDomainSocket::RecvMsgWithPid( in TEST() local
132 ASSERT_EQ(sizeof(kHello), static_cast<size_t>(nread)); in TEST()
154 const ssize_t nread = UnixDomainSocket::RecvMsgWithPid( in TEST() local
156 ASSERT_EQ(0, nread); in TEST()
/external/ltp/testcases/kernel/syscalls/pipe/
Dpipe11.c167 int nread; in do_child() local
173 nread = do_read(fd[0], rdbuf, ncperchild); in do_child()
174 if (nread == ncperchild) { in do_child()
175 tst_resm(TINFO, "child %d " "got %d chars", kidid, nread); in do_child()
179 "characters, got %d characters", kidid, nread); in do_child()
/external/ltp/testcases/kernel/syscalls/msync/
Dmsync01.c93 int nread = 0, count, err_flg = 0; in main() local
119 nread = read(fildes, read_buf, sizeof(read_buf)); in main()
120 if (nread != BUF_SIZE) in main()
128 for (count = 0; count < nread; count++) in main()
/external/ltp/testcases/kernel/fs/proc/
Dproc01.c248 ssize_t nread; in readproc() local
382 nread = read(fd, buf, buffsize); in readproc()
384 if (nread < 0) { in readproc()
406 file_total_read += nread; in readproc()
410 fprintf(stderr, "%ld", nread); in readproc()
420 } while (0 < nread); in readproc()
/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()
/external/ltp/testcases/network/tcp_cmds/echo/
Dechoes.c149 int nread, nwrite; in echofile() local
304 nread = read(s, rd_buffer, BUFSIZ); in echofile()
305 if (nread == -1) { in echofile()
315 n = write(fdw, rd_buffer, nread); in echofile()
316 if (n != nread) { in echofile()
324 nwrite -= nread; in echofile()
/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()

12345