/bionic/libc/upstream-netbsd/libc/stdio/ |
getdelim.c | 61 size_t len, newlen, off; local 93 newlen = off + len; 95 if (newlen < off || newlen > SSIZE_MAX) { 99 newlen++; /* reserve space for the NULL terminator */ 100 if (newlen > *buflen) { 101 if (newlen < MINBUF) 102 newlen = MINBUF; 103 if (!powerof2(newlen)) { 105 newlen-- [all...] |
/external/apache-http/src/org/apache/http/util/ |
ByteArrayBuffer.java | 56 private void expand(int newlen) { 57 byte newbuffer[] = new byte[Math.max(this.buffer.length << 1, newlen)]; 73 int newlen = this.len + len; local 74 if (newlen > this.buffer.length) { 75 expand(newlen); 78 this.len = newlen; 82 int newlen = this.len + 1; local 83 if (newlen > this.buffer.length) { 84 expand(newlen); 87 this.len = newlen; 102 int newlen = oldlen + len; local [all...] |
CharArrayBuffer.java | 58 private void expand(int newlen) { 59 char newbuffer[] = new char[Math.max(this.buffer.length << 1, newlen)]; 75 int newlen = this.len + len; local 76 if (newlen > this.buffer.length) { 77 expand(newlen); 80 this.len = newlen; 88 int newlen = this.len + strlen; local 89 if (newlen > this.buffer.length) { 90 expand(newlen); 93 this.len = newlen; 111 int newlen = this.len + 1; local 131 int newlen = oldlen + len; local [all...] |
/external/openssh/ |
auth2-passwd.c | 55 u_int len, newlen; local 61 newpass = packet_get_string(&newlen); 62 memset(newpass, 0, newlen);
|
buffer.c | 105 u_int newlen; local 129 newlen = roundup(buffer->alloc + len, BUFFER_ALLOCSZ); 130 if (newlen > BUFFER_MAX_LEN) 132 newlen); 133 buffer->buf = xrealloc(buffer->buf, 1, newlen); 134 buffer->alloc = newlen;
|
/external/dhcpcd/compat/ |
getline.c | 44 size_t bytes, newlen; local 59 newlen = *buflen + BUFSIZ; 60 newbuf = realloc(*buf, newlen); 64 *buflen = newlen;
|
/external/chromium_org/third_party/openssl/openssl/crypto/asn1/ |
a_time.c | 142 int newlen; local 166 newlen = t->length + 2 + 1; 169 if (t->data[0] >= '5') BUF_strlcpy(str, "19", newlen); 170 else BUF_strlcpy(str, "20", newlen); 172 BUF_strlcat(str, (char *)t->data, newlen); local
|
/external/openssl/crypto/asn1/ |
a_time.c | 142 int newlen; local 166 newlen = t->length + 2 + 1; 169 if (t->data[0] >= '5') BUF_strlcpy(str, "19", newlen); 170 else BUF_strlcpy(str, "20", newlen); 172 BUF_strlcat(str, (char *)t->data, newlen); local
|
/system/core/sh/ |
memalloc.c | 206 int newlen = SHELL_ALIGN(stacknleft * 2 + 100); local 218 sizeof(struct stack_block) - MINSIZE + newlen); 222 stacknleft = newlen; 239 char *p = stalloc(newlen); 243 stacknleft += newlen; /* we just allocated */
|
/external/libsepol/include/sepol/ |
users.h | 13 policy for the new user configurations. Sets '*newdata' and '*newlen' 17 void **newdata, size_t * newlen);
|
policydb.h | 125 void **newdata, size_t * newlen);
|
/system/core/toolbox/grep/ |
file.c | 127 grep_lnbufgrow(size_t newlen) 130 if (lnbuflen < newlen) { 131 lnbuf = grep_realloc(lnbuf, newlen); 132 lnbuflen = newlen;
|
/external/libsepol/src/ |
policydb_convert.c | 35 policydb_t * policydb, void **newdata, size_t * newlen) 88 /* Update (newdata, newlen) */ 90 *newlen = tmp_len;
|
policydb_public.c | 173 size_t * newlen) 175 return policydb_to_image(handle, &p->p, newdata, newlen);
|
/external/openssh/openbsd-compat/ |
port-linux.c | 182 int len, newlen; local 207 newlen = strlen(oldctx) + strlen(newname) + 1; 208 newctx = xmalloc(newlen); 211 strlcpy(newctx + len, newname, newlen - len); 213 strlcat(newctx, cx, newlen);
|
/system/core/toolbox/ |
mount.c | 68 int newlen; local 72 newlen = extra->used_size + len; 74 if (newlen >= extra->alloc_size) { 77 new = realloc(extra->str, newlen + 1); /* +1 for NUL */ 83 extra->alloc_size = newlen + 1;
|
/external/elfutils/libcpu/ |
i386_parse.c | [all...] |
i386_parse.y | [all...] |
/ndk/sources/host-tools/sed-4.2.1/sed/ |
utils.c | 550 static void resize_buffer P_((struct buffer *b, size_t newlen)); 552 resize_buffer(b, newlen) 554 size_t newlen; 559 if (newlen <= alen) 562 if (newlen < alen) 566 alen = newlen;
|
/bionic/libc/netbsd/nameser/ |
ns_print.c | 838 size_t newlen, save_buflen = *buflen; local 845 newlen = prune_origin(*buf, origin); 848 } else if (newlen == 0U) { 850 if (newlen + 2 > *buflen) 852 (*buf)[newlen++] = '@'; 853 (*buf)[newlen] = '\0'; 857 (*buf)[newlen] == '\0')) && (*buf)[newlen - 1] != '.') { 860 if (newlen + 2 > *buflen) 862 (*buf)[newlen++] = '.' [all...] |
/external/mdnsresponder/mDNSShared/ |
dnssd_clientlib.c | 221 unsigned long newlen = txtRec->datalen + keyvalsize; local 222 if (newlen > 0xFFFF) return(kDNSServiceErr_Invalid); 223 newbuf = malloc((size_t)newlen); 228 txtRec->buflen = (uint16_t)(newlen);
|
/ndk/sources/host-tools/make-3.81/ |
expand.c | 60 register unsigned int newlen = length + (ptr - variable_buffer); local 62 if ((newlen + VARIABLE_BUFFER_ZONE) > variable_buffer_length) 65 variable_buffer_length = (newlen + 100 > 2 * variable_buffer_length 66 ? newlen + 100
|
/external/apache-xml/src/main/java/org/apache/xml/utils/ |
SuballocatedIntVector.java | 233 int newlen=m_firstFree+numberOfElements; local 234 if(newlen>m_blocksize) 241 m_firstFree=newlen;
|
/external/chromium_org/third_party/icu/source/io/ |
ustdio.c | 126 int32_t newlen; local 154 newlen = (*count + f->fTranslit->length) * 4; 156 if(newlen > f->fTranslit->capacity) 160 f->fTranslit->buffer = (UChar*)uprv_malloc(newlen * sizeof(UChar)); 164 f->fTranslit->buffer = (UChar*)uprv_realloc(f->fTranslit->buffer, newlen * sizeof(UChar)); 170 f->fTranslit->capacity = newlen;
|
/external/icu4c/io/ |
ustdio.c | 126 int32_t newlen; local 154 newlen = (*count + f->fTranslit->length) * 4; 156 if(newlen > f->fTranslit->capacity) 160 f->fTranslit->buffer = (UChar*)uprv_malloc(newlen * sizeof(UChar)); 164 f->fTranslit->buffer = (UChar*)uprv_realloc(f->fTranslit->buffer, newlen * sizeof(UChar)); 170 f->fTranslit->capacity = newlen;
|