Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
Dvfscanf.c169 int nread; /* number of characters consumed from fp */ in __svfscanf_unlocked() local
194 nread = 0; in __svfscanf_unlocked()
203 nread++, fp->_r--, fp->_p++; in __svfscanf_unlocked()
226 nread++; in __svfscanf_unlocked()
340 *va_arg(ap, char *) = (char)nread; in __svfscanf_unlocked()
342 *va_arg(ap, short *) = (short)nread; in __svfscanf_unlocked()
344 *va_arg(ap, long *) = nread; in __svfscanf_unlocked()
346 *va_arg(ap, long long *) = nread; in __svfscanf_unlocked()
348 *va_arg(ap, intmax_t *) = nread; in __svfscanf_unlocked()
350 *va_arg(ap, size_t *) = nread; in __svfscanf_unlocked()
[all …]
Dvfwscanf.c151 int nread; /* number of characters consumed from fp */ in __vfwscanf_unlocked() local
170 nread = 0; in __vfwscanf_unlocked()
207 nread++; in __vfwscanf_unlocked()
334 *va_arg(ap, char *) = (char)nread; in __vfwscanf_unlocked()
336 *va_arg(ap, short *) = (short)nread; in __vfwscanf_unlocked()
338 *va_arg(ap, long *) = (long)nread; in __vfwscanf_unlocked()
340 *va_arg(ap, INT64 *) = (INT64)nread; // was quad_t in __vfwscanf_unlocked()
342 *va_arg(ap, intmax_t *) = (intmax_t)nread; in __vfwscanf_unlocked()
344 *va_arg(ap, size_t *) = (size_t)nread; in __vfwscanf_unlocked()
346 *va_arg(ap, ptrdiff_t *) = (ptrdiff_t)nread; in __vfwscanf_unlocked()
[all …]
/device/google/bonito/json-c/
Drandom_seed.c161 ssize_t nread = read(fd, &r, sizeof(r)); in get_dev_random_seed() local
162 if (nread != sizeof(r)) { in get_dev_random_seed()
/device/google/crosshatch/json-c/
Drandom_seed.c161 ssize_t nread = read(fd, &r, sizeof(r)); in get_dev_random_seed() local
162 if (nread != sizeof(r)) { in get_dev_random_seed()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dbz2module.c365 size_t nread; in Util_UnivNewlineRead() local
369 nread = BZ2_bzRead(bzerror, stream, dst, n); in Util_UnivNewlineRead()
370 assert(nread <= n); in Util_UnivNewlineRead()
371 n -= nread; /* assuming 1 byte out for each in; will adjust */ in Util_UnivNewlineRead()
373 while (nread--) { in Util_UnivNewlineRead()
669 size_t nread; in BZ2File_readlines() local
705 nread = Util_UnivNewlineRead(&bzerror, self->fp, in BZ2File_readlines() local
708 self->pos += nread; in BZ2File_readlines()
713 if (nread == 0) { in BZ2File_readlines()
725 totalread += nread; in BZ2File_readlines()
[all …]
Darraymodule.c1207 size_t nread; in array_fromfile() local
1224 nread = fread(item + (Py_SIZE(self) - n) * itemsize, in array_fromfile()
1226 if (nread < (size_t)n) { in array_fromfile()
1227 Py_SIZE(self) -= (n - nread); in array_fromfile()
Dsocketmodule.c2376 int nread = -1; local
2389 nread = recv(s->sock_fd, read_buf, segment, flags);
2396 if (nread < 0) {
2400 if (nread != remaining) {
2401 read_buf += nread;
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dfileobject.c1672 size_t nread; in file_readlines() local
1693 nread = 0; in file_readlines()
1697 nread = Py_UniversalNewlineFread(buffer+nfilled, in file_readlines()
1700 shortread = (nread < buffersize-nfilled); in file_readlines()
1702 if (nread == 0) { in file_readlines()
1718 totalread += nread; in file_readlines()
1719 p = (char *)memchr(buffer+nfilled, '\n', nread); in file_readlines()
1722 nfilled += nread; in file_readlines()
1746 end = buffer+nfilled+nread; in file_readlines()
2838 size_t nread; in Py_UniversalNewlineFread() local
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dfileobject.c1620 size_t nread; in file_readlines() local
1641 nread = 0; in file_readlines()
1645 nread = Py_UniversalNewlineFread(buffer+nfilled, in file_readlines()
1648 shortread = (nread < buffersize-nfilled); in file_readlines()
1650 if (nread == 0) { in file_readlines()
1658 totalread += nread; in file_readlines()
1659 p = (char *)memchr(buffer+nfilled, '\n', nread); in file_readlines()
1662 nfilled += nread; in file_readlines()
1686 end = buffer+nfilled+nread; in file_readlines()
2771 size_t nread; in Py_UniversalNewlineFread() local
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Darraymodule.c1207 size_t nread; in array_fromfile() local
1224 nread = fread(item + (Py_SIZE(self) - n) * itemsize, in array_fromfile()
1226 if (nread < (size_t)n) { in array_fromfile()
1227 Py_SIZE(self) -= (n - nread); in array_fromfile()
Dsocketmodule.c2437 int nread = -1; local
2451 nread = recv(s->sock_fd, read_buf, segment, flags);
2460 if (nread < 0) {
2464 if (nread != remaining) {
2465 read_buf += nread;
/device/google/contexthub/util/nanoapp_cmd/
Dnanoapp_cmd.c191 int nread, buf_size = 2048; variable