Home
last modified time | relevance | path

Searched refs:buflen (Results 1 – 25 of 31) sorted by relevance

12

/PHP-8.0/ext/standard/
H A Dcrypt_sha256.c58 uint32_t buflen; member
206 ctx->buflen = 0; in sha256_init_ctx()
250 if (ctx->buflen != 0) { in sha256_process_bytes()
259 ctx->buflen &= 63; in sha256_process_bytes()
516 buflen -= n; in php_sha256_crypt_r()
520 buflen -= MIN(MAX (0, buflen), (int)salt_len); in php_sha256_crypt_r()
522 if (buflen > 0) { in php_sha256_crypt_r()
524 --buflen; in php_sha256_crypt_r()
550 if (buflen <= 0) { in php_sha256_crypt_r()
593 if (buflen < needed) { in php_sha256_crypt()
[all …]
H A Dcrypt_sha512.c52 uint64_t buflen; member
233 ctx->buflen = 0; in sha512_init_ctx()
277 if (ctx->buflen != 0) { in sha512_process_bytes()
282 ctx->buflen += add; in sha512_process_bytes()
287 ctx->buflen &= 127; in sha512_process_bytes()
551 buflen -= n; in php_sha512_crypt_r()
555 buflen -= (int) MIN((size_t) MAX(0, buflen), salt_len); in php_sha512_crypt_r()
557 if (buflen > 0) { in php_sha512_crypt_r()
559 --buflen; in php_sha512_crypt_r()
597 if (buflen <= 0) { in php_sha512_crypt_r()
[all …]
H A Dphp_crypt_r.h35 extern char * php_sha512_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
36 extern char * php_sha256_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
H A Duser_filters.c419 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen); in PHP_FUNCTION()
420 add_property_long(return_value, "datalen", bucket->buflen); in PHP_FUNCTION()
456 if (bucket->buflen != Z_STRLEN_P(pzdata)) { in php_stream_bucket_attach()
458 bucket->buflen = Z_STRLEN_P(pzdata); in php_stream_bucket_attach()
460 memcpy(bucket->buf, Z_STRVAL_P(pzdata), bucket->buflen); in php_stream_bucket_attach()
518 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen); in PHP_FUNCTION()
519 add_property_long(return_value, "datalen", bucket->buflen); in PHP_FUNCTION()
H A Dexec.c121 size_t buflen, bufl = 0; in php_exec() local
143 buflen = EXEC_INPUT_BUF; in php_exec()
151 if (buflen < (bufl + (b - buf) + EXEC_INPUT_BUF)) { in php_exec()
153 buflen = bufl + EXEC_INPUT_BUF; in php_exec()
154 buf = erealloc(buf, buflen); in php_exec()
H A Dfilters.c47 php_strtr(bucket->buf, bucket->buflen, rot13_from, rot13_to, 52); in strfilter_rot13_filter()
48 consumed += bucket->buflen; in strfilter_rot13_filter()
95 php_strtr(bucket->buf, bucket->buflen, lowercase, uppercase, 26); in strfilter_toupper_filter()
96 consumed += bucket->buflen; in strfilter_toupper_filter()
123 php_strtr(bucket->buf, bucket->buflen, uppercase, lowercase, 26); in strfilter_tolower_filter()
124 consumed += bucket->buflen; in strfilter_tolower_filter()
1533 buckets_out, bucket->buf, bucket->buflen, &consumed, in strfilter_convert_filter()
1651 consumed += bucket->buflen; in consumed_filter_filter()
1857 consumed += bucket->buflen; in php_chunked_filter()
1858 bucket->buflen = php_dechunk(bucket->buf, bucket->buflen, data); in php_chunked_filter()
/PHP-8.0/main/streams/
H A Dfilter.c81 bucket->buf = pemalloc(buflen, 1); in php_stream_bucket_new()
82 memcpy(bucket->buf, buf, buflen); in php_stream_bucket_new()
83 bucket->buflen = buflen; in php_stream_bucket_new()
87 bucket->buflen = buflen; in php_stream_bucket_new()
118 memcpy(retval->buf, bucket->buf, retval->buflen); in php_stream_bucket_make_writeable()
134 (*left)->buflen = length; in php_stream_bucket_split()
140 (*right)->buflen = in->buflen - length; in php_stream_bucket_split()
369 stream->readbuflen += bucket->buflen; in php_stream_filter_append_ex()
373 stream->writepos += bucket->buflen; in php_stream_filter_append_ex()
442 flushed_size += bucket->buflen; in _php_stream_filter_flush()
[all …]
H A Dtransports.c395 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen, in php_stream_xport_recvfrom() argument
406 return php_stream_read(stream, buf, buflen); in php_stream_xport_recvfrom()
421 if (recvd_len > buflen) { in php_stream_xport_recvfrom()
422 recvd_len = buflen; in php_stream_xport_recvfrom()
427 buflen -= recvd_len; in php_stream_xport_recvfrom()
430 if (buflen == 0) { in php_stream_xport_recvfrom()
444 param.inputs.buflen = buflen; in php_stream_xport_recvfrom()
464 PHPAPI int php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen, in php_stream_xport_sendto() argument
473 return php_stream_write(stream, buf, buflen); in php_stream_xport_sendto()
489 param.inputs.buflen = buflen; in php_stream_xport_sendto()
H A Dphp_stream_transport.h100 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen,
106 PHPAPI int php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen,
145 size_t buflen; member
H A Dxp_socket.c252 static inline int sock_sendto(php_netstream_data_t *sock, const char *buf, size_t buflen, int flags, in sock_sendto() argument
258 ret = sendto(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags, addr, XP_SOCK_BUF_SIZE(addrlen)); in sock_sendto()
263 …return ((ret = send(sock->socket, buf, buflen > INT_MAX ? INT_MAX : (int)buflen, flags)) == SOCK_C… in sock_sendto()
265 return ((ret = send(sock->socket, buf, buflen, flags)) == SOCK_CONN_ERR) ? -1 : ret; in sock_sendto()
269 static inline int sock_recvfrom(php_netstream_data_t *sock, char *buf, size_t buflen, int flags, in sock_recvfrom() argument
280 ret = recvfrom(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags, (struct sockaddr*)&sa, &sl); in sock_recvfrom()
285 ret = buflen; in sock_recvfrom()
301 ret = recv(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags); in sock_recvfrom()
406 xparam->inputs.buf, xparam->inputs.buflen, in php_sockop_set_option()
427 xparam->inputs.buf, xparam->inputs.buflen, in php_sockop_set_option()
H A Dphp_stream_filter_api.h45 size_t buflen; member
66 PHPAPI php_stream_bucket *php_stream_bucket_new(php_stream *stream, char *buf, size_t buflen, uint8…
/PHP-8.0/ext/posix/
H A Dposix.c516 zend_long buflen; in PHP_FUNCTION() local
534 if (buflen < 1) { in PHP_FUNCTION()
537 p = emalloc(buflen); in PHP_FUNCTION()
787 long buflen; in PHP_FUNCTION() local
797 if (buflen < 1) { in PHP_FUNCTION()
800 buf = emalloc(buflen); in PHP_FUNCTION()
806 buflen *= 2; in PHP_FUNCTION()
917 long buflen; in PHP_FUNCTION() local
927 if (buflen < 1) { in PHP_FUNCTION()
930 buf = emalloc(buflen); in PHP_FUNCTION()
[all …]
/PHP-8.0/sapi/phpdbg/
H A Dphpdbg_out.c906 tmp = tmpptr = emalloc(*buflen * 5); in phpdbg_encode_ctrl_chars()
908 for (i = 0; i < *buflen; i++) { in phpdbg_encode_ctrl_chars()
926 *buflen = len; in phpdbg_encode_ctrl_chars()
931 int msgoutlen, xmloutlen, buflen; in phpdbg_process_print() local
1012 buflen = ZSTR_LEN(encoded); in phpdbg_process_print()
1013 memcpy(buf = emalloc(buflen + 1), ZSTR_VAL(encoded), buflen); in phpdbg_process_print()
1015 phpdbg_mixed_write(fd, buf, buflen); in phpdbg_process_print()
1190 int buflen; in phpdbg_xml_internal() local
1213 int buflen; in phpdbg_log_internal() local
1229 int buflen; in phpdbg_out_internal() local
[all …]
H A Dphpdbg_rinit_hook.c59 ssize_t buflen; in PHP_RINIT_FUNCTION() local
78 while ((buflen = recv(s, buf, sizeof(buf) - 1, 0)) > 0) { in PHP_RINIT_FUNCTION()
79 php_write(buf, buflen); in PHP_RINIT_FUNCTION()
/PHP-8.0/ext/intl/locale/
H A Dlocale_methods.c258 int32_t buflen = 512; in get_icu_value_internal() local
308 tag_value = zend_string_realloc( tag_value , buflen, 0); in get_icu_value_internal()
310 tag_value = zend_string_alloc( buflen, 0); in get_icu_value_internal()
312 tag_value_len = buflen; in get_icu_value_internal()
333 buflen++; /* add space for \0 */ in get_icu_value_internal()
347 } while( buflen > tag_value_len ); in get_icu_value_internal()
349 if( buflen ==0 ){ in get_icu_value_internal()
471 int32_t buflen = 512; in get_icu_disp_value_src_php() local
525 disp_name_len = buflen; in get_icu_disp_value_src_php()
563 } while( buflen > disp_name_len ); in get_icu_disp_value_src_php()
[all …]
/PHP-8.0/ext/zlib/
H A Dzlib_filter.c77 while (bin < (unsigned int) bucket->buflen && !data->finished) { in php_zlib_inflate_filter()
79 desired = bucket->buflen - bin; in php_zlib_inflate_filter()
117 consumed += bucket->buflen; in php_zlib_inflate_filter()
197 while (bin < (unsigned int) bucket->buflen) { in php_zlib_deflate_filter()
200 desired = bucket->buflen - bin; in php_zlib_deflate_filter()
232 consumed += bucket->buflen; in php_zlib_deflate_filter()
/PHP-8.0/ext/mysqlnd/
H A Dmysqlnd_loaddata.c145 unsigned int buflen = 4096; in mysqlnd_handle_local_infile() local
167 buf = (zend_uchar *) mnd_ecalloc(1, buflen); in mysqlnd_handle_local_infile()
185 …while ((bufsize = infile.local_infile_read (info, buf + MYSQLND_HEADER_SIZE, buflen - MYSQLND_HEAD… in mysqlnd_handle_local_infile()
/PHP-8.0/ext/bz2/
H A Dbz2_filter.c92 while (bin < bucket->buflen) { in php_bz2_decompress_filter()
105 consumed += bucket->buflen; in php_bz2_decompress_filter()
109 desired = bucket->buflen - bin; in php_bz2_decompress_filter()
230 while (bin < bucket->buflen) { in php_bz2_compress_filter()
233 desired = bucket->buflen - bin; in php_bz2_compress_filter()
/PHP-8.0/build/
H A Dax_func_which_gethostbyname_r.m4105 int buflen = 1024;
107 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
125 int buflen = 1024;
127 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
/PHP-8.0/ext/pdo_odbc/
H A Dodbc_stmt.c57 zend_ulong buflen, zend_ulong *outlen) in pdo_odbc_utf82ucs2() argument
60 if (is_unicode && buflen) { in pdo_odbc_utf82ucs2()
64 ret = MultiByteToWideChar(CP_UTF8, 0, buf, buflen, NULL, 0); in pdo_odbc_utf82ucs2()
77 …ret = MultiByteToWideChar(CP_UTF8, 0, buf, buflen, (LPWSTR)S->convbuf, S->convbufsize / sizeof(WCH… in pdo_odbc_utf82ucs2()
92 zend_ulong buflen, zend_ulong *outlen) in pdo_odbc_ucs22utf8() argument
95 if (is_unicode && buflen) { in pdo_odbc_ucs22utf8()
99 ret = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR)buf, buflen/sizeof(WCHAR), NULL, 0, NULL, NULL); in pdo_odbc_ucs22utf8()
109 …ret = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR)buf, buflen/sizeof(WCHAR), S->convbuf, S->convbufsi… in pdo_odbc_ucs22utf8()
/PHP-8.0/ext/snmp/
H A Dsnmp.c264 int buflen = sizeof(sbuf) - 1; in php_snmp_getvalue() local
292 buflen = val_len; in php_snmp_getvalue()
298 buflen = val_len; in php_snmp_getvalue()
323 snprintf(buf, buflen, "%d.%d.%d.%d", in php_snmp_getvalue()
326 buf[buflen]=0; in php_snmp_getvalue()
335 snprintf(buf, buflen, "%lu", *vars->val.integer); in php_snmp_getvalue()
336 buf[buflen]=0; in php_snmp_getvalue()
341 snprintf(buf, buflen, "%ld", *vars->val.integer); in php_snmp_getvalue()
342 buf[buflen]=0; in php_snmp_getvalue()
348 snprintf(buf, buflen, "%f", *vars->val.floatVal); in php_snmp_getvalue()
[all …]
/PHP-8.0/win32/
H A Dregistry.c288 DWORD buflen = MAXPATHLEN; in GetIniPathFromRegistry() local
290 if(RegQueryValueEx(hKey, PHPRC_REGISTRY_NAME, 0, NULL, reg_location, &buflen) != ERROR_SUCCESS) { in GetIniPathFromRegistry()
/PHP-8.0/ext/mysqli/
H A Dmysqli_api.c384 stmt->result.buf[ofs].buflen = sizeof(float); in mysqli_stmt_bind_result_do_bind()
394 stmt->result.buf[ofs].buflen = sizeof(double); in mysqli_stmt_bind_result_do_bind()
433 stmt->result.buf[ofs].buflen = sizeof(my_ulonglong); in mysqli_stmt_bind_result_do_bind()
434 stmt->result.buf[ofs].val = (char *)emalloc(stmt->result.buf[ofs].buflen); in mysqli_stmt_bind_result_do_bind()
438 bind[ofs].buffer_length = stmt->result.buf[ofs].buflen; in mysqli_stmt_bind_result_do_bind()
476 stmt->result.buf[ofs].buflen = in mysqli_stmt_bind_result_do_bind()
484 if (!(stmt->result.buf[ofs].buflen = stmt->stmt->fields[ofs].max_length)) in mysqli_stmt_bind_result_do_bind()
485 ++stmt->result.buf[ofs].buflen; in mysqli_stmt_bind_result_do_bind()
487 stmt->result.buf[ofs].val = (char *)emalloc(stmt->result.buf[ofs].buflen); in mysqli_stmt_bind_result_do_bind()
491 bind[ofs].buffer_length = stmt->result.buf[ofs].buflen; in mysqli_stmt_bind_result_do_bind()
[all …]
H A Dphp_mysqli_structs.h62 zend_ulong buflen; member
/PHP-8.0/ext/session/
H A Dmod_files.c107 static char *ps_files_path_create(char *buf, size_t buflen, ps_files *data, const char *key) in ps_files_path_create() argument
116 buflen < (strlen(data->basedir) + 2 * data->dirdepth + key_len + 5 + sizeof(FILE_PREFIX))) { in ps_files_path_create()

Completed in 148 milliseconds

12