Home
last modified time | relevance | path

Searched refs:allocated (Results 1 – 25 of 471) sorted by relevance

12345678910>>...19

/freebsd-12.1/contrib/libarchive/libarchive/
H A Darchive_write_disk_set_standard_lookup.c127 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 …]
/freebsd-12.1/contrib/gdb/gdb/
H A Denviron.c38 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.1/contrib/gcclibs/libgomp/
H A Denv.c191 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.1/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_symbolizer_libbacktrace.cc45 uptr size, allocated; member
52 if (needed > data->allocated) { in CplusV3DemangleCallback()
53 data->allocated *= 2; in CplusV3DemangleCallback()
54 if (needed > data->allocated) in CplusV3DemangleCallback()
55 data->allocated = needed; in CplusV3DemangleCallback()
56 char *buf = (char *)InternalAlloc(data->allocated); in CplusV3DemangleCallback()
73 data.allocated = 0; in CplusV3Demangle()
76 if (data.size + 64 > data.allocated) in CplusV3Demangle()
H A Dsanitizer_common_libcdep.cc55 stack_depot_stats->allocated) { in BackgroundThread()
59 stack_depot_stats->allocated >> 20); in BackgroundThread()
60 prev_reported_stack_depot_size = stack_depot_stats->allocated; in BackgroundThread()
/freebsd-12.1/lib/libthr/thread/
H A Dthr_spec.c72 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.1/sys/crypto/via/
H A Dpadlock_cipher.c170 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.1/contrib/gcc/
H A Dvarray.c40 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()
H A Dggc-zone.c398 size_t allocated; member
1230 zone->allocated += size; in ggc_alloc_zone_stat()
1602 size_t allocated = 0; in sweep_pages() local
1629 allocated += lp->bytes; in sweep_pages()
1763 zone->allocated = allocated; in sweep_pages()
1805 zone->allocated = 0; in ggc_collect_1()
1871 allocated += zone->allocated; in ggc_collect()
2001 allocated = in_use = 0; in ggc_print_statistics()
2008 allocated += large_page->bytes; in ggc_print_statistics()
2033 SCALE (allocated), LABEL (allocated), in ggc_print_statistics()
[all …]
H A Dggc-common.c797 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()
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()
1000 (d->allocated + d->overhead - d->freed - d->collected) * 100.0 in dump_ggc_loc_statistics()
[all …]
H A Dalloc-pool.c72 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.1/contrib/compiler-rt/lib/msan/
H A Dmsan_allocator.cc154 void *allocated; in MsanAllocate() local
157 allocated = allocator.Allocate(cache, size, alignment); in MsanAllocate()
161 allocated = allocator.Allocate(cache, size, alignment); in MsanAllocate()
163 if (UNLIKELY(!allocated)) { in MsanAllocate()
170 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in MsanAllocate()
173 __msan_clear_and_unpoison(allocated, size); in MsanAllocate()
175 __msan_poison(allocated, size); in MsanAllocate()
179 __msan_set_origin(allocated, size, o.raw_id()); in MsanAllocate()
182 MSAN_MALLOC_HOOK(allocated, size); in MsanAllocate()
183 return allocated; in MsanAllocate()
/freebsd-12.1/contrib/gcclibs/libiberty/
H A Dxmalloc.c121 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 Ddyn-string.c72 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.1/contrib/binutils/libiberty/
H A Dxmalloc.c121 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 Ddyn-string.c72 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.1/crypto/heimdal/lib/ntlm/
H A Dntlm.c100 uint16_t allocated; member
614 domain.allocated = domain.length; in heim_ntlm_encode_type1()
617 domain.allocated = 0; in heim_ntlm_encode_type1()
626 hostname.allocated = 0; in heim_ntlm_encode_type1()
861 if (lm.allocated) in heim_ntlm_decode_type3()
864 if (ntlm.allocated) in heim_ntlm_decode_type3()
867 if (target.allocated) in heim_ntlm_decode_type3()
870 if (username.allocated) in heim_ntlm_decode_type3()
873 if (ws.allocated) in heim_ntlm_decode_type3()
953 ws.allocated = ws.length; in heim_ntlm_encode_type3()
[all …]
/freebsd-12.1/sys/crypto/armv8/
H A Darmv8_crypto.c337 int *allocated) in armv8_crypto_cipher_alloc() argument
357 *allocated = 0; in armv8_crypto_cipher_alloc()
364 *allocated = 1; in armv8_crypto_cipher_alloc()
368 *allocated = 0; in armv8_crypto_cipher_alloc()
379 int allocated, i; in armv8_crypto_cipher_process() local
385 buf = armv8_crypto_cipher_alloc(enccrd, crp, &allocated); in armv8_crypto_cipher_process()
436 if (allocated) in armv8_crypto_cipher_process()
444 if (allocated) { in armv8_crypto_cipher_process()
/freebsd-12.1/crypto/openssl/doc/man3/
H A DSSL_alloc_buffers.pod21 control when buffers are freed and allocated.
25 can be used to make sure the buffers are pre-allocated. This can be used to
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.1/contrib/compiler-rt/lib/hwasan/
H A Dhwasan_allocator.cc150 void *allocated; in HwasanAllocate() local
152 allocated = allocator.Allocate(t->allocator_cache(), size, alignment); in HwasanAllocate()
156 allocated = allocator.Allocate(cache, size, alignment); in HwasanAllocate()
158 if (UNLIKELY(!allocated)) { in HwasanAllocate()
165 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in HwasanAllocate()
170 internal_memset(allocated, 0, size); in HwasanAllocate()
173 internal_memset(allocated, flags()->malloc_fill_byte, fill_size); in HwasanAllocate()
176 internal_memcpy(reinterpret_cast<u8 *>(allocated) + orig_size, tail_magic, in HwasanAllocate()
179 void *user_ptr = allocated; in HwasanAllocate()
/freebsd-12.1/sys/dev/ixl/
H A Dixl_pf_qmgr.c80 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.1/contrib/googletest/googletest/samples/
H A Dsample10_unittest.cc62 static int allocated() { return allocated_; } in allocated() function in __anond28566060111::Water
78 initially_allocated_ = Water::allocated(); in OnTestStart()
83 int difference = Water::allocated() - initially_allocated_; in OnTestEnd()
/freebsd-12.1/contrib/jemalloc/src/
H A Dbase.c211 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.1/contrib/ncurses/ncurses/tinfo/
H A Dcomp_scan.c166 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.1/contrib/gcclibs/libcpp/
H A Dline-map.c35 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()

12345678910>>...19