/dragonfly/contrib/libarchive/libarchive/ |
H A D | archive_write_disk_set_standard_lookup.c | 127 char *allocated = NULL; in lookup_gid() local 139 free(allocated); in lookup_gid() 140 allocated = malloc(bufsize); in lookup_gid() 141 if (allocated == NULL) in lookup_gid() 143 buffer = allocated; in lookup_gid() 147 free(allocated); in lookup_gid() 196 char *allocated = NULL; in lookup_uid() local 208 free(allocated); in lookup_uid() 210 if (allocated == NULL) in lookup_uid() 212 buffer = allocated; in lookup_uid() [all …]
|
/dragonfly/contrib/gdb-7/gdb/ |
H A D | environ.c | 35 e->allocated = 10; in make_environ() 36 e->vector = (char **) xmalloc ((e->allocated + 1) * sizeof (char *)); in make_environ() 70 if (e->allocated < i) in init_environ() 72 e->allocated = max (i, e->allocated + 10); in init_environ() 74 (e->allocated + 1) * sizeof (char *)); in init_environ() 130 if (i == e->allocated) in set_in_environ() 132 e->allocated += 10; in set_in_environ() 134 (e->allocated + 1) * sizeof (char *)); in set_in_environ()
|
/dragonfly/contrib/gcc-4.7/gcc/ |
H A D | vec.c | 45 size_t allocated; member 76 size_t allocated; member 117 (*slot)->allocated = 0; in vec_descriptor() 133 p->allocated = size; in register_overhead() 140 loc->allocated += size; in register_overhead() 153 p->loc->allocated -= p->allocated; in free_overhead() 542 diff = l1->allocated - l2->allocated; in cmp_statistic() 568 size_t allocated = 0; in dump_vec_loc_statistics() local 582 allocated += d->allocated; in dump_vec_loc_statistics() 595 (long)d->allocated, in dump_vec_loc_statistics() [all …]
|
H A D | ggc-common.c | 857 size_t allocated; member 945 p->size = allocated + overhead; in ggc_record_overhead() 953 loc->allocated+=allocated; in ggc_record_overhead() 1007 diff = ((long)(l1->allocated + l1->overhead - l1->freed) - in final_cmp_statistic() 1008 (l2->allocated + l2->overhead - l2->freed)); in final_cmp_statistic() 1023 (l2->allocated + l2->overhead - l2->freed - l2->collected)); in cmp_statistic() 1026 diff = ((long)(l1->allocated + l1->overhead - l1->freed) - in cmp_statistic() 1027 (l2->allocated + l2->overhead - l2->freed)); in cmp_statistic() 1067 allocated += d->allocated; in dump_ggc_loc_statistics() 1076 if (d->allocated) in dump_ggc_loc_statistics() [all …]
|
H A D | ggc-zone.c | 371 size_t allocated; member 1314 zone->allocated += size; in ggc_internal_alloc_zone_stat() 1737 size_t allocated = 0; in sweep_pages() local 1764 allocated += lp->bytes; in sweep_pages() 1899 zone->allocated = allocated; in sweep_pages() 1941 zone->allocated = 0; in ggc_collect_1() 2007 allocated += zone->allocated; in ggc_collect() 2141 allocated = in_use = 0; in ggc_print_statistics() 2148 allocated += large_page->bytes; in ggc_print_statistics() 2173 SCALE (allocated), LABEL (allocated), in ggc_print_statistics() [all …]
|
H A D | alloc-pool.c | 79 unsigned long allocated; member 257 desc->allocated += pool->elt_size; in pool_alloc() 374 if (d->allocated) in print_statistics() 377 d->elt_size, d->created, d->allocated, d->allocated / d->elt_size, in print_statistics() 380 i->total_allocated += d->allocated; in print_statistics()
|
/dragonfly/sys/dev/crypto/padlock/ |
H A D | padlock_cipher.c | 165 int *allocated) in padlock_cipher_alloc() argument 186 *allocated = 0; in padlock_cipher_alloc() 190 *allocated = 1; in padlock_cipher_alloc() 202 int allocated; in padlock_cipher_process() local 204 buf = padlock_cipher_alloc(enccrd, crp, &allocated); in padlock_cipher_process() 241 if (allocated) { in padlock_cipher_process() 249 if (allocated) { in padlock_cipher_process() 261 if (allocated) { in padlock_cipher_process()
|
/dragonfly/lib/libthread_xu/thread/ |
H A D | thr_spec.c | 60 if (_thread_keytable[i].allocated == 0) { in _pthread_key_create() 61 _thread_keytable[i].allocated = 1; in _pthread_key_create() 87 if (_thread_keytable[key].allocated) in _pthread_key_delete() 88 _thread_keytable[key].allocated = 0; in _pthread_key_delete() 119 if (_thread_keytable[key].allocated && in _thread_cleanupspecific() 201 if (_thread_keytable[key].allocated) { in _pthread_setspecific() 235 if (_thread_keytable[key].allocated && in _pthread_getspecific()
|
/dragonfly/sys/libkern/ |
H A D | linux_idr.c | 187 if (idrnp->allocated == 0) in idr_get_node() 196 idp->idr_nodes[id].allocated += incr; in idr_reserve() 197 KKASSERT(idp->idr_nodes[id].allocated >= 0); in idr_reserve() 222 if (idp->idr_nodes[id].allocated == 0) in idr_find_free() 226 if (idp->idr_nodes[id].allocated == rsize) in idr_find_free() 238 rsum += idp->idr_nodes[node].allocated; in idr_find_free() 239 if (idp->idr_nodes[id].allocated == rsum + rsize) { in idr_find_free() 241 if (idp->idr_nodes[node].allocated == 0) in idr_find_free() 472 if (idp->idr_nodes[id].allocated == 0) { in idr_remove() 521 } else if (idp->idr_nodes[id].allocated == 0) { in idr_find() [all …]
|
/dragonfly/contrib/cvs-1.12/lib/ |
H A D | vasnprintf.c | 146 size_t allocated; in VASNPRINTF() local 174 allocated = *lengthp; in VASNPRINTF() 179 allocated = 0; in VASNPRINTF() 189 if ((needed) > allocated) \ in VASNPRINTF() 194 allocated = (allocated > 0 ? xtimes (allocated, 2) : 12); \ in VASNPRINTF() 195 if ((needed) > allocated) \ in VASNPRINTF() 196 allocated = (needed); \ in VASNPRINTF() 596 maxlen = allocated - length; in VASNPRINTF() 792 xsum (xtimes (allocated, 2), 12); in VASNPRINTF() 828 xmax (xsum (length, count), xtimes (allocated, 2)); in VASNPRINTF() [all …]
|
/dragonfly/contrib/binutils-2.27/libiberty/ |
H A D | xmalloc.c | 122 size_t allocated; in xmalloc_failed() local 125 allocated = (char *) sbrk (0) - first_break; in xmalloc_failed() 127 allocated = (char *) sbrk (0) - (char *) &environ; in xmalloc_failed() 131 (unsigned long) size, (unsigned long) allocated); in xmalloc_failed()
|
H A D | dyn-string.c | 72 ds_struct_ptr->allocated = space; in dyn_string_init() 141 int new_allocated = ds->allocated; in dyn_string_resize() 150 if (new_allocated != ds->allocated) in dyn_string_resize() 152 ds->allocated = new_allocated; in dyn_string_resize() 155 ds->s = (char *) realloc (ds->s, ds->allocated); in dyn_string_resize() 162 ds->s = XRESIZEVEC (char, ds->s, ds->allocated); in dyn_string_resize()
|
/dragonfly/contrib/binutils-2.34/libiberty/ |
H A D | xmalloc.c | 121 size_t allocated; in xmalloc_failed() local 124 allocated = (char *) sbrk (0) - first_break; in xmalloc_failed() 126 allocated = (char *) sbrk (0) - (char *) &environ; in xmalloc_failed() 130 (unsigned long) size, (unsigned long) allocated); in xmalloc_failed()
|
H A D | dyn-string.c | 72 ds_struct_ptr->allocated = space; in dyn_string_init() 141 int new_allocated = ds->allocated; in dyn_string_resize() 150 if (new_allocated != ds->allocated) in dyn_string_resize() 152 ds->allocated = new_allocated; in dyn_string_resize() 155 ds->s = (char *) realloc (ds->s, ds->allocated); in dyn_string_resize() 162 ds->s = XRESIZEVEC (char, ds->s, ds->allocated); in dyn_string_resize()
|
/dragonfly/contrib/gcc-4.7/libiberty/ |
H A D | xmalloc.c | 121 size_t allocated; in xmalloc_failed() local 124 allocated = (char *) sbrk (0) - first_break; in xmalloc_failed() 126 allocated = (char *) sbrk (0) - (char *) &environ; in xmalloc_failed() 130 (unsigned long) size, (unsigned long) allocated); in xmalloc_failed()
|
H A D | dyn-string.c | 72 ds_struct_ptr->allocated = space; in dyn_string_init() 141 int new_allocated = ds->allocated; in dyn_string_resize() 150 if (new_allocated != ds->allocated) in dyn_string_resize() 152 ds->allocated = new_allocated; in dyn_string_resize() 155 ds->s = (char *) realloc (ds->s, ds->allocated); in dyn_string_resize() 162 ds->s = XRESIZEVEC (char, ds->s, ds->allocated); in dyn_string_resize()
|
/dragonfly/contrib/gcc-8.0/libiberty/ |
H A D | xmalloc.c | 121 size_t allocated; in xmalloc_failed() local 124 allocated = (char *) sbrk (0) - first_break; in xmalloc_failed() 126 allocated = (char *) sbrk (0) - (char *) &environ; in xmalloc_failed() 130 (unsigned long) size, (unsigned long) allocated); in xmalloc_failed()
|
H A D | dyn-string.c | 72 ds_struct_ptr->allocated = space; in dyn_string_init() 141 int new_allocated = ds->allocated; in dyn_string_resize() 150 if (new_allocated != ds->allocated) in dyn_string_resize() 152 ds->allocated = new_allocated; in dyn_string_resize() 155 ds->s = (char *) realloc (ds->s, ds->allocated); in dyn_string_resize() 162 ds->s = XRESIZEVEC (char, ds->s, ds->allocated); in dyn_string_resize()
|
/dragonfly/contrib/gdb-7/libiberty/ |
H A D | dyn-string.c | 72 ds_struct_ptr->allocated = space; in dyn_string_init() 141 int new_allocated = ds->allocated; in dyn_string_resize() 150 if (new_allocated != ds->allocated) in dyn_string_resize() 152 ds->allocated = new_allocated; in dyn_string_resize() 155 ds->s = (char *) realloc (ds->s, ds->allocated); in dyn_string_resize() 162 ds->s = XRESIZEVEC (char, ds->s, ds->allocated); in dyn_string_resize()
|
/dragonfly/lib/libc/gen/ |
H A D | getcwd.c | 45 int allocated = 0, ret; in getcwd() local 54 allocated = 1; in getcwd() 59 if (allocated) in getcwd()
|
/dragonfly/contrib/gcc-4.7/libgomp/ |
H A D | env.c | 487 size_t allocated = 0, used = 0, needed; in parse_affinity() local 523 if (used + needed >= allocated) in parse_affinity() 527 if (allocated < 64) in parse_affinity() 528 allocated = 64; in parse_affinity() 529 if (allocated > needed) in parse_affinity() 530 allocated <<= 1; in parse_affinity() 532 allocated += 2 * needed; in parse_affinity() 533 new_cpus = realloc (cpus, allocated * sizeof (unsigned short)); in parse_affinity()
|
/dragonfly/sys/dev/drm/amd/amdgpu/ |
H A D | amdgpu_vce.c | 693 *allocated |= 1 << i; in amdgpu_vce_validate_handle() 715 uint32_t allocated = 0; in amdgpu_vce_ring_parse_cs() local 798 &allocated); in amdgpu_vce_ring_parse_cs() 815 allocated |= 1 << session_idx; in amdgpu_vce_ring_parse_cs() 917 if (allocated & ~created) { in amdgpu_vce_ring_parse_cs() 928 tmp = allocated; in amdgpu_vce_ring_parse_cs() 950 uint32_t allocated = 0; in amdgpu_vce_ring_parse_cs_vm() local 968 &allocated); in amdgpu_vce_ring_parse_cs_vm() 979 allocated |= 1 << session_idx; in amdgpu_vce_ring_parse_cs_vm() 1006 if (allocated & ~created) { in amdgpu_vce_ring_parse_cs_vm() [all …]
|
/dragonfly/sys/dev/drm/ |
H A D | drm_mm.c | 214 DRM_MM_BUG_ON(!drm_mm_hole_follows(hole_node) || node->allocated); in drm_mm_insert_helper() 246 node->allocated = 1; in drm_mm_insert_helper() 313 node->allocated = 1; in drm_mm_reserve_node() 397 DRM_MM_BUG_ON(!node->allocated); in drm_mm_remove_node() 419 node->allocated = 0; in drm_mm_remove_node() 497 DRM_MM_BUG_ON(!old->allocated); in drm_mm_replace_node() 507 old->allocated = 0; in drm_mm_replace_node() 508 new->allocated = 1; in drm_mm_replace_node() 616 DRM_MM_BUG_ON(!node->allocated); in drm_mm_scan_add_block() 784 mm->head_node.allocated = 0; in drm_mm_init()
|
/dragonfly/contrib/ncurses/ncurses/tinfo/ |
H A D | comp_scan.c | 165 static size_t allocated; in next_char() local 174 allocated = 0; in next_char() 201 if (used + (LEXBUFSIZ / 4) >= allocated) { in next_char() 202 allocated += (allocated + LEXBUFSIZ); in next_char() 203 result = typeRealloc(char, allocated, result); in next_char() 212 if (fgets(result + used, (int) (allocated - used), yyin) != 0) { in next_char() 224 _nc_STRCAT(result, "\n", allocated); in next_char()
|
/dragonfly/contrib/tcp_wrappers/ |
H A D | environ.c | 34 static int allocated = 0; /* environ is, or is not, allocated */ variable 163 envp = allocated ? 169 allocated = 1;
|