Home
last modified time | relevance | path

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

/PHP-7.1/ext/xmlrpc/libxmlrpc/
H A Dsimplestring.c198 size_t newsize = target->size, incr = 0; in simplestring_addn() local
211 newsize = target->len + add_len + 1; in simplestring_addn()
216 newsize = newsize - (newsize % incr) + incr; in simplestring_addn()
218 if(newsize < (target->len + add_len + 1)) { in simplestring_addn()
222 target->str = (char*)realloc(target->str, newsize); in simplestring_addn()
224 target->size = target->str ? newsize : 0; in simplestring_addn()
/PHP-7.1/main/streams/
H A Dmemory.c250 size_t newsize; in php_stream_memory_set_option() local
262 newsize = *(size_t*)ptrparam; in php_stream_memory_set_option()
263 if (newsize <= ms->fsize) { in php_stream_memory_set_option()
264 if (newsize < ms->fpos) { in php_stream_memory_set_option()
265 ms->fpos = newsize; in php_stream_memory_set_option()
268 ms->data = erealloc(ms->data, newsize); in php_stream_memory_set_option()
269 memset(ms->data+ms->fsize, 0, newsize - ms->fsize); in php_stream_memory_set_option()
270 ms->fsize = newsize; in php_stream_memory_set_option()
272 ms->fsize = newsize; in php_stream_memory_set_option()
H A Dstreams.c1379 PHPAPI int _php_stream_truncate_set_size(php_stream *stream, size_t newsize) in _php_stream_truncate_set_size() argument
1381 …_stream_set_option(stream, PHP_STREAM_OPTION_TRUNCATE_API, PHP_STREAM_TRUNCATE_SET_SIZE, &newsize); in _php_stream_truncate_set_size()
/PHP-7.1/ext/mbstring/oniguruma/
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.1/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.1/ext/pcre/pcrelib/
H A Dpcre_compile.c922 int newsize = cd->workspace_size * 2; in expand_workspace() local
924 if (newsize > COMPILE_WORK_SIZE_MAX) newsize = COMPILE_WORK_SIZE_MAX; in expand_workspace()
926 newsize - cd->workspace_size < WORK_SIZE_SAFETY_MARGIN) in expand_workspace()
929 newspace = (PUBL(malloc))(IN_UCHARS(newsize)); in expand_workspace()
936 cd->workspace_size = newsize; in expand_workspace()
7168 int newsize = cd->named_group_list_size * 2; in compile_branch() local
7170 (newsize * sizeof(named_group)); in compile_branch()
7183 cd->named_group_list_size = newsize; in compile_branch()
/PHP-7.1/main/
H A Dphp_streams.h427 PHPAPI int _php_stream_truncate_set_size(php_stream *stream, size_t newsize);

Completed in 52 milliseconds