HomeSort by relevance Sort by last modified time
    Searched defs:newsize (Results 1 - 25 of 162) sorted by null

1 2 3 4 5 6 7

  /external/icu/icu4c/source/tools/tzcode/
ialloc.c 14 register int oldsize, newsize; local
16 newsize = (new == NULL) ? 0 : strlen(new);
19 else if (newsize == 0)
22 if ((result = realloc(old, oldsize + newsize + 1)) != NULL)
  /external/syslinux/com32/lib/
bufprintf.c 16 size_t newsize = rv + buf->len + BUFPAD; local
19 newbuf = realloc(buf->buf, newsize);
26 buf->size = newsize;
  /device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
lmem.c 49 int newsize; local
53 newsize = limit; /* still have at least one free place */
56 newsize = (*size)*2;
57 if (newsize < MINSIZEARRAY)
58 newsize = MINSIZEARRAY; /* minimum size */
60 newblock = luaM_reallocv(L, block, *size, newsize, size_elems);
61 *size = newsize; /* update only when everything else is OK */
  /external/dtc/tests/
del_node.c 37 int oldsize, delsize, newsize; local
114 newsize = fdt_totalsize(fdt);
116 verbose_printf("oldsize = %d, delsize = %d, newsize = %d\n",
117 oldsize, delsize, newsize);
119 if (newsize >= oldsize)
del_property.c 38 int oldsize, delsize, newsize; local
81 newsize = fdt_totalsize(fdt);
83 verbose_printf("oldsize = %d, delsize = %d, newsize = %d\n",
84 oldsize, delsize, newsize);
86 if (newsize >= oldsize)
nopulate.c 59 int newsize, struct_start, struct_end_old, struct_end_new, delta; local
76 newsize = nopulate_struct(buf, fdt);
78 verbose_printf("Nopulated structure block has new size %d\n", newsize);
82 fdt2 = xmalloc(fdt_totalsize(fdt) + newsize);
85 delta = newsize - fdt_size_dt_struct(fdt);
87 struct_end_new = struct_start + newsize;
90 memcpy(fdt2 + struct_start, buf, newsize);
95 fdt_set_size_dt_struct(fdt2, newsize);
testutils.c 194 int newsize = fdt_totalsize(blob) + 8; local
196 buf = xmalloc(newsize);
197 err = fdt_open_into(blob, buf, newsize);
  /external/ltp/testcases/kernel/syscalls/mremap/
