Home
last modified time | relevance | path

Searched refs:realloc (Results 1 – 25 of 834) sorted by relevance

12345678910>>...34

/freebsd-14-stable/contrib/ldns/compat/
HDrealloc.c7 #undef realloc
11 void *realloc (void*, size_t);
28 return realloc(ptr, n); in rpl_realloc()
/freebsd-14-stable/tools/regression/redzone9/
HDredzone.c73 p = realloc(p, 10, M_TEMP, M_NOWAIT); in redzone_sysctl()
82 p = realloc(p, 10, M_TEMP, M_NOWAIT); in redzone_sysctl()
91 p = realloc(p, 8192, M_TEMP, M_NOWAIT); in redzone_sysctl()
100 p = realloc(p, 8192, M_TEMP, M_NOWAIT); in redzone_sysctl()
/freebsd-14-stable/contrib/llvm-project/compiler-rt/lib/asan/
HDasan_malloc_linux.cpp79 INTERCEPTOR(void*, realloc, void *ptr, uptr size) { in INTERCEPTOR() argument
170 void *(*realloc)(void *oldMem, uptr bytes); member
184 void *(*realloc)(void *oldMem, uptr bytes); member
190 WRAP(realloc), WRAP(memalign), WRAP(malloc_usable_size)};
195 WRAP(posix_memalign), WRAP(pvalloc), WRAP(realloc),
HDasan_malloc_win.cpp134 void *realloc(void *ptr, size_t size) { in realloc() function
147 return realloc(ptr, size); in _realloc_base()
499 TryToOverrideFunction("realloc", (uptr)realloc); in ReplaceSystemMalloc()
500 TryToOverrideFunction("_realloc_base", (uptr)realloc); in ReplaceSystemMalloc()
501 TryToOverrideFunction("_realloc_crt", (uptr)realloc); in ReplaceSystemMalloc()
/freebsd-14-stable/usr.bin/indent/
HDindent_globs.h58 codebuf = (char *) realloc(codebuf, nsize); \
74 combuf = (char *) realloc(combuf, nsize); \
87 labbuf = (char *) realloc(labbuf, nsize); \
98 tokenbuf = (char *) realloc(tokenbuf, nsize); \
/freebsd-14-stable/contrib/pf/libevent/
HDselect.c231 if ((readset_in = realloc(sop->event_readset_in, fdsz)) == NULL) in select_resize()
234 if ((readset_out = realloc(sop->event_readset_out, fdsz)) == NULL) in select_resize()
237 if ((writeset_in = realloc(sop->event_writeset_in, fdsz)) == NULL) in select_resize()
240 if ((writeset_out = realloc(sop->event_writeset_out, fdsz)) == NULL) in select_resize()
243 if ((r_by_fd = realloc(sop->event_r_by_fd, in select_resize()
247 if ((w_by_fd = realloc(sop->event_w_by_fd, in select_resize()
HDpoll.c239 tmp_event_set = realloc(pop->event_set, in poll_add()
247 tmp_event_r_back = realloc(pop->event_r_back, in poll_add()
256 tmp_event_w_back = realloc(pop->event_w_back, in poll_add()
278 realloc(pop->idxplus1_by_fd, new_count * sizeof(int)); in poll_add()
/freebsd-14-stable/crypto/heimdal/lib/roken/
HDrealloc.c35 #undef realloc
45 return realloc(ptr, size); in rk_realloc()
HDgetcap.c423 record = realloc(record, newsize); in getent()
565 record = realloc(record, newsize); in getent()
605 realloc(record, (size_t)(rp - record))) == NULL) { in getent()
946 if ((nmem = realloc(mem, size + SFRAG)) == NULL) { in cgetstr()
963 if ((nmem = realloc(mem, (size_t)(mp - mem))) == NULL) { in cgetstr()
1026 if ((mem = realloc(mem, size + SFRAG)) == NULL) in cgetustr()
1040 if ((mem = realloc(mem, (size_t)(mp - mem))) == NULL) in cgetustr()
/freebsd-14-stable/usr.bin/whereis/
HDwhereis.c121 *dirlist = realloc(*dirlist, (i + 1) * sizeof(char *)); in scanopts()
208 *cppp = realloc(*cppp, (*ip + 2) * sizeof(char *)); in decolonify()
278 bindirs = realloc(bindirs, (nele + 2) * sizeof(char *)); in defaults()
365 sourcedirs = realloc(sourcedirs, in defaults()
461 bin = realloc(bin, in main()
533 man = realloc(man, in main()
572 src = realloc(src, in main()
640 src = realloc(src, in main()
/freebsd-14-stable/contrib/elftoolchain/libdwarf/
HDlibdwarf_rw.c207 *block = realloc(*block, (size_t) *size); in _dwarf_write_lsb_alloc()
263 *block = realloc(*block, (size_t) *size); in _dwarf_write_msb_alloc()
332 *block = realloc(*block, (size_t) *size); in _dwarf_write_sleb128_alloc()
395 *block = realloc(*block, (size_t) *size); in _dwarf_write_uleb128_alloc()
489 *block = realloc(*block, (size_t) *size); in _dwarf_write_string_alloc()
533 *block = realloc(*block, (size_t) *size); in _dwarf_write_block_alloc()
564 *block = realloc(*block, (size_t) *size); in _dwarf_write_padding_alloc()
/freebsd-14-stable/crypto/openssh/openbsd-compat/
HDbsd-malloc.c20 #undef realloc
55 return realloc(ptr, size); in rpl_realloc()
/freebsd-14-stable/contrib/libucl/klib/
HDkvec.h66 type *_tp = (type*)realloc((v).a, sizeof(type) * (s)); \
78 type *_tp = (type*)realloc((v).a, sizeof(type) * _ts); \
128 #define kv_resize(type, v, s) ((v).m = (s), (v).a = (type*)realloc((v).a, sizeof(type) * (v).m))
131 (v).a = (type*)realloc((v).a, sizeof(type) * (v).m))
/freebsd-14-stable/contrib/llvm-project/compiler-rt/lib/nsan/
HDnsan_malloc_linux.cpp62 INTERCEPTOR(void *, realloc, void *ptr, uptr size) { in INTERCEPTOR() argument
65 void *res = REAL(realloc)(ptr, size); in INTERCEPTOR()
112 INTERCEPT_FUNCTION(realloc); in InitializeMallocInterceptors()
/freebsd-14-stable/contrib/sendmail/libsm/
HDheap.c157 newptr = realloc(ptr, MALLOC_SIZE(size));
184 newptr = realloc(ptr, MALLOC_SIZE(size));
540 newptr = realloc(ptr, MALLOC_SIZE(size));
562 newptr = realloc(ptr, MALLOC_SIZE(size));
608 newptr = realloc(ptr, MALLOC_SIZE(size));
631 newptr = realloc(ptr, MALLOC_SIZE(size));
/freebsd-14-stable/lib/libc/net/
HDnscache.c88 cache_data->key = realloc(cache_data->key, in __nss_common_cache_read()
118 buffer = (char *)realloc(buffer, buffer_size); in __nss_common_cache_read()
204 buffer = (char *)realloc(buffer, buffer_size); in __nss_common_cache_write()
299 buffer = (char *)realloc(buffer, buffer_size); in __nss_mp_cache_read()
375 buffer = (char *)realloc(buffer, buffer_size); in __nss_mp_cache_write()
/freebsd-14-stable/contrib/byacc/
HDmstring.c47 char *new_ptr = realloc(buf_ptr, (buf_len * 3) / 2); in msprintf()
74 if ((new_base = realloc(s->base, nl))) in msprintf()
101 if ((s->base = realloc(s->base, len + len + TAIL))) in mputchar()
/freebsd-14-stable/sys/contrib/ck/src/
HDck_array.c56 if (allocator->realloc == NULL || in ck_array_init()
89 target = array->allocator->realloc(target, in ck_array_put()
112 target = array->allocator->realloc(target, in ck_array_put()
/freebsd-14-stable/lib/libc/db/recno/
HDrec_utils.c69 p = realloc(t->bt_rkey.data, sizeof(recno_t)); in __rec_ret()
97 p = realloc(t->bt_rdata.data, rl->dsize + 1); in __rec_ret()
/freebsd-14-stable/usr.sbin/rpc.statd/
HDstatd.c106 hosts_bak = realloc(hosts, nhosts * sizeof(char *)); in main()
167 hosts_bak = realloc(hosts, (nhosts + 2) * in main()
180 hosts_bak = realloc(hosts, (nhosts + 1) * sizeof(char *)); in main()
246 port_list = realloc(port_list, in main()
365 sock_fd = realloc(sock_fd, (sock_fdcnt + 1) * sizeof(int)); in create_service()
/freebsd-14-stable/contrib/lib9p/sbuf/
HDsbuf.c61 s->s_buf = realloc(s->s_buf, (size_t)s->s_capacity); in sbuf_cat()
97 s->s_buf = realloc(s->s_buf, (size_t)s->s_capacity); in sbuf_vprintf()
/freebsd-14-stable/contrib/ntp/libjsmn/example/
HDjsondump.c85 js = realloc(js, jslen + r + 1); in main()
98 tok = realloc(tok, sizeof(*tok) * tokcount); in main()
/freebsd-14-stable/contrib/netbsd-tests/lib/libcurses/slave/
HDslave.c78 if ((tmpbuf = realloc(cmdbuf, maxlen)) == NULL) in process_commands()
98 tmpargs = realloc(args, in process_commands()
/freebsd-14-stable/usr.bin/col/
HDcol.c318 if ((l->l_line = realloc(l->l_line, in main()
451 if ((sorted = realloc(sorted, in flush_line()
457 if ((count = realloc(count, in flush_line()
569 if ((l = realloc(NULL, sizeof(LINE) * NALLOC)) == NULL) in alloc_line()
/freebsd-14-stable/usr.sbin/rpc.lockd/
HDlockd.c151 hosts_bak = realloc(hosts, nhosts * sizeof(char *)); in main()
234 hosts_bak = realloc(hosts, (nhosts + 2) * in main()
247 hosts_bak = realloc(hosts, (nhosts + 1) * sizeof(char *)); in main()
377 port_list = realloc(port_list, in main()
542 sock_fd = realloc(sock_fd, (sock_fdcnt + 1) * sizeof(int)); in create_service()
669 addrs = realloc(addrs, 2 * (naddrs + 1) * sizeof(char *)); in create_service()

12345678910>>...34