/external/chromium/base/ |
message_pump_libevent.cc | 349 int nread = HANDLE_EINTR(read(socket, &buf, 1)); local 350 DCHECK_EQ(nread, 1);
|
/external/chromium/third_party/libevent/ |
buffer.c | 195 size_t nread = datlen; local 196 if (nread >= buf->off) 197 nread = buf->off; 199 memcpy(data, buf->buffer, nread); 200 evbuffer_drain(buf, nread); 202 return (nread);
|
/external/elfutils/libelf/ |
elf_begin.c | 537 ssize_t nread = pread_retry (fildes, mem.header, local 541 if (unlikely (nread == -1)) 547 Elf_Kind kind = determine_kind (mem.header, nread); 556 if ((size_t) nread >= (mem.header[EI_CLASS] == ELFCLASS32 [all...] |
/external/icu4c/tools/toolutil/ |
pkg_gencmn.c | 121 uint32_t i, fileOffset, basenameOffset, length, nread; local 255 for(nread = 0;;) { 260 nread += length; 266 if (nread != files[i].fileSize) { 267 fprintf(stderr, "gencmn: unable to read %s properly (got %ld/%ld byte%s)\n", files[i].pathname, (long)nread, (long)files[i].fileSize, files[i].fileSize == 1 ? "" : "s");
|
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
PipelinedMsgParser.java | 310 int nread = 0; local 311 while (nread < contentLength) { 322 nread, contentLength - nread); 324 nread += readlength;
|
/external/wpa_supplicant_6/wpa_supplicant/src/wps/ |
wps_upnp_ssdp.c | 716 int nread; local 720 nread = recvfrom(sm->ssdp_sd, buf, sizeof(buf) - 1, 0, 722 if (nread <= 0) 724 buf[nread] = '\0'; /* need null termination for algorithm */
|
httpread.c | 404 int nread; local 416 nread = read(h->sd, readbuf, sizeof(readbuf)); 417 if (nread < 0) 419 if (nread == 0) { 459 if (nread == 0) 465 nread--; 517 if (nread == 0) 524 if (h->body_alloc_nbytes < (h->body_nbytes + nread + 1)) { 610 if (nread <= 0) 622 nread-- [all...] |
/external/yaffs2/yaffs2/direct/ |
yaffs_fileem2k.c | 212 int nread; local 226 nread = read(h,data,dev->nDataBytesPerChunk); 228 if(nread != dev->nDataBytesPerChunk) return YAFFS_FAIL; 239 nread= read(h,tags,sizeof(yaffs_ExtendedTags)); 240 if(nread != sizeof(yaffs_ExtendedTags)) return YAFFS_FAIL; 253 nread= read(h,&pt,sizeof(pt)); 268 if(nread != sizeof(pt)) return YAFFS_FAIL;
|
/system/core/liblinenoise/ |
linenoise.c | 231 int nread; local 234 nread = read(fd,&c,1); 235 if (nread <= 0) return len;
|
/external/bluetooth/bluez/tools/ |
hciattach_ti.c | 151 unsigned long nread; local 164 nread = fread(action_buf, sizeof(uint8_t), action_hdr.size, fp); 165 if (nread != (action_hdr.size)) { 172 return nread * sizeof(uint8_t);
|
/external/bluetooth/glib/gio/ |
gbufferedinputstream.c | 660 gssize nread; local 678 nread = g_input_stream_read (base_stream, 684 if (nread > 0) 685 priv->end += nread; 687 return nread; 701 gssize nread; local 732 nread = g_input_stream_skip (base_stream, 737 if (nread < 0 && bytes_skipped == 0) 740 if (nread > 0) 741 bytes_skipped += nread; 778 gssize nread; local 875 gssize nread; local 1013 gssize nread; local 1043 gssize nread; local 1076 gssize nread; local 1221 gssize nread; local 1254 gssize nread; local [all...] |
/external/chromium/net/socket/ |
tcp_client_socket_libevent.cc | 391 int nread = HANDLE_EINTR(read(socket_, buf->data(), buf_len)); local 392 if (nread >= 0) { 394 read_bytes.Add(nread); 395 if (nread > 0) 398 net_log_, NetLog::TYPE_SOCKET_BYTES_RECEIVED, nread, buf->data()); 399 return nread;
|
/external/iproute2/misc/ |
rtacct.c | 79 void nread(int fd, char *buf, int tot) function 125 nread(fd, (char*)tbl, 256*16); 601 nread(fd, (char*)kern_db, sizeof(*kern_db));
|
/external/qemu/audio/ |
esdaudio.c | 360 ssize_t nread; local 365 nread = read (esd->fd, buf, chunk << hw->info.shift); 366 if (nread == -1) { 374 if (nread != chunk << hw->info.shift) { 375 int rsamples = nread >> hw->info.shift; 377 if (rbytes != nread) { 380 rbytes, nread, hw->info.align + 1); 387 hw->conv (hw->conv_buf + wpos, buf, nread >> hw->info.shift,
|
ossaudio.c | 768 ssize_t nread; local 772 nread = read (oss->fd, p, bufs[i].len); 774 if (nread > 0) { 775 if (nread & hw->info.align) { 777 "alignment %d\n", nread, bufs[i].add << hwshift, 780 read_samples += nread >> hwshift; 781 hw->conv (hw->conv_buf + bufs[i].add, p, nread >> hwshift, 785 if (bufs[i].len - nread) { 786 if (nread == -1) {
|
/external/qemu/distrib/sdl-1.2.12/src/file/ |
SDL_rwops.c | 274 size_t nread; local 276 nread = fread(ptr, size, maxnum, context->hidden.stdio.fp); 277 if ( nread == 0 && ferror(context->hidden.stdio.fp) ) { 280 return(nread);
|
/external/wpa_supplicant_8/src/wps/ |
httpread.c | 398 int nread; local 410 nread = read(h->sd, readbuf, sizeof(readbuf)); 411 if (nread < 0) 413 if (nread == 0) { 453 if (nread == 0) 459 nread--; 511 if (nread == 0) 518 if (h->body_alloc_nbytes < (h->body_nbytes + nread + 1)) { 604 if (nread <= 0) 616 nread-- [all...] |
wps_upnp_ssdp.c | 692 int nread; local 696 nread = recvfrom(sm->ssdp_sd, buf, sizeof(buf) - 1, 0, 698 if (nread <= 0) 700 buf[nread] = '\0'; /* need null termination for algorithm */
|
/ndk/sources/host-tools/make-3.81/ |
arscan.c | 324 register int nread = read (desc, buf, SARMAG); 325 if (nread != SARMAG || bcmp (buf, ARMAG, SARMAG)) 334 register int nread = read (desc, (char *) &fl_header, FL_HSZ); 336 if (nread != FL_HSZ) 356 nread = read (desc, (char *) &fl_header_big, FL_HSZ_BIG); 357 if (nread != FL_HSZ_BIG) 379 register int nread = read(desc, &buf, sizeof (buf)); 380 if (nread != sizeof (buf) || buf != ARMAG) 428 register int nread; 460 nread = read (desc, (char *) &member_header_big 322 register int nread = read (desc, buf, SARMAG); local 426 register int nread; local [all...] |
/external/bzip2/ |
bzlib.c | 1480 int bzerr, nread; local [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/fbcon/ |
SDL_fbevents.c | 764 int i, nread; local 811 nread = read(mouse_fd, &mousebuf[start], BUFSIZ-start); 812 if ( nread < 0 ) { 815 nread += start; 817 fprintf(stderr, "Read %d bytes from mouse, start = %d\n", nread, start); 819 for ( i=0; i<(nread-(packetsize-1)); i += packetsize ) { 913 if ( i < nread ) { 914 SDL_memcpy(mousebuf, &mousebuf[i], (nread-i)); 915 start = (nread-i); 988 int i, nread; local [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/ipod/ |
SDL_ipodvideo.c | 447 int i, nread; local 455 nread = read (kbfd, keybuf, 128); 456 for (i = 0; i < nread; i++) {
|
/external/qemu/distrib/sdl-1.2.12/src/video/ps2gs/ |
SDL_gsevents.c | 620 int i, nread; local 649 nread = read(mouse_fd, &mousebuf[start], BUFSIZ-start); 650 if ( nread < 0 ) { 653 nread += start; 655 fprintf(stderr, "Read %d bytes from mouse, start = %d\n", nread, start); 657 for ( i=0; i<(nread-(packetsize-1)); i += packetsize ) { 751 if ( i < nread ) { 752 SDL_memcpy(mousebuf, &mousebuf[i], (nread-i)); 753 start = (nread-i); 763 int i, nread; local [all...] |
/hardware/invensense/libsensors/ |
MPLSensor.cpp | 312 int nread; local 321 nread = read(cur_fd, &irqdata, sizeof(irqdata)); 322 if (nread > 0) { [all...] |
/hardware/libhardware_legacy/wifi/ |
wifi.c | 339 int nread; local 357 nread = TEMP_FAILURE_RETRY(read(srcfd, pbuf, sb.st_size)); 359 if (nread < 0) { 377 while (((ilen + (iptr - pbuf)) < nread) && (iptr[ilen] != '\n')) 380 memmove(iptr + mlen, iptr + ilen + 1, nread - (iptr + ilen + 1 - pbuf)); 389 TEMP_FAILURE_RETRY(write(destfd, pbuf, nread + mlen - ilen -1)); 402 int nread; local 434 while ((nread = TEMP_FAILURE_RETRY(read(srcfd, buf, sizeof(buf)))) != 0) { 435 if (nread < 0) { 442 TEMP_FAILURE_RETRY(write(destfd, buf, nread)); 726 size_t nread = buflen - 1; local [all...] |