Home
last modified time | relevance | path

Searched refs:newlen (Results 1 – 25 of 68) sorted by relevance

123

/third_party/selinux/libsepol/cil/src/
Dcil_fqn.c50 int newlen; in __cil_fqn_qualify_decls() local
58 newlen = fqn_args->len + strlen(datum->name); in __cil_fqn_qualify_decls()
59 if (newlen >= CIL_MAX_NAME_LENGTH) { in __cil_fqn_qualify_decls()
81 int newlen; in __cil_fqn_qualify_blocks() local
87 newlen = fqn_args->len + strlen(datum->name) + 1; in __cil_fqn_qualify_blocks()
88 if (newlen >= CIL_MAX_NAME_LENGTH) { in __cil_fqn_qualify_blocks()
95 child_args.len = newlen; in __cil_fqn_qualify_blocks()
/third_party/openssl/crypto/rand/
Drand_pool.c210 size_t newlen = pool->alloc_len; in rand_pool_grow() local
218 newlen = newlen < limit ? newlen * 2 : pool->max_len; in rand_pool_grow()
219 while (len > newlen - pool->len); in rand_pool_grow()
222 p = OPENSSL_secure_zalloc(newlen); in rand_pool_grow()
224 p = OPENSSL_zalloc(newlen); in rand_pool_grow()
235 pool->alloc_len = newlen; in rand_pool_grow()
/third_party/node/deps/openssl/openssl/crypto/rand/
Drand_pool.c210 size_t newlen = pool->alloc_len; in rand_pool_grow() local
218 newlen = newlen < limit ? newlen * 2 : pool->max_len; in rand_pool_grow()
219 while (len > newlen - pool->len); in rand_pool_grow()
222 p = OPENSSL_secure_zalloc(newlen); in rand_pool_grow()
224 p = OPENSSL_zalloc(newlen); in rand_pool_grow()
235 pool->alloc_len = newlen; in rand_pool_grow()
/third_party/libsnd/src/
Dstrings.c130 size_t newlen = 2 * psf->strings.storage_len + str_len + 1 ; in psf_store_string() local
132 newlen = newlen < 256 ? 256 : newlen ; in psf_store_string()
134 if ((psf->strings.storage = realloc (temp, newlen)) == NULL) in psf_store_string()
139 psf->strings.storage_len = newlen ; in psf_store_string()
/third_party/elfutils/libcpu/
Di386_parse.y1526 size_t newlen[nstrsnlen];
1530 newlen[i] = strsnlen[i].len - 1;
1532 newlen[i] = strsnlen[i].len;
1541 size_t table = newlen[0] + 1;
1546 if (newlen[i] > newlen[j]
1548 strsnlen[i].str + (newlen[i] - newlen[j]),
1549 newlen[j]) == 0)
1551 table += newlen[i] - newlen[j];
1553 newlen[j] = newlen[i];
1556 else if (newlen[i] < newlen[j]
[all …]
/third_party/pulseaudio/src/pulsecore/
Dusergroup.c99 size_t newlen; in expand_buffer_trashcontents() local
106 newlen = *buflenptr * 2; in expand_buffer_trashcontents()
108 if (newlen < *buflenptr) { in expand_buffer_trashcontents()
116 *bufptr = pa_xmalloc(newlen); in expand_buffer_trashcontents()
117 *buflenptr = newlen; in expand_buffer_trashcontents()
/third_party/toybox/toys/posix/
Dsed.c229 static char *extend_string(char **old, char *new, int oldlen, int newlen) in extend_string() argument
231 int newline = newlen < 0; in extend_string()
234 if (newline) newlen = -newlen; in extend_string()
235 s = *old = xrealloc(*old, oldlen+newlen+newline+1); in extend_string()
237 memcpy(s+oldlen, new, newlen); in extend_string()
238 s[oldlen+newlen] = 0; in extend_string()
240 return s+oldlen+newlen+1; in extend_string()
481 mlen, off, newlen; in sed_line() local
510 for (off = newlen = 0; new[off]; off++) { in sed_line()
516 newlen++; in sed_line()
[all …]
Dpatch.c55 long oldline, oldlen, newline, newlen;
323 if (*patchline != '-') TT.newlen--; in patch_main()
330 if (!TT.oldlen && !TT.newlen) state = apply_one_hunk(); in patch_main()
374 TT.oldlen = TT.newlen = 1; in patch_main()
378 if (*s == ',') TT.newlen = strtol(s+1, &s, 10); in patch_main()
389 newsum = TT.newline + TT.newlen; in patch_main()
/third_party/node/deps/openssl/openssl/crypto/conf/
Dconf_def.c474 size_t newlen = strlen(include_dir) + strlen(include) + 2; in def_load_bio() local
476 include_path = OPENSSL_malloc(newlen); in def_load_bio()
483 OPENSSL_strlcpy(include_path, include_dir, newlen); in def_load_bio()
485 OPENSSL_strlcat(include_path, "/", newlen); in def_load_bio()
486 OPENSSL_strlcat(include_path, include, newlen); in def_load_bio()
863 size_t newlen; in get_next_file() local
867 newlen = pathlen + namelen + 2; in get_next_file()
868 newpath = OPENSSL_zalloc(newlen); in get_next_file()
882 OPENSSL_strlcpy(newpath, path, newlen); in get_next_file()
886 OPENSSL_strlcpy(newpath, path, newlen); in get_next_file()
[all …]
/third_party/openssl/crypto/conf/
Dconf_def.c474 size_t newlen = strlen(include_dir) + strlen(include) + 2; in def_load_bio() local
476 include_path = OPENSSL_malloc(newlen); in def_load_bio()
483 OPENSSL_strlcpy(include_path, include_dir, newlen); in def_load_bio()
485 OPENSSL_strlcat(include_path, "/", newlen); in def_load_bio()
486 OPENSSL_strlcat(include_path, include, newlen); in def_load_bio()
863 size_t newlen; in get_next_file() local
867 newlen = pathlen + namelen + 2; in get_next_file()
868 newpath = OPENSSL_zalloc(newlen); in get_next_file()
882 OPENSSL_strlcpy(newpath, path, newlen); in get_next_file()
886 OPENSSL_strlcpy(newpath, path, newlen); in get_next_file()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/math/
DBigDecimal.java991 int newlen = 0; in add() local
1045 newlen = (usellen + lhs.exp) - rhs.exp; in add()
1050 if (newlen >= ((userlen + reqdig) + 1)) in add()
1064 if (newlen > (reqdig + 1)) in add()
1067 tlen = (newlen - reqdig) - 1; // truncation length in add()
1070 newlen = reqdig + 1; in add()
1072 if (newlen > usellen) in add()
1073 usellen = newlen; // need to pad LHS in add()
1075 newlen = (userlen + rhs.exp) - lhs.exp; in add()
1076 if (newlen >= ((usellen + reqdig) + 1)) in add()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/math/
DBigDecimal.java1015 int newlen = 0; in add() local
1069 newlen = (usellen + lhs.exp) - rhs.exp; in add()
1074 if (newlen >= ((userlen + reqdig) + 1)) in add()
1088 if (newlen > (reqdig + 1)) in add()
1091 tlen = (newlen - reqdig) - 1; // truncation length in add()
1094 newlen = reqdig + 1; in add()
1096 if (newlen > usellen) in add()
1097 usellen = newlen; // need to pad LHS in add()
1099 newlen = (userlen + rhs.exp) - lhs.exp; in add()
1100 if (newlen >= ((usellen + reqdig) + 1)) in add()
[all …]
/third_party/openssl/crypto/
Dpacket.c53 size_t newlen; in WPACKET_reserve_bytes() local
59 newlen = SIZE_MAX; in WPACKET_reserve_bytes()
61 newlen = reflen * 2; in WPACKET_reserve_bytes()
62 if (newlen < DEFAULT_BUF_SIZE) in WPACKET_reserve_bytes()
63 newlen = DEFAULT_BUF_SIZE; in WPACKET_reserve_bytes()
65 if (BUF_MEM_grow(pkt->buf, newlen) == 0) in WPACKET_reserve_bytes()
/third_party/node/deps/openssl/openssl/crypto/
Dpacket.c53 size_t newlen; in WPACKET_reserve_bytes() local
59 newlen = SIZE_MAX; in WPACKET_reserve_bytes()
61 newlen = reflen * 2; in WPACKET_reserve_bytes()
62 if (newlen < DEFAULT_BUF_SIZE) in WPACKET_reserve_bytes()
63 newlen = DEFAULT_BUF_SIZE; in WPACKET_reserve_bytes()
65 if (BUF_MEM_grow(pkt->buf, newlen) == 0) in WPACKET_reserve_bytes()
/third_party/musl/porting/liteos_a/user/src/malloc/oldmalloc/
Dmalloc.c371 size_t newlen = n + extra; in realloc() local
374 if (newlen < PAGE_SIZE && (new = malloc(n-OVERHEAD))) { in realloc()
378 newlen = (newlen + PAGE_SIZE-1) & -PAGE_SIZE; in realloc()
379 if (oldlen == newlen) return p; in realloc()
380 base = __mremap(base, oldlen, newlen, MREMAP_MAYMOVE); in realloc()
384 self->csize = newlen - extra; in realloc()
/third_party/musl/src/malloc/oldmalloc/
Dmalloc.c371 size_t newlen = n + extra; in realloc() local
374 if (newlen < PAGE_SIZE && (new = malloc(n-OVERHEAD))) { in realloc()
378 newlen = (newlen + PAGE_SIZE-1) & -PAGE_SIZE; in realloc()
379 if (oldlen == newlen) return p; in realloc()
380 base = __mremap(base, oldlen, newlen, MREMAP_MAYMOVE); in realloc()
384 self->csize = newlen - extra; in realloc()
/third_party/musl/porting/liteos_a/user_debug/src/malloc/oldmalloc/
Dmalloc.c399 size_t newlen = n + extra; in realloc() local
409 if (newlen < PAGE_SIZE && (new = malloc(n-OVERHEAD))) { in realloc()
413 newlen = (newlen + PAGE_SIZE-1) & -PAGE_SIZE; in realloc()
414 if (oldlen == newlen) return p; in realloc()
418 base = __mremap(base, oldlen, newlen, MREMAP_MAYMOVE); in realloc()
422 self->csize = newlen - extra; in realloc()
/third_party/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_lowering.c1431 int newlen, numtmp; in tgsi_transform_lowering() local
1491 newlen = tgsi_num_tokens(tokens); in tgsi_transform_lowering()
1493 newlen += DST_GROW * OPCS(DST); in tgsi_transform_lowering()
1497 newlen += LRP_GROW * OPCS(LRP); in tgsi_transform_lowering()
1501 newlen += FRC_GROW * OPCS(FRC); in tgsi_transform_lowering()
1505 newlen += POW_GROW * OPCS(POW); in tgsi_transform_lowering()
1509 newlen += LIT_GROW * OPCS(LIT); in tgsi_transform_lowering()
1513 newlen += EXP_GROW * OPCS(EXP); in tgsi_transform_lowering()
1517 newlen += LOG_GROW * OPCS(LOG); in tgsi_transform_lowering()
1521 newlen += DP4_GROW * OPCS(DP4); in tgsi_transform_lowering()
[all …]
/third_party/selinux/libsepol/src/
Dpolicydb_convert.c35 policydb_t * policydb, void **newdata, size_t * newlen) in policydb_to_image() argument
90 *newlen = tmp_len; in policydb_to_image()
Dpolicydb_public.c194 size_t * newlen) in sepol_policydb_to_image() argument
196 return policydb_to_image(handle, &p->p, newdata, newlen); in sepol_policydb_to_image()
/third_party/skia/third_party/externals/icu/source/io/
Dustdio.cpp131 int32_t newlen; in u_file_translit() local
159 newlen = (*count + f->fTranslit->length) * 4; in u_file_translit()
161 if(newlen > f->fTranslit->capacity) in u_file_translit()
165 f->fTranslit->buffer = (UChar*)uprv_malloc(newlen * sizeof(UChar)); in u_file_translit()
169 … f->fTranslit->buffer = (UChar*)uprv_realloc(f->fTranslit->buffer, newlen * sizeof(UChar)); in u_file_translit()
175 f->fTranslit->capacity = newlen; in u_file_translit()
/third_party/icu/icu4c/source/io/
Dustdio.cpp131 int32_t newlen; in u_file_translit() local
159 newlen = (*count + f->fTranslit->length) * 4; in u_file_translit()
161 if(newlen > f->fTranslit->capacity) in u_file_translit()
165 f->fTranslit->buffer = (UChar*)uprv_malloc(newlen * sizeof(UChar)); in u_file_translit()
169 … f->fTranslit->buffer = (UChar*)uprv_realloc(f->fTranslit->buffer, newlen * sizeof(UChar)); in u_file_translit()
175 f->fTranslit->capacity = newlen; in u_file_translit()
/third_party/python/PC/
Dlauncher.c1668 wcsdup_pad(const wchar_t *s, int padding, int *newlen) in wcsdup_pad() argument
1680 *newlen = len < MAXINT ? (int)len : MAXINT; in wcsdup_pad()
1731 int newlen; in process() local
1735 int newlen; in process() local
1806 venv_cfg_path = wcsdup_pad(argv0, 32, &newlen); in process()
1816 wcscat_s(venv_cfg_path, newlen, L"\\pyvenv.cfg"); in process()
1824 wcscat_s(venv_cfg_path, newlen, L"\\pyvenv.cfg"); in process()
1885 newlen = wcslen(wrapped_script_path) + wcslen(command) + 2; /* ' ' + NUL */ in process()
1886 newcommand = malloc(sizeof(wchar_t) * newlen); in process()
1891 wcscpy_s(newcommand, newlen, wrapped_script_path); in process()
[all …]
/third_party/curl/src/
Dtool_cb_wrt.c93 size_t newlen = len + 13; /* nul + 1-11 digits + dot */ in tool_create_output_file() local
96 if(newlen < len) { in tool_create_output_file()
101 newname = malloc(newlen); in tool_create_output_file()
/third_party/ltp/testcases/kernel/syscalls/sysctl/
Dsysctl03.c52 .newlen = sizeof(osname), in verify_sysctl()

123