Lines Matching refs:nbytes
1248 nsz = nbytes;
1267 - if (file_buffer(ms, -1, NULL, NULL, buf, nbytes) == -1)
1268 + if (file_buffer(ms, NULL, NULL, NULL, buf, nbytes) == -1)
1381 nbytes = ms->encoding_max;
1383 mlen = (nbytes + 1) * sizeof((*ubuf)[0]);
1392 mlen = (nbytes + 1) * sizeof(nbuf[0]);
2580 ssize_t nbytes = 0; /* number of bytes read from a datafile */
2665 - while ((r = sread(fd, RCAST(void *, &buf[nbytes]),
2666 - CAST(size_t, ms->bytes_max - nbytes), 1)) > 0) {
2667 - nbytes += r;
2672 - if (nbytes == 0 && inname) {
2687 - if ((nbytes = read(fd, RCAST(void *, buf), howmany)) == -1) {
2695 + if ((nbytes = php_stream_read(stream, (char *)buf, ms->bytes_max - nbytes)) < 0) {
2700 (void)memset(buf + nbytes, 0, SLOP); /* NUL terminate */
2701 - if (file_buffer(ms, fd, okstat ? &sb : NULL, inname, buf, CAST(size_t, nbytes)) == -1)
2702 + if (file_buffer(ms, stream, &sb, inname, buf, CAST(size_t, nbytes)) == -1)