Home
last modified time | relevance | path

Searched refs:newbuf (Results 1 – 25 of 39) 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.c92 GLenum newbuf[n + 2]; in __applegl_glDrawBuffersARB() local
105 newbuf[outi++] = bufs[i]; in __applegl_glDrawBuffersARB()
110 newbuf[outi++] = GL_BACK_LEFT; in __applegl_glDrawBuffersARB()
111 newbuf[outi++] = GL_BACK_RIGHT; in __applegl_glDrawBuffersARB()
115 newbuf[outi++] = GL_FRONT_LEFT; in __applegl_glDrawBuffersARB()
116 newbuf[outi++] = GL_FRONT_RIGHT; in __applegl_glDrawBuffersARB()
119 __ogl_framework_api->DrawBuffersARB(outi, newbuf); in __applegl_glDrawBuffersARB()
/external/strace/
Dfile.c405 convertoldstat(const struct __old_kernel_stat *oldbuf, struct stat *newbuf) in convertoldstat() argument
407 memset(newbuf, 0, sizeof(*newbuf)); in convertoldstat()
408 newbuf->st_dev = oldbuf->st_dev; in convertoldstat()
409 newbuf->st_ino = oldbuf->st_ino; in convertoldstat()
410 newbuf->st_mode = oldbuf->st_mode; in convertoldstat()
411 newbuf->st_nlink = oldbuf->st_nlink; in convertoldstat()
412 newbuf->st_uid = oldbuf->st_uid; in convertoldstat()
413 newbuf->st_gid = oldbuf->st_gid; in convertoldstat()
414 newbuf->st_rdev = oldbuf->st_rdev; in convertoldstat()
415 newbuf->st_size = oldbuf->st_size; in convertoldstat()
[all …]
/external/c-ares/
Dares__read_line.c35 char *newbuf; in ares__read_line() local
64 newbuf = realloc(*buf, *bufsize * 2); in ares__read_line()
65 if (!newbuf) in ares__read_line()
67 *buf = newbuf; in ares__read_line()
/external/libselinux/src/
Dgetpeercon.c28 char *newbuf; in getpeercon() local
30 newbuf = realloc(buf, size); in getpeercon()
31 if (!newbuf) in getpeercon()
34 buf = newbuf; in getpeercon()
Dgetfilecon.c24 char *newbuf; in getfilecon() local
31 newbuf = realloc(buf, size); in getfilecon()
32 if (!newbuf) in getfilecon()
35 buf = newbuf; in getfilecon()
Dlgetfilecon.c24 char *newbuf; in lgetfilecon() local
31 newbuf = realloc(buf, size); in lgetfilecon()
32 if (!newbuf) in lgetfilecon()
35 buf = newbuf; in lgetfilecon()
Dfgetfilecon.c24 char *newbuf; in fgetfilecon() local
31 newbuf = realloc(buf, size); in fgetfilecon()
32 if (!newbuf) in fgetfilecon()
35 buf = newbuf; in fgetfilecon()
/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/curl/tests/server/
Dfake_ntlm.c53 char *newbuf; in printable() local
87 newbuf = realloc(outbuf, newsize); in printable()
88 if(!newbuf) { in printable()
92 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/curl/src/
Dtool_paramhlp.c89 char *newbuf; in file2memory() local
105 if((newbuf = realloc(buffer, alloc+1)) == NULL) { in file2memory()
109 buffer = newbuf; in file2memory()
118 if((newbuf = realloc(buffer, nused+1)) == NULL) { in file2memory()
122 buffer = newbuf; in file2memory()
/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/policycoreutils/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/e2fsprogs/util/
Dsubst.c270 char oldbuf[2048], newbuf[2048], *oldcp, *newcp; in compare_file() local
284 newcp = fgets(newbuf, sizeof(newbuf), new_f); in compare_file()
289 if (!oldcp || !newcp || strcmp(oldbuf, newbuf)) { in compare_file()
/external/curl/lib/
Dcurl_ntlm_wb.c281 char *newbuf; in ntlm_wb_response() local
297 newbuf = realloc(buf, len_out + NTLM_BUFSIZE); in ntlm_wb_response()
298 if(!newbuf) { in ntlm_wb_response()
302 buf = newbuf; in ntlm_wb_response()
/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()

12