HomeSort by relevance Sort by last modified time
    Searched refs:nread (Results 1 - 25 of 288) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /libcore/ojluni/src/main/native/
SocketInputStream.c 60 jint fd, nread; local
96 nread = NET_Timeout(fd, timeout);
97 if (nread <= 0) {
98 if (nread == 0) {
101 } else if (nread == JVM_IO_ERR) {
108 } else if (nread == JVM_IO_INTR) {
119 nread = NET_Read(fd, bufP, len);
121 if (nread <= 0) {
122 if (nread < 0) {
147 (*env)->SetByteArrayRegion(env, data, off, nread, (jbyte *)bufP)
    [all...]
io_util.c 41 jint nread; local
48 nread = (jint)IO_Read(fd, &ret, 1);
49 if (nread == 0) { /* EOF */
51 } else if (nread == JVM_IO_ERR) { /* error */
53 } else if (nread == JVM_IO_INTR) {
80 jint nread; local
110 nread = -1;
112 nread = (jint)IO_Read(fd, buf, len);
113 if (nread > 0) {
114 (*env)->SetByteArrayRegion(env, bytes, off, nread, (jbyte *)buf)
    [all...]
  /external/curl/lib/
content_encoding.h 40 ssize_t nread);
45 ssize_t nread);
transfer.c 90 int nread; local
112 nread = (int)data->state.fread_func(data->req.upload_fromhere, 1,
115 if(nread == CURL_READFUNC_ABORT) {
120 else if(nread == CURL_READFUNC_PAUSE) {
141 else if((size_t)nread > buffersize) {
183 "%x%s", nread, endofline_native);
187 nread += hexlen;
193 memcpy(data->req.upload_fromhere + nread,
202 length = nread;
214 if((nread - hexlen) == 0
396 ssize_t nread; \/* number of bytes read *\/ local
862 ssize_t nread; \/* number of bytes read *\/ local
    [all...]
content_encoding.c 95 uInt nread = z->avail_in; local
155 z->avail_in = nread;
170 ssize_t nread)
187 z->avail_in = (uInt)nread;
280 ssize_t nread)
309 z->avail_in = (uInt)nread;
337 switch (check_gzip_header((unsigned char *)k->str, nread, &hlen)) {
340 z->avail_in = (uInt)(nread - hlen);
352 z->avail_in = (uInt)nread;
374 z->avail_in += (uInt)nread;
    [all...]
file.c 311 size_t nread; local
371 nread = (size_t)readcount;
375 if((curl_off_t)nread <= data->state.resume_from) {
376 data->state.resume_from -= nread;
377 nread = 0;
382 nread -= (size_t)data->state.resume_from;
390 nwrite = write(fd, buf2, nread);
391 if(nwrite != nread) {
396 bytecount += nread;
435 ssize_t nread; local
    [all...]
  /external/toybox/toys/posix/
strings.c 41 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) {
  /hardware/invensense/6515/libsensors_iio/
InputEventReader.cpp 62 const ssize_t nread = read(fd, mHead, mFreeSpace * sizeof(input_event)); local
63 if (nread < 0 || nread % sizeof(input_event)) {
64 //LOGE("Partial event received nread=%d, required=%d",
65 // nread, sizeof(input_event));
69 LOGV_IF(nread < 0, "DEBUG:%s exit nread < 0\n",
71 LOGV_IF(nread % sizeof(input_event),
72 "DEBUG:%s exit nread %% sizeof(input_event)\n",
75 return (nread < 0 ? -errno : -EINVAL)
    [all...]
  /hardware/invensense/65xx/libsensors_iio/
InputEventReader.cpp 62 const ssize_t nread = read(fd, mHead, mFreeSpace * sizeof(input_event)); local
63 if (nread < 0 || nread % sizeof(input_event)) {
64 //LOGE("Partial event received nread=%d, required=%d",
65 // nread, sizeof(input_event));
69 LOGV_IF(nread < 0, "DEBUG:%s exit nread < 0\n",
71 LOGV_IF(nread % sizeof(input_event),
72 "DEBUG:%s exit nread %% sizeof(input_event)\n",
75 return (nread < 0 ? -errno : -EINVAL)
    [all...]
  /hardware/akm/AK8975_FS/libsensors/
InputEventReader.cpp 54 const ssize_t nread = read(fd, mHead, mFreeSpace * sizeof(input_event)); local
55 if (nread<0 || nread % sizeof(input_event)) {
57 return nread<0 ? -errno : -EINVAL;
60 numEventsRead = nread / sizeof(input_event);
  /external/ltp/testcases/kernel/syscalls/pread/
pread01.c 103 int nread; /* no. of bytes read by pread() */ local
117 nread = pread(fildes, read_buf[2], K1, K2);
120 if (nread != K1) {
122 "nread=%d, error:%d", nread, errno);
135 nread = pread(fildes, read_buf[3], K1, K3);
136 if (nread != K1) {
138 "nread=%d, error:%d", nread, errno);
149 if ((nread = read(fildes, read_buf[0], K1)) != K1)
    [all...]
  /external/libpng/contrib/arm-neon/
linux-auxv.c 46 unsigned int nread; local
49 /* Passing nread > INT_MAX to read is implementation defined in POSIX
54 nread = INT_MAX;
57 nread = (unsigned int)/*SAFE*/nbytes;
59 iread = read(fd, buffer, nread);
  /external/elfutils/libdwfl/
linux-proc-maps.c 68 ssize_t nread = pread_retry (fd, &buf, sizeof buf, 0); local
70 if (nread != sizeof buf || buf[EI_MAG0] != ELFMAG0
108 ssize_t nread; local
117 nread = pread_retry (fd, d.a64, sizeof d.a64, offset);
118 if (nread < 0)
124 for (size_t a32i = 0; a32i < nread / sizeof d.a32[0]; a32i++)
137 for (size_t a64i = 0; a64i < nread / sizeof d.a64[0]; a64i++)
150 offset += nread;
152 while (nread == sizeof d.a64);
214 int nread = -1 local
    [all...]
  /external/ltp/testcases/kernel/syscalls/msync/
msync01.c 93 int nread = 0, count, err_flg = 0; local
119 nread = read(fildes, read_buf, sizeof(read_buf));
120 if (nread != BUF_SIZE)
128 for (count = 0; count < nread; count++)
  /toolchain/binutils/binutils-2.25/bfd/
cache.c 286 file_ptr nread; local
306 nread = read (fileno (f), buf, nbytes);
310 if (nread == (file_ptr)-1)
313 return nread;
316 nread = fread (buf, 1, nbytes, f);
320 if (nread < nbytes && ferror (f))
323 return nread;
326 if (nread < nbytes)
330 return nread;
336 file_ptr nread = 0 local
    [all...]
  /external/curl/docs/examples/
httpput.c 44 curl_off_t nread; local
51 nread = (curl_off_t)retcode;
54 " bytes from file\n", nread);
  /bionic/libc/stdio/
vfwscanf.c 115 int nread; /* number of characters consumed from fp */ local
135 nread = 0;
169 nread++;
302 *va_arg(ap, signed char *) = nread;
304 *va_arg(ap, short *) = nread;
306 *va_arg(ap, long *) = nread;
308 *va_arg(ap, ssize_t *) = nread;
310 *va_arg(ap, ptrdiff_t *) = nread;
312 *va_arg(ap, long long *) = nread;
314 *va_arg(ap, intmax_t *) = nread;
    [all...]
  /external/ltp/testcases/kernel/syscalls/pipe/
pipe11.c 167 int nread; local
173 nread = do_read(fd[0], rdbuf, ncperchild);
174 if (nread == ncperchild) {
175 tst_resm(TINFO, "child %d " "got %d chars", kidid, nread);
179 "characters, got %d characters", kidid, nread);
  /system/connectivity/wificond/tests/
shell_utils.cpp 90 ssize_t nread; local
98 nread = TEMP_FAILURE_RETRY(read(shell_output.fd, buf, sizeof(buf)));
99 if (output && nread > 0) {
100 output->append(buf, nread);
102 } while (nread > 0);
  /toolchain/binutils/binutils-2.25/binutils/
rename.c 45 int fromfd, tofd, nread; local
64 while ((nread = read (fromfd, buf, sizeof buf)) > 0)
66 if (write (tofd, buf, nread) != nread)
78 if (nread < 0)
  /libcore/luni/src/test/java/libcore/java/io/
OldAndroidPipedStreamTest.java 125 int nread = 0;
126 while (nread < 5) {
127 ret = in.read(readBytes, nread, readBytes.length - nread);
132 nread += ret;
135 assertEquals(5, nread);
208 int nread = 0;
209 while (nread < readBytes.length) {
210 ret = in.read(readBytes, nread, readBytes.length - nread);
    [all...]
  /toolchain/binutils/binutils-2.25/gold/testsuite/
binary_unittest.cc 50 ssize_t nread = ::read(fd, buf, size); local
51 if (nread < 0)
52 return nread;
53 if (nread == 0)
55 buf += nread;
56 size -= nread;
57 total_read += nread;
  /frameworks/base/tests/CoreTests/android/core/
TestWebServer.java 499 int nread = 0; local
503 nread = readOneLine(is);
505 if (nread == -1) {
557 return nread;
569 int nread = 0; local
572 nread = readOneLine(is);
574 if (nread == -1) {
594 String headerValue = new String(buf, i, nread-1);
597 return nread;
606 int nread = 0 local
627 int nread = 0; local
643 int nread = 0; local
    [all...]
  /libcore/support/src/test/java/tests/support/
Support_TestWebServer.java 421 int nread = 0; local
425 nread = readOneLine(is);
427 if (nread == -1) {
477 return nread;
489 int nread = 0; local
492 nread = readOneLine(is);
494 if (nread == -1) {
514 String headerValue = new String(buf, i, nread - i - 2); // drop \r\n
517 return nread;
526 int nread = 0 local
547 int nread = 0; local
563 int nread = 0; local
    [all...]
  /external/libchrome/base/posix/
unix_domain_socket_linux_unittest.cc 101 const ssize_t nread = UnixDomainSocket::RecvMsgWithPid( local
103 ASSERT_EQ(sizeof(kHello), static_cast<size_t>(nread));
130 const ssize_t nread = UnixDomainSocket::RecvMsgWithPid( local
132 ASSERT_EQ(sizeof(kHello), static_cast<size_t>(nread));
154 const ssize_t nread = UnixDomainSocket::RecvMsgWithPid( local
156 ASSERT_EQ(0, nread);

Completed in 673 milliseconds

1 2 3 4 5 6 7 8 91011>>