Home
last modified time | relevance | path

Searched refs:newbuf (Results 1 – 25 of 31) 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.c448 convertoldstat(const struct __old_kernel_stat *oldbuf, struct stat *newbuf) in convertoldstat() argument
450 memset(newbuf, 0, sizeof(*newbuf)); in convertoldstat()
451 newbuf->st_dev = oldbuf->st_dev; in convertoldstat()
452 newbuf->st_ino = oldbuf->st_ino; in convertoldstat()
453 newbuf->st_mode = oldbuf->st_mode; in convertoldstat()
454 newbuf->st_nlink = oldbuf->st_nlink; in convertoldstat()
455 newbuf->st_uid = oldbuf->st_uid; in convertoldstat()
456 newbuf->st_gid = oldbuf->st_gid; in convertoldstat()
457 newbuf->st_rdev = oldbuf->st_rdev; in convertoldstat()
458 newbuf->st_size = oldbuf->st_size; in convertoldstat()
[all …]
/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()
Dfgetfilecon.c24 char *newbuf; in fgetfilecon() local
31 newbuf = realloc(buf, size); in fgetfilecon()
32 if (!newbuf) in fgetfilecon()
35 buf = newbuf; in fgetfilecon()
Dlgetfilecon.c24 char *newbuf; in lgetfilecon() local
31 newbuf = realloc(buf, size); in lgetfilecon()
32 if (!newbuf) in lgetfilecon()
35 buf = newbuf; in lgetfilecon()
/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/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()
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()
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()
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/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/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/boringssl/src/crypto/bytestring/
Dcbb.c93 uint8_t *newbuf; in cbb_buffer_add() local
102 newbuf = OPENSSL_realloc(base->buf, newcap); in cbb_buffer_add()
103 if (newbuf == NULL) { in cbb_buffer_add()
107 base->buf = newbuf; in cbb_buffer_add()
/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.c437 xmlChar *newbuf; in xmlBufGrowInternal() local
464 newbuf = (xmlChar *) xmlRealloc(buf->contentIO, start_buf + size); in xmlBufGrowInternal()
465 if (newbuf == NULL) { in xmlBufGrowInternal()
469 buf->contentIO = newbuf; in xmlBufGrowInternal()
470 buf->content = newbuf + start_buf; in xmlBufGrowInternal()
472 newbuf = (xmlChar *) xmlRealloc(buf->content, size); in xmlBufGrowInternal()
473 if (newbuf == NULL) { in xmlBufGrowInternal()
477 buf->content = newbuf; in xmlBufGrowInternal()
/external/elfutils/src/libdwfl/
Delf-from-memory.c171 unsigned char *newbuf = realloc (buffer, phnum * phentsize); in elf_from_remote_memory() local
172 if (newbuf == NULL) in elf_from_remote_memory()
177 buffer = newbuf; in elf_from_remote_memory()
/external/wpa_supplicant_8/wpa_supplicant/dbus/
Ddbus_dict_helpers.c851 struct wpabuf **newbuf; in _wpa_dbus_dict_entry_get_binarray() local
855 newbuf = os_realloc_array(entry->binarray_value, in _wpa_dbus_dict_entry_get_binarray()
857 if (!newbuf) in _wpa_dbus_dict_entry_get_binarray()
859 entry->binarray_value = newbuf; in _wpa_dbus_dict_entry_get_binarray()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationKeys.java247 byte[] newbuf = new byte[newCapacity]; in ensureCapacity()
248 System.arraycopy(buffer, 0, newbuf, 0, len); in ensureCapacity()
249 buffer = newbuf; in ensureCapacity()
/external/mesa3d/src/gallium/auxiliary/rtasm/
Drtasm_ppc.c269 uint32_t *newbuf; in emit_instruction() local
271 newbuf = rtasm_exec_malloc(p->max_inst * PPC_INST_SIZE); in emit_instruction()
272 if (newbuf) { in emit_instruction()
273 memcpy(newbuf, p->store, p->num_inst * PPC_INST_SIZE); in emit_instruction()
276 p->store = newbuf; in emit_instruction()

12