Home
last modified time | relevance | path

Searched refs:newsize (Results 1 – 7 of 7) sorted by relevance

/PHP-7.2/ext/xmlrpc/libxmlrpc/
H A Dsimplestring.c199 size_t newsize = target->size, incr = 0; in simplestring_addn() local
212 newsize = target->len + add_len + 1; in simplestring_addn()
217 newsize = newsize - (newsize % incr) + incr; in simplestring_addn()
219 if(newsize < (target->len + add_len + 1)) { in simplestring_addn()
223 target->str = (char*)erealloc(target->str, newsize); in simplestring_addn()
225 target->size = target->str ? newsize : 0; in simplestring_addn()
/PHP-7.2/main/streams/
H A Dmemory.c238 size_t newsize; in php_stream_memory_set_option() local
250 newsize = *(size_t*)ptrparam; in php_stream_memory_set_option()
251 if (newsize <= ms->fsize) { in php_stream_memory_set_option()
252 if (newsize < ms->fpos) { in php_stream_memory_set_option()
253 ms->fpos = newsize; in php_stream_memory_set_option()
256 ms->data = erealloc(ms->data, newsize); in php_stream_memory_set_option()
257 memset(ms->data+ms->fsize, 0, newsize - ms->fsize); in php_stream_memory_set_option()
258 ms->fsize = newsize; in php_stream_memory_set_option()
260 ms->fsize = newsize; in php_stream_memory_set_option()
H A Dstreams.c1353 PHPAPI int _php_stream_truncate_set_size(php_stream *stream, size_t newsize) in _php_stream_truncate_set_size() argument
1355 …_stream_set_option(stream, PHP_STREAM_OPTION_TRUNCATE_API, PHP_STREAM_TRUNCATE_SET_SIZE, &newsize); in _php_stream_truncate_set_size()
/PHP-7.2/ext/mbstring/oniguruma/src/
H A Dst.c115 int newsize; local
117 for (i = 0, newsize = MINSIZE;
119 i++, newsize <<= 1)
121 if (newsize > size) return primes[i];
/PHP-7.2/win32/
H A Dglob.c716 u_int newsize, len; local
720 newsize = sizeof(*pathv) * (2 + pglob->gl_pathc + pglob->gl_offs);
721 pathv = pglob->gl_pathv ? realloc((char *)pglob->gl_pathv, newsize) :
722 malloc(newsize);
753 newsize + *limitp >= ARG_MAX) {
/PHP-7.2/ext/pcre/pcrelib/
H A Dpcre_compile.c925 int newsize = cd->workspace_size * 2; in expand_workspace() local
927 if (newsize > COMPILE_WORK_SIZE_MAX) newsize = COMPILE_WORK_SIZE_MAX; in expand_workspace()
929 newsize - cd->workspace_size < WORK_SIZE_SAFETY_MARGIN) in expand_workspace()
932 newspace = (PUBL(malloc))(IN_UCHARS(newsize)); in expand_workspace()
939 cd->workspace_size = newsize; in expand_workspace()
7251 int newsize = cd->named_group_list_size * 2; in compile_branch() local
7253 (newsize * sizeof(named_group)); in compile_branch()
7266 cd->named_group_list_size = newsize; in compile_branch()
/PHP-7.2/main/
H A Dphp_streams.h431 PHPAPI int _php_stream_truncate_set_size(php_stream *stream, size_t newsize);

Completed in 44 milliseconds