Home
last modified time | relevance | path

Searched refs:newbuf (Results 1 – 25 of 43) sorted by relevance

12

/external/emma/core/java12/com/vladium/util/
DByteArrayOStream.java58 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)]; in write2()
61 for (int i = 0; i < pos; ++ i) newbuf [i] = mbuf [i]; in write2()
63 System.arraycopy (mbuf, 0, newbuf, 0, pos); in write2()
65 m_buf = mbuf = newbuf; in write2()
82 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)]; in write3()
85 for (int i = 0; i < pos; ++ i) newbuf [i] = mbuf [i]; in write3()
87 System.arraycopy (mbuf, 0, newbuf, 0, pos); in write3()
89 m_buf = mbuf = newbuf; in write3()
107 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)]; in write4()
110 for (int i = 0; i < pos; ++ i) newbuf [i] = mbuf [i]; in write4()
[all …]
/external/mesa3d/src/glx/apple/
Dapple_xgl_api_stereo.c93 GLenum newbuf[n + 2]; in __applegl_glDrawBuffers() local
106 newbuf[outi++] = bufs[i]; in __applegl_glDrawBuffers()
111 newbuf[outi++] = GL_BACK_LEFT; in __applegl_glDrawBuffers()
112 newbuf[outi++] = GL_BACK_RIGHT; in __applegl_glDrawBuffers()
116 newbuf[outi++] = GL_FRONT_LEFT; in __applegl_glDrawBuffers()
117 newbuf[outi++] = GL_FRONT_RIGHT; in __applegl_glDrawBuffers()
120 __ogl_framework_api->DrawBuffers(outi, newbuf); in __applegl_glDrawBuffers()
/external/libedit/src/
Dhist.c197 Char *newbuf; in hist_enlargebuf() local
199 newbuf = el_realloc(el->el_history.buf, newsz * sizeof(*newbuf)); in hist_enlargebuf()
200 if (!newbuf) in hist_enlargebuf()
203 (void) memset(&newbuf[oldsz], '\0', (newsz - oldsz) * sizeof(*newbuf)); in hist_enlargebuf()
205 el->el_history.last = newbuf + in hist_enlargebuf()
207 el->el_history.buf = newbuf; in hist_enlargebuf()
/external/dhcpcd-6.8.2/compat/
Dgetline.c45 char *newbuf, *p; in getline() local
60 newbuf = realloc(*buf, newlen); in getline()
61 if (newbuf == NULL) in getline()
63 *buf = newbuf; in getline()
/external/selinux/libselinux/src/
Dgetpeercon.c28 char *newbuf; in getpeercon_raw() local
30 newbuf = realloc(buf, size); in getpeercon_raw()
31 if (!newbuf) in getpeercon_raw()
34 buf = newbuf; in getpeercon_raw()
Dfgetfilecon.c24 char *newbuf; in fgetfilecon_raw() local
31 newbuf = realloc(buf, size); in fgetfilecon_raw()
32 if (!newbuf) in fgetfilecon_raw()
35 buf = newbuf; in fgetfilecon_raw()
Dlgetfilecon.c24 char *newbuf; in lgetfilecon_raw() local
31 newbuf = realloc(buf, size); in lgetfilecon_raw()
32 if (!newbuf) in lgetfilecon_raw()
35 buf = newbuf; in lgetfilecon_raw()
Dgetfilecon.c24 char *newbuf; in getfilecon_raw() local
31 newbuf = realloc(buf, size); in getfilecon_raw()
32 if (!newbuf) in getfilecon_raw()
35 buf = newbuf; in getfilecon_raw()
Dseusers.c19 char *newbuf = strdup(buffer); in process_seusers() local
24 if (!newbuf) in process_seusers()
27 start = newbuf; in process_seusers()
31 free(newbuf); in process_seusers()
78 free(newbuf); in process_seusers()
84 free(newbuf); in process_seusers()
/external/syslinux/com32/lib/
Dbufprintf.c17 char *newbuf; in vbufprintf() local
19 newbuf = realloc(buf->buf, newsize); in vbufprintf()
20 if (!newbuf) { in vbufprintf()
25 buf->buf = newbuf; in vbufprintf()
/external/volley/src/main/java/com/android/volley/toolbox/
DPoolingByteArrayOutputStream.java76 byte[] newbuf = mPool.getBuf((count + i) * 2); in expand()
77 System.arraycopy(buf, 0, newbuf, 0, count); in expand()
79 buf = newbuf; in expand()
/external/ltp/testcases/kernel/syscalls/dup2/
Ddup204.c68 struct stat oldbuf, newbuf; in main() local
88 SAFE_FSTAT(cleanup, nfd[i], &newbuf); in main()
90 if (oldbuf.st_ino != newbuf.st_ino) in main()
Ddup202.c91 struct stat oldbuf, newbuf; in main() local
120 SAFE_FSTAT(cleanup, *TC[i].nfd, &newbuf); in main()
122 if (oldbuf.st_mode != newbuf.st_mode) in main()
/external/curl/src/
Dtool_paramhlp.c92 char *newbuf; in file2memory() local
108 newbuf = realloc(buffer, alloc + 1); in file2memory()
109 if(!newbuf) { in file2memory()
113 buffer = newbuf; in file2memory()
122 newbuf = realloc(buffer, nused + 1); in file2memory()
123 if(!newbuf) { in file2memory()
127 buffer = newbuf; in file2memory()
/external/curl/tests/server/
Dfake_ntlm.c51 char *newbuf; in printable() local
86 newbuf = realloc(outbuf, newsize); in printable()
87 if(!newbuf) { in printable()
91 outbuf = newbuf; in printable()
/external/mdnsresponder/mDNSShared/
Ddnssd_clientlib.c220 unsigned char *newbuf; in TXTRecordSetValue() local
223 newbuf = malloc((size_t)newlen); in TXTRecordSetValue()
224 if (!newbuf) return(kDNSServiceErr_NoMemory); in TXTRecordSetValue()
225 memcpy(newbuf, txtRec->buffer, txtRec->datalen); in TXTRecordSetValue()
227 txtRec->buffer = newbuf; in TXTRecordSetValue()
/external/javassist/src/main/javassist/tools/web/
DViewer.java196 byte[] newbuf = new byte[buf.length * 2]; in readStream()
197 System.arraycopy(buf, 0, newbuf, 0, size); in readStream()
198 buf = newbuf; in readStream()
/external/ipsec-tools/src/libipsec/
Dipsec_dump_policy.c102 char *newbuf; local
257 newbuf = (char *)realloc(buf, buflen);
258 if (newbuf == NULL) {
263 buf = newbuf;
/external/selinux/sandbox/
Dseunshare.c317 char *newbuf = NULL; in rsynccmd() local
343 if (asprintf(&newbuf, "\'%s\'", path) == -1) { in rsynccmd()
348 if (asprintf(&newbuf, "%s \'%s\'", buf, path) == -1) { in rsynccmd()
354 free(buf); buf = newbuf; in rsynccmd()
355 newbuf = NULL; in rsynccmd()
359 if (asprintf(&newbuf, "/usr/bin/rsync -trlHDq %s '%s'", buf, dst) == -1) { in rsynccmd()
363 *cmdbuf=newbuf; in rsynccmd()
/external/curl/lib/
Dcurl_ntlm_wb.c276 char *newbuf; in ntlm_wb_response() local
292 newbuf = Curl_saferealloc(buf, len_out + NTLM_BUFSIZE); in ntlm_wb_response()
293 if(!newbuf) in ntlm_wb_response()
296 buf = newbuf; in ntlm_wb_response()
/external/e2fsprogs/util/
Dsubst.c285 char oldbuf[2048], newbuf[2048], *oldcp, *newcp; in compare_file() local
290 newcp = fgets(newbuf, sizeof(newbuf), new_f); in compare_file()
295 if (!oldcp || !newcp || strcmp(oldbuf, newbuf)) { in compare_file()
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
DRecyclableBufferedInputStream.java154 byte[] newbuf = new byte[newLength]; in fillbuf()
155 System.arraycopy(localBuf, 0, newbuf, 0, localBuf.length); in fillbuf()
158 localBuf = buf = newbuf; in fillbuf()
/external/libxml2/
Dbuf.c439 xmlChar *newbuf; in xmlBufGrowInternal() local
478 newbuf = (xmlChar *) xmlRealloc(buf->contentIO, start_buf + size); in xmlBufGrowInternal()
479 if (newbuf == NULL) { in xmlBufGrowInternal()
483 buf->contentIO = newbuf; in xmlBufGrowInternal()
484 buf->content = newbuf + start_buf; in xmlBufGrowInternal()
486 newbuf = (xmlChar *) xmlRealloc(buf->content, size); in xmlBufGrowInternal()
487 if (newbuf == NULL) { in xmlBufGrowInternal()
491 buf->content = newbuf; in xmlBufGrowInternal()
/external/elfutils/libdwfl/
Delf-from-memory.c177 unsigned char *newbuf = realloc (buffer, phnum * phentsize); in elf_from_remote_memory() local
178 if (newbuf == NULL) in elf_from_remote_memory()
184 buffer = newbuf; in elf_from_remote_memory()
/external/boringssl/src/crypto/bytestring/
Dcbb.c108 uint8_t *newbuf; in cbb_buffer_reserve() local
117 newbuf = OPENSSL_realloc(base->buf, newcap); in cbb_buffer_reserve()
118 if (newbuf == NULL) { in cbb_buffer_reserve()
122 base->buf = newbuf; in cbb_buffer_reserve()

12