Home
last modified time | relevance | path

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

12345678910>>...34

/freebsd/contrib/ldns/compat/
H A Drealloc.c7 #undef realloc
11 void *realloc (void*, size_t);
28 return realloc(ptr, n); in rpl_realloc()
/freebsd/tools/regression/redzone9/
H A Dredzone.c72 p = realloc(p, 10, M_TEMP, M_NOWAIT); in redzone_sysctl()
81 p = realloc(p, 10, M_TEMP, M_NOWAIT); in redzone_sysctl()
90 p = realloc(p, 8192, M_TEMP, M_NOWAIT); in redzone_sysctl()
99 p = realloc(p, 8192, M_TEMP, M_NOWAIT); in redzone_sysctl()
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_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),
/freebsd/usr.bin/indent/
H A Dindent_globs.h56 codebuf = (char *) realloc(codebuf, nsize); \
72 combuf = (char *) realloc(combuf, nsize); \
85 labbuf = (char *) realloc(labbuf, nsize); \
96 tokenbuf = (char *) realloc(tokenbuf, nsize); \
/freebsd/contrib/pf/libevent/
H A Dselect.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()
H A Dpoll.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/usr.bin/whereis/
H A Dwhereis.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/crypto/heimdal/lib/roken/
H A Drealloc.c35 #undef realloc
45 return realloc(ptr, size); in rk_realloc()
H A Dgetcap.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/contrib/elftoolchain/libdwarf/
H A Dlibdwarf_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/contrib/libucl/klib/
H A Dkvec.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/crypto/openssh/openbsd-compat/
H A Dbsd-malloc.c20 #undef realloc
55 return realloc(ptr, size); in rpl_realloc()
/freebsd/contrib/llvm-project/compiler-rt/lib/nsan/
H A Dnsan_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/contrib/sendmail/libsm/
H A Dheap.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/lib/libc/net/
H A Dnscache.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/contrib/byacc/
H A Dmstring.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/sys/contrib/ck/src/
H A Dck_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/usr.sbin/rpc.statd/
H A Dstatd.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/lib/libc/db/recno/
H A Drec_utils.c66 p = realloc(t->bt_rkey.data, sizeof(recno_t)); in __rec_ret()
94 p = realloc(t->bt_rdata.data, rl->dsize + 1); in __rec_ret()
/freebsd/contrib/lib9p/sbuf/
H A Dsbuf.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/usr.bin/col/
H A Dcol.c305 if ((l->l_line = realloc(l->l_line, in main()
438 if ((sorted = realloc(sorted, in flush_line()
444 if ((count = realloc(count, in flush_line()
556 if ((l = realloc(NULL, sizeof(LINE) * NALLOC)) == NULL) in alloc_line()
/freebsd/contrib/netbsd-tests/lib/libcurses/slave/
H A Dslave.c78 if ((tmpbuf = realloc(cmdbuf, maxlen)) == NULL) in process_commands()
98 tmpargs = realloc(args, in process_commands()
/freebsd/contrib/ntp/libjsmn/example/
H A Djsondump.c85 js = realloc(js, jslen + r + 1); in main()
98 tok = realloc(tok, sizeof(*tok) * tokcount); in main()
/freebsd/usr.sbin/rpc.lockd/
H A Dlockd.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()
/freebsd/contrib/expat/tests/
H A Dmemcheck.c150 entry->allocation = realloc(ptr, size); in tracking_realloc()
167 void *const reallocated = realloc(ptr, size); in tracking_realloc()

12345678910>>...34