Home
last modified time | relevance | path

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

12

/PHP-5.5/ext/standard/
H A Dcrypt_sha256.c73 uint32_t buflen; member
221 ctx->buflen = 0; in sha256_init_ctx()
270 ctx->buflen += add; in sha256_process_bytes()
274 ctx->buflen &= 63; in sha256_process_bytes()
534 buflen -= n; in php_sha256_crypt_r()
538 buflen -= MIN((size_t) MAX (0, buflen), salt_len); in php_sha256_crypt_r()
540 if (buflen > 0) { in php_sha256_crypt_r()
542 --buflen; in php_sha256_crypt_r()
568 if (buflen <= 0) { in php_sha256_crypt_r()
607 static int buflen; in php_sha256_crypt() local
[all …]
H A Dcrypt_sha512.c67 uint64_t buflen; member
248 ctx->buflen = 0; in sha512_init_ctx()
297 ctx->buflen += add; in sha512_process_bytes()
302 ctx->buflen &= 127; in sha512_process_bytes()
569 buflen -= n; in php_sha512_crypt_r()
573 buflen -= (int) MIN((size_t) MAX(0, buflen), salt_len); in php_sha512_crypt_r()
575 if (buflen > 0) { in php_sha512_crypt_r()
577 --buflen; in php_sha512_crypt_r()
615 if (buflen <= 0) { in php_sha512_crypt_r()
653 static int buflen; in php_sha512_crypt() local
[all …]
H A Dphp_crypt_r.h52 extern char * php_sha512_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
53 extern char * php_sha256_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
H A Duser_filters.c440 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen, 1); in PHP_FUNCTION()
441 add_property_long(return_value, "datalen", bucket->buflen); in PHP_FUNCTION()
470 if ((int)bucket->buflen != Z_STRLEN_PP(pzdata)) { in php_stream_bucket_attach()
472 bucket->buflen = Z_STRLEN_PP(pzdata); in php_stream_bucket_attach()
474 memcpy(bucket->buf, Z_STRVAL_PP(pzdata), bucket->buflen); in php_stream_bucket_attach()
542 add_property_stringl(return_value, "data", bucket->buf, bucket->buflen, 1); in PHP_FUNCTION()
543 add_property_long(return_value, "datalen", bucket->buflen); in PHP_FUNCTION()
H A Dexec.c110 size_t buflen, bufl = 0; in php_exec() local
132 buflen = EXEC_INPUT_BUF; in php_exec()
140 if (buflen < (bufl + (b - buf) + EXEC_INPUT_BUF)) { in php_exec()
142 buflen = bufl + EXEC_INPUT_BUF; in php_exec()
143 buf = erealloc(buf, buflen); in php_exec()
H A Dfilters.c51 php_strtr(bucket->buf, bucket->buflen, rot13_from, rot13_to, 52); in strfilter_rot13_filter()
52 consumed += bucket->buflen; in strfilter_rot13_filter()
99 php_strtr(bucket->buf, bucket->buflen, lowercase, uppercase, 26); in strfilter_toupper_filter()
100 consumed += bucket->buflen; in strfilter_toupper_filter()
128 consumed += bucket->buflen; in strfilter_tolower_filter()
218 consumed = bucket->buflen; in strfilter_strip_tags_filter()
220 …bucket->buflen = php_strip_tags(bucket->buf, bucket->buflen, &(inst->state), (char *)inst->allowed… in strfilter_strip_tags_filter()
1760 buckets_out, bucket->buf, bucket->buflen, &consumed, in strfilter_convert_filter()
1878 consumed += bucket->buflen; in consumed_filter_filter()
2088 consumed += bucket->buflen; in php_chunked_filter()
[all …]
/PHP-5.5/main/streams/
H A Dfilter.c88 bucket->buf = pemalloc(buflen, 1); in php_stream_bucket_new()
95 memcpy(bucket->buf, buf, buflen); in php_stream_bucket_new()
96 bucket->buflen = buflen; in php_stream_bucket_new()
100 bucket->buflen = buflen; in php_stream_bucket_new()
131 memcpy(retval->buf, bucket->buf, retval->buflen); in php_stream_bucket_make_writeable()
151 (*left)->buflen = length; in php_stream_bucket_split()
157 (*right)->buflen = in->buflen - length; in php_stream_bucket_split()
402 stream->readbuflen += bucket->buflen; in php_stream_filter_append_ex()
406 stream->writepos += bucket->buflen; in php_stream_filter_append_ex()
475 flushed_size += bucket->buflen; in _php_stream_filter_flush()
[all …]
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()
423 if (recvd_len > buflen) { in php_stream_xport_recvfrom()
424 recvd_len = buflen; in php_stream_xport_recvfrom()
429 buflen -= recvd_len; in php_stream_xport_recvfrom()
432 if (buflen == 0) { in php_stream_xport_recvfrom()
446 param.inputs.buflen = buflen; 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()
492 param.inputs.buflen = buflen; in php_stream_xport_sendto()
H A Dphp_stream_transport.h103 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen,
109 PHPAPI int php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen,
150 size_t buflen; member
H A Dxp_socket.c233 static inline int sock_sendto(php_netstream_data_t *sock, char *buf, size_t buflen, int flags, in sock_sendto() 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()
245 static inline int sock_recvfrom(php_netstream_data_t *sock, char *buf, size_t buflen, int flags, in sock_recvfrom() argument
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()
354 xparam->inputs.buf, xparam->inputs.buflen, in php_sockop_set_option()
375 xparam->inputs.buf, xparam->inputs.buflen, in php_sockop_set_option()
H A Dphp_stream_filter_api.h49 size_t buflen; member
70 PHPAPI php_stream_bucket *php_stream_bucket_new(php_stream *stream, char *buf, size_t buflen, int o…
/PHP-5.5/ext/intl/locale/
H A Dlocale_methods.c263 int32_t buflen = 512; in get_icu_value_internal() local
307 tag_value = erealloc( tag_value , buflen ); in get_icu_value_internal()
308 tag_value_len = buflen; in get_icu_value_internal()
311 buflen = uloc_getScript ( mod_loc_name ,tag_value , tag_value_len , &status); in get_icu_value_internal()
329 buflen++; /* add space for \0 */ in get_icu_value_internal()
343 } while( buflen > tag_value_len ); in get_icu_value_internal()
345 if( buflen ==0 ){ in get_icu_value_internal()
480 int32_t buflen = 512; in get_icu_disp_value_src_php() local
538 disp_name = erealloc( disp_name , buflen * sizeof(UChar) ); in get_icu_disp_value_src_php()
539 disp_name_len = buflen; in get_icu_disp_value_src_php()
[all …]
/PHP-5.5/ext/posix/
H A Dposix.c727 long buflen; in PHP_FUNCTION() local
745 buflen = sysconf(_SC_TTY_NAME_MAX); in PHP_FUNCTION()
746 if (buflen < 1) { in PHP_FUNCTION()
749 p = emalloc(buflen); in PHP_FUNCTION()
751 if (ttyname_r(fd, p, buflen)) { in PHP_FUNCTION()
998 long buflen; in PHP_FUNCTION() local
1008 if (buflen < 1) { in PHP_FUNCTION()
1011 buf = emalloc(buflen); in PHP_FUNCTION()
1117 long buflen; in PHP_FUNCTION() local
1127 if (buflen < 1) { in PHP_FUNCTION()
[all …]
/PHP-5.5/ext/mcrypt/
H A Dmcrypt_filter.c58 consumed += bucket->buflen; in php_mcrypt_filter()
63 int chunklen = bucket->buflen + data->block_used, n; in php_mcrypt_filter()
70 memcpy(outchunk + data->block_used, bucket->buf, bucket->buflen); in php_mcrypt_filter()
94 mcrypt_generic(data->module, bucket->buf, bucket->buflen); in php_mcrypt_filter()
96 mdecrypt_generic(data->module, bucket->buf, bucket->buflen); in php_mcrypt_filter()
/PHP-5.5/ext/zlib/
H A Dzlib_filter.c83 while (bin < (unsigned int) bucket->buflen) { in php_zlib_inflate_filter()
86 consumed += bucket->buflen; in php_zlib_inflate_filter()
90 desired = bucket->buflen - bin; in php_zlib_inflate_filter()
129 consumed += bucket->buflen; in php_zlib_inflate_filter()
208 while (bin < (unsigned int) bucket->buflen) { in php_zlib_deflate_filter()
209 desired = bucket->buflen - bin; in php_zlib_deflate_filter()
238 consumed += bucket->buflen; in php_zlib_deflate_filter()
/PHP-5.5/ext/mysqlnd/
H A Dmysqlnd_loaddata.c163 unsigned int buflen = 4096; in mysqlnd_handle_local_infile() local
182 buf = (zend_uchar *) mnd_ecalloc(1, buflen); in mysqlnd_handle_local_infile()
200 …while ((bufsize = infile.local_infile_read (info, buf + MYSQLND_HEADER_SIZE, buflen - MYSQLND_HEAD… in mysqlnd_handle_local_infile()
/PHP-5.5/ext/zip/lib/
H A Dzip_open.c169 _zip_readcdir(FILE *fp, off_t buf_offset, unsigned char *buf, unsigned char *eocd, int buflen, in _zip_readcdir() argument
177 comlen = buf + buflen - eocd - EOCDLEN; in _zip_readcdir()
516 int a, best, buflen, i; in _zip_find_central_dir() local
534 buflen = fread(buf, 1, CDBUFSIZE, fp); in _zip_find_central_dir()
547 while ((match=_zip_memmem(match, buflen-(match-buf)-18, in _zip_find_central_dir()
552 if ((cdirnew=_zip_readcdir(fp, buf_offset, buf, match-1, buflen, flags, in _zip_find_central_dir()
/PHP-5.5/ext/pdo_odbc/
H A Dodbc_stmt.c61 unsigned long buflen, unsigned long *outlen) in pdo_odbc_utf82ucs2() argument
64 if (is_unicode && buflen) { in pdo_odbc_utf82ucs2()
68 ret = MultiByteToWideChar(CP_UTF8, 0, buf, buflen, NULL, 0); in pdo_odbc_utf82ucs2()
81 …ret = MultiByteToWideChar(CP_UTF8, 0, buf, buflen, (LPWSTR)S->convbuf, S->convbufsize / sizeof(WCH… in pdo_odbc_utf82ucs2()
96 unsigned long buflen, unsigned long *outlen) in pdo_odbc_ucs22utf8() argument
99 if (is_unicode && buflen) { in pdo_odbc_ucs22utf8()
103 ret = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR)buf, buflen/sizeof(WCHAR), NULL, 0, NULL, NULL); in pdo_odbc_ucs22utf8()
113 …ret = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR)buf, buflen/sizeof(WCHAR), S->convbuf, S->convbufsi… in pdo_odbc_ucs22utf8()
/PHP-5.5/ext/bz2/
H A Dbz2_filter.c95 while (bin < bucket->buflen) { in php_bz2_decompress_filter()
108 consumed += bucket->buflen; in php_bz2_decompress_filter()
112 desired = bucket->buflen - bin; in php_bz2_decompress_filter()
232 while (bin < bucket->buflen) { in php_bz2_compress_filter()
233 desired = bucket->buflen - bin; in php_bz2_compress_filter()
/PHP-5.5/ext/mysqli/tests/
H A D061.phpt24 function my_read($fp, &$buffer, $buflen, &$error) {
25 $buffer = strrev(fread($fp, $buflen));
/PHP-5.5/ext/xmlrpc/libxmlrpc/
H A Dxml_element.c449 int buflen = el->text.len; in xml_element_serialize() local
452 … escaped_str = xml_elem_entity_escape(el->text.str, buflen, &buflen, options->escaping ); in xml_element_serialize()
462 xml_elem_writefunc(fptr, escaped_str, data, buflen); in xml_element_serialize()
/PHP-5.5/ext/snmp/
H A Dsnmp.c557 int buflen = sizeof(sbuf) - 1; in php_snmp_getvalue() local
587 buflen = sizeof(sbuf) - 1; in php_snmp_getvalue()
592 buflen = val_len; in php_snmp_getvalue()
598 buflen = val_len; in php_snmp_getvalue()
628 snprintf(buf, buflen, "%d.%d.%d.%d", in php_snmp_getvalue()
631 buf[buflen]=0; in php_snmp_getvalue()
640 snprintf(buf, buflen, "%lu", *vars->val.integer); in php_snmp_getvalue()
641 buf[buflen]=0; in php_snmp_getvalue()
646 snprintf(buf, buflen, "%ld", *vars->val.integer); in php_snmp_getvalue()
647 buf[buflen]=0; in php_snmp_getvalue()
[all …]
/PHP-5.5/win32/
H A Dregistry.c287 DWORD buflen = MAXPATHLEN; in GetIniPathFromRegistry() local
289 if(RegQueryValueEx(hKey, PHPRC_REGISTRY_NAME, 0, NULL, reg_location, &buflen) != ERROR_SUCCESS) { in GetIniPathFromRegistry()
/PHP-5.5/ext/session/
H A Dmod_files.c74 static char *ps_files_path_create(char *buf, size_t buflen, ps_files *data, const char *key) in ps_files_path_create() argument
83 buflen < (strlen(data->basedir) + 2 * data->dirdepth + key_len + 5 + sizeof(FILE_PREFIX))) { in ps_files_path_create()
/PHP-5.5/ext/mysqli/
H A Dmysqli_api.c420 stmt->result.buf[ofs].buflen = sizeof(float); in mysqli_stmt_bind_result_do_bind()
431 stmt->result.buf[ofs].buflen = sizeof(double); in mysqli_stmt_bind_result_do_bind()
473 stmt->result.buf[ofs].buflen = sizeof(my_ulonglong); in mysqli_stmt_bind_result_do_bind()
474 stmt->result.buf[ofs].val = (char *)emalloc(stmt->result.buf[ofs].buflen); in mysqli_stmt_bind_result_do_bind()
478 bind[ofs].buffer_length = stmt->result.buf[ofs].buflen; in mysqli_stmt_bind_result_do_bind()
521 stmt->result.buf[ofs].buflen = in mysqli_stmt_bind_result_do_bind()
529 if (!(stmt->result.buf[ofs].buflen = stmt->stmt->fields[ofs].max_length)) in mysqli_stmt_bind_result_do_bind()
530 ++stmt->result.buf[ofs].buflen; in mysqli_stmt_bind_result_do_bind()
532 stmt->result.buf[ofs].val = (char *)emalloc(stmt->result.buf[ofs].buflen); in mysqli_stmt_bind_result_do_bind()
536 bind[ofs].buffer_length = stmt->result.buf[ofs].buflen; in mysqli_stmt_bind_result_do_bind()
[all …]

Completed in 158 milliseconds

12