| /freebsd-12-stable/contrib/libarchive/libarchive/ |
| 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() 209 allocated = malloc(bufsize); in lookup_uid() 210 if (allocated == NULL) in lookup_uid() [all …]
|
| /freebsd-12-stable/contrib/gdb/gdb/ |
| D | environ.c | 38 e->allocated = 10; in make_environ() 39 e->vector = (char **) xmalloc ((e->allocated + 1) * sizeof (char *)); in make_environ() 72 if (e->allocated < i) in init_environ() 74 e->allocated = max (i, e->allocated + 10); in init_environ() 76 (e->allocated + 1) * sizeof (char *)); in init_environ() 131 if (i == e->allocated) in set_in_environ() 133 e->allocated += 10; in set_in_environ() 135 (e->allocated + 1) * sizeof (char *)); in set_in_environ()
|
| /freebsd-12-stable/contrib/gcclibs/libgomp/ |
| D | env.c | 191 size_t allocated = 0, used = 0, needed; in parse_affinity() local 227 if (used + needed >= allocated) in parse_affinity() 231 if (allocated < 64) in parse_affinity() 232 allocated = 64; in parse_affinity() 233 if (allocated > needed) in parse_affinity() 234 allocated <<= 1; in parse_affinity() 236 allocated += 2 * needed; in parse_affinity() 237 new_cpus = realloc (cpus, allocated * sizeof (unsigned short)); in parse_affinity()
|
| /freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| D | sanitizer_symbolizer_libbacktrace.cpp | 44 uptr size, allocated; member 51 if (needed > data->allocated) { in CplusV3DemangleCallback() 52 data->allocated *= 2; in CplusV3DemangleCallback() 53 if (needed > data->allocated) in CplusV3DemangleCallback() 54 data->allocated = needed; in CplusV3DemangleCallback() 55 char *buf = (char *)InternalAlloc(data->allocated); in CplusV3DemangleCallback() 72 data.allocated = 0; in CplusV3Demangle() 75 if (data.size + 64 > data.allocated) in CplusV3Demangle()
|
| /freebsd-12-stable/lib/libthr/thread/ |
| D | thr_spec.c | 72 if (_thread_keytable[i].allocated == 0) { in _thr_key_create() 73 _thread_keytable[i].allocated = 1; in _thr_key_create() 98 if (_thread_keytable[key].allocated) { in _thr_key_delete() 99 _thread_keytable[key].allocated = 0; in _thr_key_delete() 126 if (_thread_keytable[key].allocated && in _thread_cleanupspecific() 179 !_thread_keytable[key].allocated) in _thr_setspecific() 214 if (_thread_keytable[key].allocated && pthread->specific != NULL && in _thr_getspecific() 238 if (!_thread_keytable[key].allocated) in _thr_tsd_unload()
|
| /freebsd-12-stable/sys/crypto/via/ |
| D | padlock_cipher.c | 170 int *allocated) in padlock_cipher_alloc() argument 191 *allocated = 0; in padlock_cipher_alloc() 195 *allocated = 1; in padlock_cipher_alloc() 208 int allocated; in padlock_cipher_process() local 210 buf = padlock_cipher_alloc(enccrd, crp, &allocated); in padlock_cipher_process() 247 if (allocated) { in padlock_cipher_process() 258 if (allocated) { in padlock_cipher_process() 270 if (allocated) { in padlock_cipher_process()
|
| /freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/dfsan/ |
| D | dfsan_allocator.cpp | 91 void *allocated; in DFsanAllocate() local 94 allocated = allocator.Allocate(cache, size, alignment); in DFsanAllocate() 98 allocated = allocator.Allocate(cache, size, alignment); in DFsanAllocate() 100 if (UNLIKELY(!allocated)) { in DFsanAllocate() 108 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in DFsanAllocate() 111 internal_memset(allocated, 0, size); in DFsanAllocate() 112 dfsan_set_label(0, allocated, size); in DFsanAllocate() 114 dfsan_set_label(0, allocated, size); in DFsanAllocate() 116 return allocated; in DFsanAllocate()
|
| /freebsd-12-stable/contrib/gcc/ |
| D | varray.c | 40 int allocated; member 127 desc->allocated += data_size + VARRAY_HDR_SIZE; in varray_init() 157 desc->allocated += data_size - old_data_size; in varray_grow() 231 if (d->allocated) in print_statistics() 234 d->created, d->allocated, d->resized, d->copied); in print_statistics() 235 i->size += d->allocated; in print_statistics()
|
| D | ggc-zone.c | 398 size_t allocated; member 1230 zone->allocated += size; in ggc_alloc_zone_stat() 1339 large_page->common.zone->allocated -= large_page->bytes; in ggc_free() 1352 page->zone->allocated -= size; in ggc_free() 1602 size_t allocated = 0; in sweep_pages() local 1629 allocated += lp->bytes; in sweep_pages() 1713 allocated += object - last_object; in sweep_pages() 1721 allocated += object - last_object; in sweep_pages() 1758 allocated += object - last_object; in sweep_pages() 1763 zone->allocated = allocated; in sweep_pages() [all …]
|
| D | ggc-common.c | 797 size_t allocated; member 876 ggc_record_overhead (size_t allocated, size_t overhead, void *ptr, in ggc_record_overhead() argument 885 p->size = allocated + overhead; in ggc_record_overhead() 893 loc->allocated+=allocated; in ggc_record_overhead() 938 return ((l1->allocated + l1->overhead - l1->freed) - in cmp_statistic() 939 (l2->allocated + l2->overhead - l2->freed)); in cmp_statistic() 961 size_t collected = 0, freed = 0, allocated = 0, overhead = 0, times = 0; in dump_ggc_loc_statistics() local 977 allocated += d->allocated; in dump_ggc_loc_statistics() 986 if (d->allocated) in dump_ggc_loc_statistics() 999 (long)(d->allocated + d->overhead - d->freed - d->collected), in dump_ggc_loc_statistics() [all …]
|
| D | alloc-pool.c | 72 int allocated; member 230 desc->allocated+=pool->elt_size; in pool_alloc() 330 if (d->allocated) in print_statistics() 333 d->created, d->allocated, d->peak, d->current); in print_statistics() 334 i->size += d->allocated; in print_statistics()
|
| /freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/msan/ |
| D | msan_allocator.cpp | 164 void *allocated; in MsanAllocate() local 167 allocated = allocator.Allocate(cache, size, alignment); in MsanAllocate() 171 allocated = allocator.Allocate(cache, size, alignment); in MsanAllocate() 173 if (UNLIKELY(!allocated)) { in MsanAllocate() 180 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in MsanAllocate() 183 __msan_clear_and_unpoison(allocated, size); in MsanAllocate() 185 __msan_poison(allocated, size); in MsanAllocate() 189 __msan_set_origin(allocated, size, o.raw_id()); in MsanAllocate() 192 MSAN_MALLOC_HOOK(allocated, size); in MsanAllocate() 193 return allocated; in MsanAllocate()
|
| /freebsd-12-stable/contrib/binutils/libiberty/ |
| 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()
|
| 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()
|
| /freebsd-12-stable/contrib/gcclibs/libiberty/ |
| 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()
|
| 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()
|
| /freebsd-12-stable/crypto/heimdal/lib/ntlm/ |
| D | ntlm.c | 100 uint16_t allocated; member 223 CHECK(krb5_ret_uint16(sp, &buf->allocated), 0); in ret_sec_buffer() 234 CHECK(krb5_store_uint16(sp, buf->allocated), 0); in store_sec_buffer() 614 domain.allocated = domain.length; in heim_ntlm_encode_type1() 617 domain.allocated = 0; in heim_ntlm_encode_type1() 620 hostname.offset = domain.allocated + domain.offset; in heim_ntlm_encode_type1() 623 hostname.allocated = hostname.length; in heim_ntlm_encode_type1() 626 hostname.allocated = 0; in heim_ntlm_encode_type1() 763 targetname.allocated = targetname.length; in heim_ntlm_encode_type2() 765 targetinfo.offset = targetname.allocated + targetname.offset; in heim_ntlm_encode_type2() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/hwasan/ |
| D | hwasan_allocator.cpp | 135 void *allocated; in HwasanAllocate() local 137 allocated = allocator.Allocate(t->allocator_cache(), size, alignment); in HwasanAllocate() 141 allocated = allocator.Allocate(cache, size, alignment); in HwasanAllocate() 143 if (UNLIKELY(!allocated)) { in HwasanAllocate() 150 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in HwasanAllocate() 155 internal_memset(allocated, 0, size); in HwasanAllocate() 158 internal_memset(allocated, flags()->malloc_fill_byte, fill_size); in HwasanAllocate() 161 internal_memcpy(reinterpret_cast<u8 *>(allocated) + orig_size, tail_magic, in HwasanAllocate() 165 void *user_ptr = allocated; in HwasanAllocate() 180 reinterpret_cast<u8 *>(allocated) + full_granule_size; in HwasanAllocate()
|
| /freebsd-12-stable/sys/crypto/armv8/ |
| D | armv8_crypto.c | 340 int *allocated) in armv8_crypto_cipher_alloc() argument 360 *allocated = 0; in armv8_crypto_cipher_alloc() 367 *allocated = 1; in armv8_crypto_cipher_alloc() 371 *allocated = 0; in armv8_crypto_cipher_alloc() 382 int allocated, i; in armv8_crypto_cipher_process() local 388 buf = armv8_crypto_cipher_alloc(enccrd, crp, &allocated); in armv8_crypto_cipher_process() 439 if (allocated) in armv8_crypto_cipher_process() 447 if (allocated) { in armv8_crypto_cipher_process()
|
| /freebsd-12-stable/sys/dev/ixl/ |
| D | ixl_pf_qmgr.c | 80 qmgr->qinfo[i].allocated = true; in ixl_pf_qmgr_alloc_contiguous() 119 if (!qmgr->qinfo[i].allocated) { in ixl_pf_qmgr_alloc_scattered() 122 qmgr->qinfo[i].allocated = true; in ixl_pf_qmgr_alloc_scattered() 171 if (!qmgr->qinfo[i].allocated) in ixl_pf_qmgr_get_num_free() 187 if (qmgr->qinfo[i].allocated) in ixl_pf_qmgr_get_first_free() 307 if (!qmgr->qinfo[i].allocated) { in ixl_pf_qmgr_find_free_contiguous_block()
|
| /freebsd-12-stable/contrib/googletest/googletest/samples/ |
| D | sample10_unittest.cc | 62 static int allocated() { return allocated_; } in allocated() function in __anon53e6900b0111::Water 78 initially_allocated_ = Water::allocated(); in OnTestStart() 83 int difference = Water::allocated() - initially_allocated_; in OnTestEnd()
|
| /freebsd-12-stable/contrib/jemalloc/src/ |
| D | base.c | 211 base->allocated += size; in base_extent_bump_alloc_post() 219 assert(base->allocated <= base->resident); in base_extent_bump_alloc_post() 327 base->allocated += sizeof(base_block_t); in base_extent_alloc() 337 assert(base->allocated <= base->resident); in base_extent_alloc() 379 base->allocated = sizeof(base_block_t); in base_new() 385 assert(base->allocated <= base->resident); in base_new() 481 base_stats_get(tsdn_t *tsdn, base_t *base, size_t *allocated, size_t *resident, in base_stats_get() argument 486 assert(base->allocated <= base->resident); in base_stats_get() 488 *allocated = base->allocated; in base_stats_get()
|
| /freebsd-12-stable/contrib/ncurses/ncurses/tinfo/ |
| D | comp_scan.c | 166 static size_t allocated; in next_char() local 173 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()
|
| /freebsd-12-stable/crypto/openssl/doc/man3/ |
| D | SSL_alloc_buffers.pod | 21 control when buffers are freed and allocated. 27 to control where and how buffers are allocated. 46 The SSL_alloc_buffers() function returns 1 if the buffers have been allocated. 47 This value is also returned if the buffers had been allocated before calling
|
| /freebsd-12-stable/contrib/gcclibs/libcpp/ |
| D | line-map.c | 35 set->allocated = 0; in linemap_init() 97 if (set->used == set->allocated) in linemap_add() 99 set->allocated = 2 * set->allocated + 256; in linemap_add() 100 set->maps = XRESIZEVEC (struct line_map, set->maps, set->allocated); in linemap_add()
|