Searched refs:allocated (Results 1 - 25 of 92) sorted by relevance

1234

/haiku-fatelf/src/bin/findutils/lib/
H A Dextendbuf.h22 void *extendbuf(void* existing, size_t wanted, size_t *allocated);
H A Dextendbuf.c1 /* 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 Dsavedir.c44 /* 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 Dgetcwd.c104 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 Dsavedir.c50 /* 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 Dgetcwd.c108 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 Denviron.h26 /* Number of usable slots allocated in VECTOR.
29 int allocated; member in struct:environ
H A Denviron.c39 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 Dxmalloc.c56 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 Ddlist.c45 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 Ddirectory.c33 bool allocated = false; local
43 allocated = true;
48 if (allocated)
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/dos/r5/
H A Ddlist.c43 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 Dxmalloc.c116 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 Ddyn-string.c51 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 Dmemory_manager.c32 // 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 DBlockAllocator.cpp205 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 Dvasprintf.c48 _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 Dheap.cpp31 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 Dfuse_opt.h73 * 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 DRealtimeAlloc.cpp51 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 Dheap.cpp25 * 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 DBlockAllocator.h54 bool allocated = true);
57 bool allocated = true);
/haiku-fatelf/src/bin/gdb/include/
H A Ddyn-string.h25 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 DBlockAllocator.h44 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 Dcomp_scan.c166 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 */

Completed in 299 milliseconds

1234