Searched refs:newbuf (Results 1 - 25 of 26) sorted by relevance

12

/external/dhcpcd/compat/
H A Dgetline.c45 char *newbuf, *p; local
60 newbuf = realloc(*buf, newlen);
61 if (newbuf == NULL)
63 *buf = newbuf;
/external/libselinux/src/
H A Dfgetfilecon.c24 char *newbuf; local
31 newbuf = realloc(buf, size);
32 if (!newbuf)
35 buf = newbuf;
H A Dgetfilecon.c24 char *newbuf; local
31 newbuf = realloc(buf, size);
32 if (!newbuf)
35 buf = newbuf;
H A Dgetpeercon.c28 char *newbuf; local
30 newbuf = realloc(buf, size);
31 if (!newbuf)
34 buf = newbuf;
H A Dlgetfilecon.c24 char *newbuf; local
31 newbuf = realloc(buf, size);
32 if (!newbuf)
35 buf = newbuf;
/external/emma/core/java12/com/vladium/util/
H A DByteArrayOStream.java58 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)];
61 for (int i = 0; i < pos; ++ i) newbuf [i] = mbuf [i];
63 System.arraycopy (mbuf, 0, newbuf, 0, pos);
65 m_buf = mbuf = newbuf;
82 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)];
85 for (int i = 0; i < pos; ++ i) newbuf [i] = mbuf [i];
87 System.arraycopy (mbuf, 0, newbuf, 0, pos);
89 m_buf = mbuf = newbuf;
107 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)];
110 for (int i = 0; i < pos; ++ i) newbuf [
[all...]
/external/javassist/src/main/javassist/tools/web/
H A DViewer.java196 byte[] newbuf = new byte[buf.length * 2];
197 System.arraycopy(buf, 0, newbuf, 0, size);
198 buf = newbuf;
/external/ipsec-tools/src/libipsec/
H A Dipsec_dump_policy.c102 char *newbuf; local
257 newbuf = (char *)realloc(buf, buflen);
258 if (newbuf == NULL) {
263 buf = newbuf;
/external/qemu/distrib/sdl-1.2.12/src/audio/mint/
H A DSDL_mintaudio_gsxb.c419 Uint8 *newbuf; local
428 newbuf = SDL_MintAudio_audiobuf[SDL_MintAudio_numbuf];
429 Setbuffer(0, newbuf, newbuf + SDL_MintAudio_audiosize);
/external/qemu/distrib/sdl-1.2.12/src/audio/macrom/
H A DSDL_romaudio.c334 void sndDoubleBackProc (SndChannelPtr chan, SndDoubleBufferPtr newbuf) argument
336 SDL_AudioDevice *audio = (SDL_AudioDevice *)newbuf->dbUserInfo[0];
342 memset (newbuf->dbSoundData, 0, audio->spec.size);
343 newbuf->dbNumFrames = audio->spec.samples;
354 SDL_memcpy(newbuf->dbSoundData, audio->convert.buf,
358 (Uint8 *)newbuf->dbSoundData, audio->spec.size);
361 newbuf->dbFlags |= dbBufferReady;
/external/mdnsresponder/mDNSShared/
H A Ddnssd_clientlib.c220 unsigned char *newbuf; local
223 newbuf = malloc((size_t)newlen);
224 if (!newbuf) return(kDNSServiceErr_NoMemory);
225 memcpy(newbuf, txtRec->buffer, txtRec->datalen);
227 txtRec->buffer = newbuf;
/external/quake/quake/src/QW/client/
H A Dscreen.c787 unsigned char *newbuf, *srcbuf; local
845 newbuf = malloc(w*h);
848 dest = newbuf + (w * y);
881 SCR_DrawStringToSnap (st, newbuf, w - strlen(st)*8, 0, w);
885 SCR_DrawStringToSnap (st, newbuf, w - strlen(st)*8, 10, w);
889 SCR_DrawStringToSnap (st, newbuf, w - strlen(st)*8, 20, w);
891 WritePCXfile (pcxname, newbuf, w, h, w, host_basepal, true);
893 free(newbuf);
H A Dgl_screen.c837 unsigned char *newbuf, *srcbuf; local
879 newbuf = malloc(glheight * glwidth * 3);
881 glReadPixels (glx, gly, glwidth, glheight, GL_RGB, GL_UNSIGNED_BYTE, newbuf );
890 dest = newbuf + (w*3 * y);
904 src = newbuf + (glwidth * 3 * dy) + dx * 3;
923 src = newbuf + (w * 3 * y);
924 dest = newbuf + (w * y);
935 SCR_DrawStringToSnap (st, newbuf, w - strlen(st)*8, h - 1, w);
939 SCR_DrawStringToSnap (st, newbuf, w - strlen(st)*8, h - 11, w);
943 SCR_DrawStringToSnap (st, newbuf,
[all...]
/external/e2fsprogs/util/
H A Dsubst.c273 char oldbuf[2048], newbuf[2048], *oldcp, *newcp; local
287 newcp = fgets(newbuf, sizeof(newbuf), new_f);
292 if (!oldcp || !newcp || strcmp(oldbuf, newbuf)) {
/external/chromium/third_party/libevent/
H A Dbuffer.c279 void *newbuf; local
289 if ((newbuf = realloc(buf->buffer, length)) == NULL)
292 buf->orig_buffer = buf->buffer = newbuf;
/external/elfutils/libdwfl/
H A Delf-from-memory.c187 unsigned char *newbuf = realloc (buffer, phnum * phentsize); local
188 if (newbuf == NULL)
193 buffer = newbuf;
/external/bluetooth/bluez/src/
H A Dsdp-xml.c731 char *newbuf; local
733 newbuf = malloc(elem->size * 2);
734 if (!newbuf)
737 memcpy(newbuf, elem->text, elem->size);
741 elem->text = newbuf;
/external/wpa_supplicant_8/wpa_supplicant/dbus/
H A Ddbus_dict_helpers.c876 struct wpabuf **newbuf; local
880 newbuf = os_realloc(entry->binarray_value,
882 if (!newbuf)
884 entry->binarray_value = newbuf;
/external/strace/
H A Dfile.c1281 convertoldstat(const struct __old_kernel_stat *oldbuf, struct stat *newbuf) argument
1283 newbuf->st_dev = oldbuf->st_dev;
1284 newbuf->st_ino = oldbuf->st_ino;
1285 newbuf->st_mode = oldbuf->st_mode;
1286 newbuf->st_nlink = oldbuf->st_nlink;
1287 newbuf->st_uid = oldbuf->st_uid;
1288 newbuf->st_gid = oldbuf->st_gid;
1289 newbuf->st_rdev = oldbuf->st_rdev;
1290 newbuf->st_size = oldbuf->st_size;
1291 newbuf
[all...]
/external/e2fsprogs/lib/blkid/
H A Dprobe.c56 unsigned char *newbuf; local
75 newbuf = realloc(pr->buf, len);
76 if (newbuf == NULL)
78 pr->buf = newbuf;
/external/libxml2/
H A DSAX2.c2546 xmlChar *newbuf; local
2551 newbuf = (xmlChar *) xmlRealloc(lastChild->content,size);
2552 if (newbuf == NULL) {
2557 lastChild->content = newbuf;
H A Dtree.c7082 xmlChar *newbuf; local
7107 newbuf = (xmlChar *) xmlRealloc(buf->contentIO, start_buf + size);
7108 if (newbuf == NULL) {
7112 buf->contentIO = newbuf;
7113 buf->content = newbuf + start_buf;
7115 newbuf = (xmlChar *) xmlRealloc(buf->content, size);
7116 if (newbuf == NULL) {
7120 buf->content = newbuf;
/external/gcc-demangle/
H A Dcp-demangle.c3237 char *newbuf; local
3249 newbuf = (char *) realloc (dgs->buf, newalc);
3250 if (newbuf == NULL)
3259 dgs->buf = newbuf;
/external/valgrind/main/coregrind/m_demangle/
H A Dcp-demangle.c2947 char *newbuf; local
2959 newbuf = (char *) realloc ("demangle.dgsr.1", dgs->buf, newalc);
2960 if (newbuf == NULL)
2969 dgs->buf = newbuf;
/external/libxslt/libxslt/
H A Dtransform.c671 xmlChar *newbuf; local
676 newbuf = (xmlChar *) xmlRealloc(target->content,size);
677 if (newbuf == NULL) {
683 ctxt->lasttext = newbuf;
684 target->content = newbuf;

Completed in 721 milliseconds

12