Home
last modified time | relevance | path

Searched refs:buf (Results 101 – 125 of 337) sorted by relevance

12345678910>>...14

/PHP-5.5/ext/opcache/
H A Dzend_accelerator_util_funcs.c1031 #define ADLER32_DO1(buf) {s1 += *(buf); s2 += s1;} argument
1032 #define ADLER32_DO2(buf, i) ADLER32_DO1(buf + i); ADLER32_DO1(buf + i + 1); argument
1033 #define ADLER32_DO4(buf, i) ADLER32_DO2(buf, i); ADLER32_DO2(buf, i + 2); argument
1034 #define ADLER32_DO8(buf, i) ADLER32_DO4(buf, i); ADLER32_DO4(buf, i + 4); argument
1035 #define ADLER32_DO16(buf) ADLER32_DO8(buf, 0); ADLER32_DO8(buf, 8); argument
1047 ADLER32_DO16(buf);
1048 buf += 16;
1060 buf += 16;
1064 end = buf + len;
1066 ADLER32_DO1(buf);
[all …]
/PHP-5.5/ext/interbase/
H A Dibase_query.c464 buf += slice_size; in _php_ibase_bind_array()
478 memset(buf, 0, buf_size); in _php_ibase_bind_array()
498 *(short*) buf = (short) l; in _php_ibase_bind_array()
557 *(long *) buf = Z_LVAL_P(val); in _php_ibase_bind_array()
565 *(ISC_INT64 *) buf = l; in _php_ibase_bind_array()
647 var->sqlind = &buf[i].sqlind; in _php_ibase_bind()
673 buf[i].sqlind = -1; in _php_ibase_bind()
682 buf[i].sqlind = 0; in _php_ibase_bind()
792 buf[i].val.qval = array_id; in _php_ibase_bind()
1529 snprintf(alias = buf, sizeof(buf), "%s_%02d", base, i++); in _php_ibase_fetch_hash()
[all …]
/PHP-5.5/ext/standard/
H A Dversioning.c37 char *buf = safe_emalloc(len, 2, 1), *q, lp, lq; in php_canonicalize_version() local
41 *buf = '\0'; in php_canonicalize_version()
42 return buf; in php_canonicalize_version()
46 q = buf; in php_canonicalize_version()
78 return buf; in php_canonicalize_version()
H A Dfile.c1006 char *buf = NULL; in PHP_FUNCTION() local
1045 if (buf) { in PHP_FUNCTION()
1046 efree(buf); in PHP_FUNCTION()
1056 char buf[2]; in PHP_FUNCTION() local
1072 buf[1] = '\0'; in PHP_FUNCTION()
1112 efree(buf); in PHP_FUNCTION()
1163 efree(buf); in PHP_FUNCTION()
1959 char *buf; in PHP_FUNCTION() local
2038 efree(buf); in PHP_FUNCTION()
2061 bptr = buf; in php_fgetcsv()
[all …]
H A Dphp_fopen_wrapper.c34 static size_t php_stream_output_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) … in php_stream_output_write() argument
36 PHPWRITE(buf, count); in php_stream_output_write()
41 static size_t php_stream_output_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) /* {{{ … in php_stream_output_read() argument
66 static size_t php_stream_input_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) /… in php_stream_input_write() argument
72 static size_t php_stream_input_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) /* {{{ */ in php_stream_input_read() argument
86 memcpy(buf, SG(request_info).raw_post_data + *position, read_bytes); in php_stream_input_read()
89 read_bytes = sapi_module.read_post(buf, count TSRMLS_CC); in php_stream_input_read()
/PHP-5.5/ext/zip/lib/
H A Dzip_close.c446 char buf[BUFSIZE]; in copy_data() local
453 nn = len > sizeof(buf) ? sizeof(buf) : len; in copy_data()
454 if ((n=fread(buf, 1, nn, fs)) < 0) { in copy_data()
463 if (fwrite(buf, 1, n, ft) != (size_t)n) { in copy_data()
479 char buf[BUFSIZE]; in copy_source() local
489 while ((n=zip_source_read(src, buf, sizeof(buf))) > 0) { in copy_source()
490 if (fwrite(buf, 1, n, ft) != (size_t)n) { in copy_source()
515 char buf[TORRENT_CRC_LEN+1]; in write_cdir() local
531 snprintf(buf, sizeof(buf), "%08lX", (long)crc); in write_cdir()
538 if (fwrite(buf, TORRENT_CRC_LEN, 1, out) != 1) { in write_cdir()
/PHP-5.5/ext/sockets/tests/
H A Dsocket_sentto_recvfrom_unix.phpt21 var_dump(socket_recvfrom($socket, $buf, 12, 0, $from, $port)); //false (EAGAIN, no warning)
40 var_dump(socket_recvfrom($socket, $buf, 0, 0, $from)); // expect false
41 $bytes_received = socket_recvfrom($socket, $buf, 12, 0, $from);
49 echo "Received $buf";
/PHP-5.5/ext/zlib/
H A Dzlib_fopen_wrapper.c33 static size_t php_gziop_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) in php_gziop_read() argument
38 read = gzread(self->gz_file, buf, count); in php_gziop_read()
47 static size_t php_gziop_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) in php_gziop_write() argument
52 wrote = gzwrite(self->gz_file, (char *) buf, count); in php_gziop_write()
/PHP-5.5/ext/fileinfo/libmagic/
H A Dapptype.c45 file_os2_apptype(struct magic_set *ms, const char *fn, const void *buf, in file_os2_apptype() argument
72 if (fwrite(buf, 1, nb, fp) != nb) { in file_os2_apptype()
132 if (strncmp((const char *)buf, "MZ", 2)) in file_os2_apptype()
/PHP-5.5/main/
H A Dnetwork.c614 char *buf = NULL; local
620 if (buf) {
630 if (buf) {
996 if (buf == NULL) {
997 buf = estrdup(errstr);
999 strncpy(buf, errstr, bufsize);
1002 return buf;
1021 if (buf == NULL) {
1022 buf = estrdup(sysbuf);
1024 strncpy(buf, sysbuf, bufsize);
[all …]
/PHP-5.5/ext/phar/
H A Dutil.c1531 unsigned char buf[1024]; local
1622 read_size = sizeof(buf);
1664 read_size = sizeof(buf);
1808 unsigned char buf[1024]; local
1826 while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) {
1841 while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) {
1899 while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) {
1943 while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) {
1958 while ((sig_len = php_stream_read(fp, (char*)buf, sizeof(buf))) > 0) {
2011 efree(buf);
[all …]
H A Ddirstream.h30 static size_t phar_dir_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC);
31 static size_t phar_dir_read( php_stream *stream, char *buf, size_t count TSRMLS_DC);
H A Dstream.h33 static size_t phar_stream_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC);
34 static size_t phar_stream_read( php_stream *stream, char *buf, size_t count TSRMLS_DC);
/PHP-5.5/ext/ftp/
H A Dftp.c843 char *ptr = data->buf; in ftp_get()
926 ptr = data->buf; in ftp_put()
933 ptr = data->buf; in ftp_put()
1249 sent = SSL_write(ftp->ssl_handle, buf, size); in my_send()
1254 sent = send(s, buf, size, 0); in my_send()
1262 buf = (char*) buf + sent; in my_send()
1294 nr_bytes = recv(s, buf, len, 0); in my_recv()
1660 php_stream_write(tmpstream, data->buf, rcvd); in ftp_genlist()
1663 for (ptr = data->buf; rcvd; rcvd--, ptr++) { in ftp_genlist()
1790 for (ptr = data->buf; rcvd; rcvd--, ptr++) { in ftp_nb_continue_read()
[all …]
/PHP-5.5/sapi/roxen/
H A Droxen.c390 INLINE static int php_roxen_low_read_post(char *buf, uint count_bytes) in php_roxen_low_read_post() argument
407 MEMCPY(buf, Pike_sp[-1].u.string->str, in php_roxen_low_read_post()
409 buf[total_read] = '\0'; in php_roxen_low_read_post()
417 php_roxen_sapi_read_post(char *buf, uint count_bytes TSRMLS_DC) in php_roxen_sapi_read_post() argument
420 THREAD_SAFE_RUN(total_read = php_roxen_low_read_post(buf, count_bytes), "read post"); in php_roxen_sapi_read_post()
518 zvalue->value.str.len = strlen(buf); \
519 zvalue->value.str.val = estrndup(buf, zvalue->value.str.len); \
527 char buf[512]; in php_roxen_hash_environment() local
548 strncpy(buf, ind->u.string->str, buf_len); in php_roxen_hash_environment()
549 buf[buf_len] = '\0'; /* Terminate correctly */ in php_roxen_hash_environment()
[all …]
/PHP-5.5/main/streams/
H A Dtransports.c397 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen, in php_stream_xport_recvfrom() argument
408 return php_stream_read(stream, buf, buflen); in php_stream_xport_recvfrom()
427 memcpy(buf, stream->readbuf, recvd_len); in php_stream_xport_recvfrom()
428 buf += recvd_len; in php_stream_xport_recvfrom()
445 param.inputs.buf = buf; in php_stream_xport_recvfrom()
467 PHPAPI int php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen, in php_stream_xport_sendto() argument
476 return php_stream_write(stream, buf, buflen); in php_stream_xport_sendto()
491 param.inputs.buf = (char*)buf; in php_stream_xport_sendto()
H A Dxp_socket.c54 static size_t php_sockop_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) in php_sockop_write() argument
70 didwrite = send(sock->socket, buf, count, (sock->is_blocked && ptimeout) ? MSG_DONTWAIT : 0); in php_sockop_write()
144 static size_t php_sockop_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) in php_sockop_read() argument
239 ret = sendto(sock->socket, buf, buflen, flags, addr, addrlen); in sock_sendto()
242 return ((ret = send(sock->socket, buf, buflen, flags)) == SOCK_CONN_ERR) ? -1 : ret; in sock_sendto()
256 ret = recvfrom(sock->socket, buf, buflen, flags, (struct sockaddr*)&sa, &sl); in sock_recvfrom()
261 ret = recv(sock->socket, buf, buflen, flags); in sock_recvfrom()
278 char buf; in php_sockop_set_option() local
296 … if (0 >= recv(sock->socket, &buf, sizeof(buf), MSG_PEEK) && php_socket_errno() != EWOULDBLOCK) { in php_sockop_set_option()
354 xparam->inputs.buf, xparam->inputs.buflen, in php_sockop_set_option()
[all …]
H A Dplain_wrapper.c340 return fwrite(buf, 1, count, data->file); in php_stdiop_write()
380 ret = read(data->fd, buf, count); in php_stdiop_read()
386 ret = read(data->fd, buf, count); in php_stdiop_read()
398 ret = fread(buf, 1, count, data->file); in php_stdiop_read()
1186 char buf[MAXPATHLEN]; in php_plain_files_mkdir() local
1193 e = buf + strlen(buf); in php_plain_files_mkdir()
1196 offset = p - buf + 1; in php_plain_files_mkdir()
1204 …while ( (p = strrchr(buf + offset, DEFAULT_SLASH)) || (offset != 1 && (p = strrchr(buf, DEFAULT_SL… in php_plain_files_mkdir()
1213 if (VCWD_STAT(buf, &sb) == 0) { in php_plain_files_mkdir()
1225 if (p == buf) { in php_plain_files_mkdir()
[all …]
/PHP-5.5/ext/zlib/tests/
H A Dgzreadgzwrite.phpt20 while ($buf = gzread($fp, 8092)) {
21 $data .= $buf;
/PHP-5.5/sapi/fpm/fpm/
H A Dfpm_children.c184 char buf[128]; in fpm_children_bury() local
192 snprintf(buf, sizeof(buf), "with code %d", WEXITSTATUS(status)); in fpm_children_bury()
213 snprintf(buf, sizeof(buf), "on signal %d (%s%s)", WTERMSIG(status), signame, have_core); in fpm_children_bury()
252 …%s after %ld.%06d seconds from start", child->wp->config->name, (int) pid, buf, tv2.tv_sec, (int) … in fpm_children_bury()
295 … "oops, unknown child (%d) exited %s. Please open a bug report (https://bugs.php.net).", pid, buf); in fpm_children_bury()
/PHP-5.5/ext/hash/
H A Dhash_joaat.c74 joaat_buf(void *buf, size_t len, php_hash_uint32 hval) in joaat_buf() argument
77 unsigned char *input = (unsigned char *)buf; in joaat_buf()
H A Dphp_hash_fnv.h67 static php_hash_uint32 fnv_32_buf(void *buf, size_t len, php_hash_uint32 hval, int alternate);
68 static php_hash_uint64 fnv_64_buf(void *buf, size_t len, php_hash_uint64 hval, int alternate);
/PHP-5.5/ext/gd/
H A Dgd_ctx.c36 static int _php_image_output_putbuf(struct gdIOCtx *ctx, const void* buf, int l) in _php_image_output_putbuf() argument
39 return php_write((void *)buf, l TSRMLS_CC); in _php_image_output_putbuf()
56 static int _php_image_stream_putbuf(struct gdIOCtx *ctx, const void* buf, int l) in _php_image_stream_putbuf() argument
60 return php_stream_write(stream, (void *)buf, l); in _php_image_stream_putbuf()
/PHP-5.5/sapi/cli/
H A Dphp_cli_server.c349 if (buf == NULL) { in php_cli_server_get_system_time()
812 char buf[52]; in sapi_cli_server_log_message() local
1267 char *buf = NULL; in php_cli_server_logf() local
1277 if (!buf) { in php_cli_server_logf()
1285 efree(buf); in php_cli_server_logf()
1465 if (!buf) { in php_cli_server_request_translate_vpath()
1494 while (q > buf) { in php_cli_server_request_translate_vpath()
1514 pefree(buf, 1); in php_cli_server_request_translate_vpath()
1762 char buf[16384]; in php_cli_server_client_read_request() local
1780 nbytes_read = recv(client->sock, buf, sizeof(buf) - 1, 0); in php_cli_server_client_read_request()
[all …]
/PHP-5.5/ext/soap/
H A Dsoap.c1500 xmlChar *buf; local
1956 xmlFree(buf);
2067 xmlChar *buf; local
2109 xmlFree(buf);
2557 char *buf; local
2567 if (!buf) {
2616 xmlFree(buf);
2985 add_next_index_stringl(return_value, buf.c, buf.len, 1);
3016 add_next_index_stringl(return_value, buf.c, buf.len, 1);
4668 smart_str_0(buf);
[all …]

Completed in 113 milliseconds

12345678910>>...14