Home
last modified time | relevance | path

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

12345678910>>...13

/PHP-7.4/win32/
H A Dwinutil.c31 char *buf; in php_win32_error_to_msg() local
42 buf = php_win32_cp_conv_w_to_any(bufw, ret, PHP_WIN32_CP_IGNORE_LEN_P); in php_win32_error_to_msg()
46 return (buf ? buf : ""); in php_win32_error_to_msg()
102 PHP_WINUTIL_API int php_win32_get_random_bytes(unsigned char *buf, size_t size) in php_win32_get_random_bytes() argument
117 ret = NT_SUCCESS(BCryptGenRandom(bcrypt_algo, buf, (ULONG)size, 0)); in php_win32_get_random_bytes()
/PHP-7.4/ext/hash/
H A Dhash_joaat.c73 joaat_buf(void *buf, size_t len, uint32_t hval) in joaat_buf() argument
76 unsigned char *input = (unsigned char *)buf; in joaat_buf()
H A Dphp_hash_fnv.h65 static uint32_t fnv_32_buf(void *buf, size_t len, uint32_t hval, int alternate);
66 static uint64_t fnv_64_buf(void *buf, size_t len, uint64_t hval, int alternate);
/PHP-7.4/ext/phar/
H A Dstream.h31 static ssize_t phar_stream_write(php_stream *stream, const char *buf, size_t count);
32 static ssize_t phar_stream_read( php_stream *stream, char *buf, size_t count);
/PHP-7.4/ext/zlib/
H A Dzlib_fopen_wrapper.c33 static ssize_t php_gziop_read(php_stream *stream, char *buf, size_t count) in php_gziop_read() argument
39 read = gzread(self->gz_file, buf, count); in php_gziop_read()
48 static ssize_t php_gziop_write(php_stream *stream, const char *buf, size_t count) in php_gziop_write() argument
53 return gzwrite(self->gz_file, (char *) buf, count); in php_gziop_write()
/PHP-7.4/ext/soap/
H A Dsoap.c1492 xmlChar *buf; local
1929 xmlFree(buf);
2045 xmlChar *buf; local
2087 xmlFree(buf);
2509 char *buf; local
2520 if (!buf) {
2576 xmlFree(buf);
3065 zend_string *buf; local
3073 &buf,
4637 smart_str_0(buf);
[all …]
/PHP-7.4/ext/standard/
H A Dphp_fopen_wrapper.c34 static ssize_t php_stream_output_write(php_stream *stream, const char *buf, size_t count) /* {{{ */ in php_stream_output_write() argument
36 PHPWRITE(buf, count); in php_stream_output_write()
41 static ssize_t php_stream_output_read(php_stream *stream, char *buf, size_t count) /* {{{ */ in php_stream_output_read() argument
72 static ssize_t php_stream_input_write(php_stream *stream, const char *buf, size_t count) /* {{{ */ in php_stream_input_write() argument
78 static ssize_t php_stream_input_read(php_stream *stream, char *buf, size_t count) /* {{{ */ in php_stream_input_read() argument
85 size_t read_bytes = sapi_read_post_block(buf, count); in php_stream_input_read()
89 php_stream_write(input->body, buf, read_bytes); in php_stream_input_read()
98 read = php_stream_read(input->body, buf, count); in php_stream_input_read()
H A Dfile.c1014 char *buf = NULL; in PHP_FUNCTION() local
1036 efree(buf); in PHP_FUNCTION()
1065 char buf[2]; in PHP_FUNCTION() local
1080 buf[0] = result; in PHP_FUNCTION()
1081 buf[1] = '\0'; in PHP_FUNCTION()
1124 efree(buf); in PHP_FUNCTION()
1171 efree(buf); in PHP_FUNCTION()
1993 char *buf; in PHP_FUNCTION() local
2073 efree(buf); in PHP_FUNCTION()
2098 bptr = buf; in php_fgetcsv()
[all …]
/PHP-7.4/main/streams/
H A Dtransports.c389 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen, in php_stream_xport_recvfrom() argument
400 return php_stream_read(stream, buf, buflen); in php_stream_xport_recvfrom()
419 memcpy(buf, stream->readbuf, recvd_len); in php_stream_xport_recvfrom()
420 buf += recvd_len; in php_stream_xport_recvfrom()
437 param.inputs.buf = buf; in php_stream_xport_recvfrom()
458 PHPAPI int php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen, in php_stream_xport_sendto() argument
467 return php_stream_write(stream, buf, buflen); in php_stream_xport_sendto()
482 param.inputs.buf = (char*)buf; in php_stream_xport_sendto()
H A Dxp_socket.c59 static ssize_t php_sockop_write(php_stream *stream, const char *buf, size_t count) in php_sockop_write() argument
151 static ssize_t php_sockop_read(php_stream *stream, char *buf, size_t count) in php_sockop_read() argument
251 static inline int sock_sendto(php_netstream_data_t *sock, const char *buf, size_t buflen, int flags, in sock_sendto() argument
264 return ((ret = send(sock->socket, buf, buflen, flags)) == SOCK_CONN_ERR) ? -1 : ret; in sock_sendto()
268 static inline int sock_recvfrom(php_netstream_data_t *sock, char *buf, size_t buflen, int flags, in sock_recvfrom() argument
279 ret = recvfrom(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags, (struct sockaddr*)&sa, &sl); in sock_recvfrom()
300 ret = recv(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags); in sock_recvfrom()
321 char buf; in php_sockop_set_option() local
346 ret = recv(sock->socket, &buf, sizeof(buf), MSG_PEEK); in php_sockop_set_option()
405 xparam->inputs.buf, xparam->inputs.buflen, in php_sockop_set_option()
[all …]
H A Dplain_wrapper.c444 ret = fread(buf, 1, count, data->file); in php_stdiop_read()
969 php_stream_dirent *ent = (php_stream_dirent*)buf; in php_plain_files_dirstream_read()
1320 char buf[MAXPATHLEN]; in php_plain_files_mkdir() local
1327 e = buf + strlen(buf); in php_plain_files_mkdir()
1330 offset = p - buf + 1; in php_plain_files_mkdir()
1338 …while ( (p = strrchr(buf + offset, DEFAULT_SLASH)) || (offset != 1 && (p = strrchr(buf, DEFAULT_SL… in php_plain_files_mkdir()
1342 while (p > buf && *(p-1) == DEFAULT_SLASH) { in php_plain_files_mkdir()
1347 if (VCWD_STAT(buf, &sb) == 0) { in php_plain_files_mkdir()
1359 if (p == buf) { in php_plain_files_mkdir()
1361 } else if (!(ret = php_mkdir(buf, mode))) { in php_plain_files_mkdir()
[all …]
/PHP-7.4/ext/sockets/tests/
H A Dsocket_sentto_recvfrom_ipv4_udp.phpt39 $buf = null;
58 $buf .= $buffering;
67 echo "Received $buf from remote address $address and remote port $port" . PHP_EOL;
H A Dsocket_sentto_recvfrom_ipv6_udp.phpt43 $buf = null;
62 $buf .= $buffering;
71 echo "Received $buf from remote address $address and remote port $port" . PHP_EOL;
H A Dsocket_abstract_path_sendmsg.phpt33 if (!socket_recv($s, $buf, 20, 0)) die("recv");
34 print_r($buf);
/PHP-7.4/ext/gd/
H A Dgd_ctx.c33 static int _php_image_output_putbuf(struct gdIOCtx *ctx, const void* buf, int l) /* {{{ */ in _php_image_output_putbuf() argument
35 return php_write((void *)buf, l); in _php_image_output_putbuf()
51 static int _php_image_stream_putbuf(struct gdIOCtx *ctx, const void* buf, int l) /* {{{ */ in _php_image_stream_putbuf() argument
54 return php_stream_write(stream, (void *)buf, l); in _php_image_stream_putbuf()
/PHP-7.4/ext/intl/collator/
H A Dcollator_is_numeric.c71 char buf[64], *numbuf, *bufpos; in collator_u_strtod() local
76 if (length < sizeof(buf)) { in collator_u_strtod()
77 numbuf = buf; in collator_u_strtod()
91 if (numbuf != buf) { in collator_u_strtod()
/PHP-7.4/ext/gd/libgd/
H A Dgd_xbm.c166 char *buf; in gdCtxPrintf() local
171 len = vspprintf(&buf, 0, format, args); in gdCtxPrintf()
173 out->putBuf(out, buf, len); in gdCtxPrintf()
174 efree(buf); in gdCtxPrintf()
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg_webdata_transfer.c165 smart_str buf = {0}; in phpdbg_webdata_compress() local
168 php_var_serialize(&buf, &array, &var_hash); in phpdbg_webdata_compress()
170 *msg = ZSTR_VAL(buf.s); in phpdbg_webdata_compress()
171 *len = ZSTR_LEN(buf.s); in phpdbg_webdata_compress()
/PHP-7.4/main/
H A Dfastcgi.c1050 unsigned char buf[FCGI_MAX_LENGTH+8]; in fcgi_read_request() local
1095 b = (fcgi_begin_request*)buf; in fcgi_read_request()
1141 if (!fcgi_get_params(req, buf, buf+len)) { in fcgi_read_request()
1165 if (!fcgi_get_params(req, buf, buf+len)) { in fcgi_read_request()
1177 if ((p + 4 + 4 + q->var_len + zlen) >= (buf + sizeof(buf))) { in fcgi_read_request()
1202 len = (int)(p - buf - sizeof(fcgi_header)); in fcgi_read_request()
1220 unsigned char buf[255]; in fcgi_read() local
1293 char buf[8]; in fcgi_close() local
1297 while (recv(req->fd, buf, sizeof(buf), 0) > 0) {} in fcgi_close()
1303 char buf[8]; in fcgi_close()
[all …]
H A Dnetwork.c627 char *buf = NULL; local
633 if (buf) {
643 if (buf) {
1032 if (buf == NULL) {
1033 buf = estrdup(errstr);
1035 strncpy(buf, errstr, bufsize);
1038 return buf;
1045 if (buf == NULL) {
1046 buf = estrdup(sysbuf);
1048 strncpy(buf, sysbuf, bufsize);
[all …]
/PHP-7.4/ext/snmp/
H A Dsnmp.c541 *buf = '\0'; in php_snmp_getvalue()
553 if (buf == dbuf) { in php_snmp_getvalue()
559 buf = dbuf; in php_snmp_getvalue()
565 buf = dbuf; in php_snmp_getvalue()
570 *buf = 0; in php_snmp_getvalue()
594 buf[buflen]=0; in php_snmp_getvalue()
604 buf[buflen]=0; in php_snmp_getvalue()
610 buf[buflen]=0; in php_snmp_getvalue()
677 char buf[2048]; in php_snmp_internal() local
776 snprint_objid(buf, sizeof(buf), vars->name, vars->name_length); in php_snmp_internal()
[all …]
/PHP-7.4/sapi/fpm/fpm/
H A Dfpm_children.c187 char buf[128]; in fpm_children_bury() local
195 snprintf(buf, sizeof(buf), "with code %d", WEXITSTATUS(status)); in fpm_children_bury()
220 snprintf(buf, sizeof(buf), "on signal %d (%s%s)", WTERMSIG(status), signame, have_core); in fpm_children_bury()
259 …exited %s after %ld.%06d seconds from start", wp->config->name, (int) pid, buf, tv2.tv_sec, (int) … in fpm_children_bury()
302 … "oops, unknown child (%d) exited %s. Please open a bug report (https://bugs.php.net).", pid, buf); in fpm_children_bury()
/PHP-7.4/ext/mysqlnd/
H A Dmysqlnd_ps_codec.c581 size_t left = (*buf_len - (*p - *buf)); in mysqlnd_stmt_execute_check_n_enlarge_buffer()
584 const size_t offset = *p - *buf; in mysqlnd_stmt_execute_check_n_enlarge_buffer()
591 memcpy(tmp_buf, *buf, offset); in mysqlnd_stmt_execute_check_n_enlarge_buffer()
592 if (*buf != provided_buffer) { in mysqlnd_stmt_execute_check_n_enlarge_buffer()
593 mnd_efree(*buf); in mysqlnd_stmt_execute_check_n_enlarge_buffer()
595 *buf = tmp_buf; in mysqlnd_stmt_execute_check_n_enlarge_buffer()
597 *p = *buf + offset; in mysqlnd_stmt_execute_check_n_enlarge_buffer()
807 (buf + null_byte_offset)[i/8] |= (zend_uchar) (1 << (i & 7)); in mysqlnd_stmt_execute_store_param_values()
858 (buf + null_byte_offset)[i/8] |= (zend_uchar) (1 << (i & 7)); in mysqlnd_stmt_execute_store_param_values()
872 zend_uchar * provided_buffer = *buf; in mysqlnd_stmt_execute_store_params()
[all …]
/PHP-7.4/ext/json/
H A Dphp_json.h101 PHP_JSON_API int php_json_encode_ex(smart_str *buf, zval *val, int options, zend_long depth);
102 PHP_JSON_API int php_json_encode(smart_str *buf, zval *val, int options);
/PHP-7.4/ext/sockets/
H A Dconversions.c54 # define msg_control Control.buf
57 # define iov_base buf
223 char *bufp = buf; in from_array_iterate()
228 if ((size_t)snprintf(buf, sizeof(buf), "element #%u", i) >= sizeof(buf)) { in from_array_iterate()
924 char *bufp = buf; in from_zval_write_control_array()
955 if ((size_t)snprintf(buf, sizeof(buf), "element #%u", (unsigned)i++) >= sizeof(buf)) { in from_zval_write_control_array()
1017 char *bufp = buf; in to_zval_read_control_array()
1030 if ((size_t)snprintf(buf, sizeof(buf), "element #%u", (unsigned)i++) >= sizeof(buf)) { in to_zval_read_control_array()
1214 memcpy(ZSTR_VAL(buf), msghdr->msg_iov[i].iov_base, ZSTR_LEN(buf)); in to_zval_read_iov()
1215 ZSTR_VAL(buf)[ZSTR_LEN(buf)] = '\0'; in to_zval_read_iov() local
[all …]

Completed in 69 milliseconds

12345678910>>...13