Lines Matching refs:nbytes
1463 - if (file_buffer(ms, -1, NULL, NULL, buf, nbytes) == -1) {
1464 + if (file_buffer(ms, NULL, NULL, NULL, buf, nbytes) == -1) {
1613 - size_t nbytes = b->flen;
1614 + size_t nbytes = b->flen > 64*1024 ? 64*1024 : b->flen;
1621 mlen = (nbytes + 1) * sizeof((*ubuf)[0]);
1627 mlen = (nbytes + 1) * sizeof(nbuf[0]);
2902 ssize_t nbytes = 0; /* number of bytes read from a datafile */
2987 - while ((r = sread(fd, RCAST(void *, &buf[nbytes]),
2988 - CAST(size_t, ms->bytes_max - nbytes), 1)) > 0) {
2989 - nbytes += r;
2994 - if (nbytes == 0 && inname) {
3009 - if ((nbytes = read(fd, RCAST(void *, buf), howmany)) == -1) {
3017 + if ((nbytes = php_stream_read(stream, (char *)buf, ms->bytes_max - nbytes)) < 0) {
3022 (void)memset(buf + nbytes, 0, SLOP); /* NUL terminate */
3023 - if (file_buffer(ms, fd, okstat ? &sb : NULL, inname, buf, CAST(size_t, nbytes)) == -1)
3024 + if (file_buffer(ms, stream, &sb, inname, buf, CAST(size_t, nbytes)) == -1)