Searched refs:to_read (Results 1 - 5 of 5) sorted by relevance

/PHP_5_3/ext/session/
H A Dsession.c433 int to_read = PS(entropy_length);
435 while (to_read > 0) {
436 n = read(fd, rbuf, MIN(to_read, sizeof(rbuf)));
452 to_read -= n;
/PHP_5_3/sapi/apache2filter/
H A Dsapi_apache2.c159 int to_read; local
162 to_read = ctx->post_len - ctx->post_idx;
163 n = MIN(to_read, count_bytes);
/PHP_5_3/ext/mysqlnd/
H A Dmysqlnd_net.c67 size_t to_read = count, ret; local
71 conn->net->stream->chunk_size = MIN(to_read, conn->net->options.net_read_buffer_size);
72 while (to_read) {
73 if (!(ret = php_stream_read(conn->net->stream, (char *) buffer, to_read))) {
79 to_read -= ret;
81 MYSQLND_INC_CONN_STATISTIC_W_VALUE(conn->stats, STAT_BYTES_RECEIVED, count - to_read);
523 size_t to_read = count; local
531 size_t to_read_from_buffer = MIN(net->uncompressed_data->bytes_left(net->uncompressed_data), to_read);
536 to_read -= to_read_from_buffer;
538 DBG_INF_FMT("left %u to read", to_read);
[all...]
/PHP_5_3/ext/phar/
H A Ddirstream.c95 size_t to_read; local
112 to_read = MIN(keylen, count);
114 if (to_read == 0 || count < keylen) {
120 memcpy(((php_stream_dirent *) buf)->d_name, str_key, to_read);
122 ((php_stream_dirent *) buf)->d_name[to_read + 1] = '\0';
/PHP_5_3/ext/standard/
H A Dstreamsfuncs.c360 long to_read = 0; local
365 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl|lz", &zstream, &to_read, &flags, &zremote) == FAILURE) {
376 if (to_read <= 0) {
381 read_buf = safe_emalloc(1, to_read, 1);
383 recvd = php_stream_xport_recvfrom(stream, read_buf, to_read, flags, NULL, NULL,

Completed in 12 milliseconds