/haiku-fatelf/src/bin/findutils/lib/ |
H A D | extendbuf.h | 22 void *extendbuf(void* existing, size_t wanted, size_t *allocated);
|
H A D | extendbuf.c | 1 /* extendbuf.c -- manage a dynamically-allocated buffer 61 extendbuf(void* existing, size_t wanted, size_t *allocated) argument 70 newsize = decide_size(*allocated, wanted); 72 if ( (*allocated) == 0 ) 75 * must be no existing allocated buffer. 79 (*allocated) = newsize; 84 if (newsize != (*allocated) ) 86 (*allocated) = newsize;
|
/haiku-fatelf/src/bin/coreutils/lib/ |
H A D | savedir.c | 44 /* Return a freshly allocated string containing the file names 54 size_t allocated = NAME_SIZE_DEFAULT; local 61 name_space = xmalloc (allocated); 81 if (allocated <= used + entry_size) 85 if (2 * allocated < allocated) 87 allocated *= 2; 89 while (allocated <= used + entry_size); 91 name_space = xrealloc (name_space, allocated); 110 /* Return a freshly allocated strin [all...] |
H A D | getcwd.c | 104 NULL, an array is allocated with `malloc'; the array is SIZE bytes long, 137 size_t allocated = size; 166 allocated = BIG_FILE_NAME_LENGTH + 1; 171 dir = malloc (allocated); 178 dirp = dir + allocated; 350 size_t oldsize = allocated; 352 allocated += MAX (allocated, namlen); 353 if (allocated < oldsize 354 || ! (tmp = realloc (dir, allocated))) 136 size_t allocated = size; local [all...] |
/haiku-fatelf/src/bin/findutils/gnulib/lib/ |
H A D | savedir.c | 50 /* Return a freshly allocated string containing the file names 60 size_t allocated = NAME_SIZE_DEFAULT; local 67 name_space = xmalloc (allocated); 87 if (allocated <= used + entry_size) 91 if (2 * allocated < allocated) 93 allocated *= 2; 95 while (allocated <= used + entry_size); 97 name_space = xrealloc (name_space, allocated); 116 /* Return a freshly allocated strin [all...] |
H A D | getcwd.c | 108 NULL, an array is allocated with `malloc'; the array is SIZE bytes long, 141 size_t allocated = size; 170 allocated = BIG_FILE_NAME_LENGTH + 1; 175 dir = malloc (allocated); 182 dirp = dir + allocated; 354 size_t oldsize = allocated; 356 allocated += MAX (allocated, namlen); 357 if (allocated < oldsize 358 || ! (tmp = realloc (dir, allocated))) 140 size_t allocated = size; local [all...] |
/haiku-fatelf/src/bin/gdb/gdb/ |
H A D | environ.h | 26 /* Number of usable slots allocated in VECTOR. 29 int allocated; member in struct:environ
|
H A D | environ.c | 39 e->allocated = 10; 40 e->vector = (char **) xmalloc ((e->allocated + 1) * sizeof (char *)); 73 if (e->allocated < i) 75 e->allocated = max (i, e->allocated + 10); 77 (e->allocated + 1) * sizeof (char *)); 133 if (i == e->allocated) 135 e->allocated += 10; 137 (e->allocated + 1) * sizeof (char *));
|
/haiku-fatelf/src/bin/bash/ |
H A D | xmalloc.c | 56 static size_t allocated; variable 78 to hold BYTES number of bytes. If the memory cannot be allocated, 91 allocated = findbrk (); 92 fatal_error (_("xmalloc: cannot allocate %lu bytes (%lu bytes allocated)"), (unsigned long)bytes, (unsigned long)allocated); 113 allocated = findbrk (); 114 fatal_error (_("xrealloc: cannot reallocate %lu bytes (%lu bytes allocated)"), (unsigned long)bytes, (unsigned long)allocated); 149 allocated = findbrk (); 150 fatal_error (_("xmalloc: %s:%d: cannot allocate %lu bytes (%lu bytes allocated)"), fil [all...] |
/haiku-fatelf/src/add-ons/kernel/file_systems/fat/ |
H A D | dlist.c | 45 vol->dlist.allocated = DLIST_ENTRY_QUANTUM; 46 vol->dlist.vnid_list = malloc(sizeof(ino_t) * vol->dlist.allocated); 48 vol->dlist.allocated = 0; 64 vol->dlist.entries = vol->dlist.allocated = 0; 76 DPRINTF(0, ("dlist_realloc %lx -> %lx\n", vol->dlist.allocated, allocate)); 78 ASSERT(allocate != vol->dlist.allocated); 90 vol->dlist.allocated = allocate; 105 if (vol->dlist.entries == vol->dlist.allocated) { 106 if (dlist_realloc(vol, vol->dlist.allocated + DLIST_ENTRY_QUANTUM) < 0) 132 if (vol->dlist.allocated [all...] |
/haiku-fatelf/src/system/libroot/posix/unistd/ |
H A D | directory.c | 33 bool allocated = false; local 43 allocated = true; 48 if (allocated)
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/dos/r5/ |
H A D | dlist.c | 43 vol->dlist.allocated = DLIST_ENTRY_QUANTUM; 44 vol->dlist.vnid_list = malloc(sizeof(vnode_id) * vol->dlist.allocated); 46 vol->dlist.allocated = 0; 60 vol->dlist.entries = vol->dlist.allocated = 0; 70 DPRINTF(0, ("dlist_realloc %lx -> %lx\n", vol->dlist.allocated, allocate)); 72 ASSERT(allocate != vol->dlist.allocated); 84 vol->dlist.allocated = allocate; 97 if (vol->dlist.entries == vol->dlist.allocated) { 98 if (dlist_realloc(vol, vol->dlist.allocated + DLIST_ENTRY_QUANTUM) < 0) 122 if (vol->dlist.allocated [all...] |
/haiku-fatelf/src/bin/gdb/libiberty/ |
H A D | xmalloc.c | 116 size_t allocated; local 119 allocated = (char *) sbrk (0) - first_break; 121 allocated = (char *) sbrk (0) - (char *) &environ; 125 (unsigned long) size, (unsigned long) allocated);
|
H A D | dyn-string.c | 51 are still dynamically allocated. The string initially is capable 74 ds_struct_ptr->allocated = space; 85 returns the newly allocated string. */ 118 /* Returns the contents of DS in a buffer allocated with malloc. It 148 int new_allocated = ds->allocated; 157 if (new_allocated != ds->allocated) 159 ds->allocated = new_allocated; 162 ds->s = (char *) realloc (ds->s, ds->allocated); 169 ds->s = (char *) xrealloc (ds->s, ds->allocated);
|
/haiku-fatelf/src/add-ons/kernel/drivers/graphics/common/ |
H A D | memory_manager.c | 32 // allocated memory block 38 bool allocated; member in struct:mem_block 78 block->allocated = false; 81 if (prev && !prev->allocated) { 88 if (next && !next->allocated) 151 first->allocated = false; 204 if (!current->allocated && current->size >= size) 225 newEntry->allocated = false; 236 current->allocated = true; 279 if (!block->allocated || bloc [all...] |
/haiku-fatelf/src/tests/system/kernel/file_corruption/fs/ |
H A D | BlockAllocator.cpp | 205 uint64 allocated; local 207 allocated); 211 if (allocated < count) 242 Might allocate fewer block than requested. If no block could be allocated 254 blocks actually allocated. 255 \return \c B_OK, if one or more blocks could be allocated, another error 276 uint32 allocated; local 278 transaction, _allocatedBase, allocated); 282 if (allocated == toAllocate) { 283 _allocatedCount = allocated; 309 uint32 allocated; local 384 uint32 allocated; local 439 uint32 allocated; local [all...] |
/haiku-fatelf/src/system/libroot/posix/glibc/libio/ |
H A D | vasprintf.c | 48 _IO_size_t allocated; local 68 magnitude then the memory we allocated. */ 70 allocated = sf._sbf._f._IO_write_end - sf._sbf._f._IO_write_base; 71 if ((allocated << 1) <= needed)
|
/haiku-fatelf/src/system/boot/loader/ |
H A D | heap.cpp | 31 When memory is allocated, the smallest free chunk that contains 39 size 0 that can't be allocated. 62 static FreeChunk* SetToAllocated(void* allocated); 87 /*! Returns the amount of bytes that can be allocated 201 FreeChunk::SetToAllocated(void* allocated) argument 203 return (FreeChunk*)((uint8*)allocated - FreeChunk::NextOffset()); 372 free(void* allocated) argument 374 if (allocated == NULL) 377 TRACE("free(%p)\n", allocated); 379 FreeChunk* freedChunk = FreeChunk::SetToAllocated(allocated); [all...] |
/haiku-fatelf/headers/private/userlandfs/fuse/ |
H A D | fuse_opt.h | 73 * If the format is "%s", memory is allocated for the string unlike 115 /** Is 'argv' allocated? */ 116 int allocated; member in struct:fuse_args
|
/haiku-fatelf/src/kits/media/ |
H A D | RealtimeAlloc.cpp | 51 static FreeChunk* SetToAllocated(void* allocated); 90 /*! Returns the amount of bytes that can be allocated 199 FreeChunk::SetToAllocated(void* allocated) argument 201 return (FreeChunk*)((uint8*)allocated - FreeChunk::NextOffset()); 217 rtm_pool::Free(void* allocated) argument 219 FreeChunk* freedChunk = FreeChunk::SetToAllocated(allocated); 397 rtm_free(void* allocated) argument 399 if (allocated == NULL) 402 TRACE("rtm_free(%p)\n", allocated); 405 rtm_pool* pool = pool_for(allocated); [all...] |
/haiku-fatelf/src/system/runtime_loader/ |
H A D | heap.cpp | 25 * When memory is allocated, the smallest free chunk that contains 33 * size 0 that can't be allocated. 49 static free_chunk *SetToAllocated(void *allocated); 57 /** Returns the amount of bytes that can be allocated 168 free_chunk::SetToAllocated(void *allocated) argument 170 return (free_chunk *)((uint8 *)allocated - sizeof(size_t)); 322 free(void *allocated) argument 324 if (allocated == NULL) 327 free_chunk *freedChunk = free_chunk::SetToAllocated(allocated);
|
/haiku-fatelf/src/add-ons/kernel/file_systems/bfs/ |
H A D | BlockAllocator.h | 54 bool allocated = true); 57 bool allocated = true);
|
/haiku-fatelf/src/bin/gdb/include/ |
H A D | dyn-string.h | 25 int allocated; /* The amount of space allocated for the string. */ member in struct:dyn_string
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/bfs/r5/ |
H A D | BlockAllocator.h | 44 status_t CheckBlockRun(block_run run, const char *type = NULL, check_control *control = NULL, bool allocated = true);
|
/haiku-fatelf/src/libs/ncurses/ncurses/tinfo/ |
H A D | comp_scan.c | 166 static size_t allocated; local 173 allocated = 0; 201 if (used + (LEXBUFSIZ / 4) >= allocated) { 202 allocated += (allocated + LEXBUFSIZ); 203 result = typeRealloc(char, allocated, result); 210 if (fgets(result + used, (int) (allocated - used), yyin) != 0) { 369 next_char(); /* frees its allocated memory */
|