mremap02.c 88 int newsize; /* new size of virtual memory block */ variable
107 * memory region (memsize) by newsize limits using
112 addr = mremap(addr, memsize, newsize, MREMAP_MAYMOVE);
121 if (munmap(addr, newsize) != 0) {
164 newsize = (memsize * 2);
mremap01.c 93 int newsize; /* new size of virtual memory block */ variable
111 * memory region (memsize) by newsize limits.
113 addr = mremap(addr, memsize, newsize, MREMAP_MAYMOVE);
124 for (ind = 0; ind < newsize; ind++) {
133 if (msync(addr, newsize, MS_SYNC) != 0) {
174 newsize = (memsize * 2);
205 /* Stretch the file to newsize of virtual memory block */
206 if (lseek(fildes, (off_t) newsize, SEEK_SET) != (off_t) newsize) {
208 "error=%d : %s", newsize, errno, strerror(errno))
    [all...]
mremap03.c 89 int newsize; /* new size of virtual memory block */ variable
109 * memory region (memsize) by newsize limits
114 addr = mremap(addr, memsize, newsize, MREMAP_MAYMOVE);
123 if (munmap(addr, newsize) != 0) {
170 newsize = (memsize * 2);
mremap04.c 98 int newsize; /* new size of virtual memory block */ variable
119 * memory region of newsize by newsize limits
125 addr = mremap(shmaddr, memsize, newsize, 0);
134 if (munmap(addr, newsize) != 0) {
161 * newsize after resize,
162 * Create a named shared memory segment SHMKEY of newsize and mode SHM_MODE
186 newsize = (memsize * 2);
193 * specified size 'newsize' and mode permissions 'SHM_MODE'.
195 shmid = shmget(shmkey, newsize, IPC_CREAT | SHM_MODE)
    [all...]
  /external/syslinux/com32/lua/src/
lmem.c 49 int newsize; local
53 newsize = limit; /* still have at least one free place */
56 newsize = (*size)*2;
57 if (newsize < MINSIZEARRAY)
58 newsize = MINSIZEARRAY; /* minimum size */
60 newblock = luaM_reallocv(L, block, *size, newsize, size_elems);
61 *size = newsize; /* update only when everything else is OK */
  /external/ltp/testcases/kernel/syscalls/mmap/
mmap09.c 52 off_t newsize; member in struct:test_case_t
75 TEST(ftruncate(fd, TC[i].newsize));
  /external/mesa3d/src/gallium/drivers/svga/
svga_tgsi.c 58 unsigned newsize = emit->size * 2; local
61 new_buf = REALLOC(emit->buf, emit->size, newsize);
72 emit->size = newsize;
  /external/sfntly/cpp/src/test/tinyxml/
tinystr.cpp 70 size_type newsize = length() + len; local
71 if (newsize > capacity())
73 reserve (newsize + capacity());
76 set_size(newsize);
  /external/tinyxml/
tinystr.cpp 74 size_type newsize = length() + len; local
75 if (newsize > capacity())
77 reserve (newsize + capacity());
80 set_size(newsize);
  /external/bsdiff/
bsdiff_main.cc 69 size_t newsize; local
70 uint8_t* new_buf = static_cast<uint8_t*>(MapFile(new_filename, &newsize));
94 int ret = bsdiff::bsdiff(old_buf, oldsize, new_buf, newsize,
98 munmap(new_buf, newsize);
bspatch.cc 221 uint64_t newsize = ParseInt64(patch_data + 24); local
222 new_file.reset(new BufferFile(std::move(new_file), newsize));
  /external/ltp/testcases/kernel/mem/mtest07/
mallocstress.c 137 size_t newsize = 0; local
149 newsize = size + oldsize;
153 newsize = size * 2;
156 newsize = size * 3;
159 newsize = size * 5;
165 if (newsize < size)
167 size = newsize;
  /external/syslinux/core/mem/
malloc.c 133 size_t newsize, oldsize, xsize; local
158 newsize = (size + 2 * sizeof(struct arena_header) - 1) & ARENA_SIZE_MASK;
160 if (oldsize >= newsize && newsize >= (oldsize >> 2) &&
161 oldsize - newsize < 4096) {
170 ARENA_SIZE_GET(nah->a.attrs) + oldsize >= newsize) {
172 //oldsize + nah->a.size >= newsize) {
183 if (xsize >= newsize) {
185 if (xsize >= newsize + 2 * sizeof(struct arena_header)) {
187 nah = (struct free_arena_header *)((char *)ah + newsize);
    [all...]
  /external/valgrind/none/tests/linux/
mremap2.c 127 int newsize = newsizes[nsi] * PAGE; local
146 syscall(__NR_mremap, src, 20*PAGE, newsize, flags, dst, 0 );
162 tidylen = newsize;
  /frameworks/base/core/java/android/text/
PackedObjectVector.java 116 int newsize = newvalues.length / mColumns; local
120 System.arraycopy(mValues, (mRows - after) * mColumns, newvalues, (newsize - after) * mColumns, after * mColumns);
122 mRowGapLength += newsize - mRows;
123 mRows = newsize;
  /system/extras/ioshark/
compile_ioshark_subr.c 173 int newsize; local
177 newsize = filename_cache_size *
179 filename_cache = realloc(filename_cache, newsize);
  /external/curl/tests/server/
fake_ntlm.c 52 size_t newsize; local
85 newsize = outsize + outincr;
86 newbuf = realloc(outbuf, newsize);
92 outsize = newsize;
  /external/dtc/
data.c 42 int newsize; local
49 newsize = xlen;
51 while ((d.len + xlen) > newsize)
52 newsize *= 2;
54 nd.val = xrealloc(d.val, newsize);

Completed in 1505 milliseconds

1 2 3 4 5 6 7