Home
last modified time | relevance | path

Searched refs:reallocarray (Results 1 – 25 of 322) sorted by relevance

12345678910>>...13

/openbsd-src/usr.bin/vmstat/
H A Ddkstats.c231 cur.dk_select = reallocarray(cur.dk_select, in dkreadstats()
233 cur.dk_rxfer = reallocarray(cur.dk_rxfer, in dkreadstats()
235 cur.dk_wxfer = reallocarray(cur.dk_wxfer, in dkreadstats()
237 cur.dk_seek = reallocarray(cur.dk_seek, in dkreadstats()
239 cur.dk_rbytes = reallocarray(cur.dk_rbytes, in dkreadstats()
241 cur.dk_wbytes = reallocarray(cur.dk_wbytes, in dkreadstats()
243 cur.dk_time = reallocarray(cur.dk_time, in dkreadstats()
245 last.dk_rxfer = reallocarray(last.dk_rxfer, in dkreadstats()
247 last.dk_wxfer = reallocarray(last.dk_wxfer, in dkreadstats()
249 last.dk_seek = reallocarray(last.dk_seek, in dkreadstats()
[all …]
/openbsd-src/lib/libedit/
H A Dchartype.c51 p = reallocarray(conv->cbuff, conv->csize, sizeof(char)); in ct_conv_buff_resize()
62 p = reallocarray(conv->wbuff, conv->wsize, sizeof(wchar_t)); in ct_conv_buff_resize()
148 wargv = reallocarray(NULL, argc + 1, sizeof(*wargv)); in ct_decode_argv()
217 buff = reallocarray(NULL, buffsize, sizeof(*buff)); in ct_visual_string()
225 p = reallocarray(buff, buffsize, sizeof(*buff)); in ct_visual_string()
238 p = reallocarray(buff, buffsize, sizeof(*buff)); in ct_visual_string()
H A Dtokenizer.c124 tok->argv = reallocarray(NULL, tok->amax, sizeof(*tok->argv)); in TYPE()
131 tok->wspace = reallocarray(NULL, WINCR, sizeof(*tok->wspace)); in TYPE()
399 Char *s = reallocarray(tok->wspace, size, sizeof(*s)); in FUN()
418 p = reallocarray(tok->argv, tok->amax, sizeof(*p)); in FUN()
/openbsd-src/lib/libc/stdlib/
H A Dreallocarray.c30 reallocarray(void *optr, size_t nmemb, size_t size) in reallocarray() function
39 DEF_WEAK(reallocarray);
H A Dsetenv.c74 P = reallocarray(lastenv, cnt + 2, sizeof(char *)); in putenv()
135 P = reallocarray(lastenv, cnt + 2, sizeof(char *)); in setenv()
H A Dicdb.c141 if ((db->entries = reallocarray(NULL, nentries, entrysize))) in icdb_new()
296 if (!(p = reallocarray(db->entries, amt, entrysize))) in icdb_add()
323 uint32_t *idxdata = reallocarray(db->idxdata[i], in icdb_rehash()
/openbsd-src/lib/libcrypto/ec/
H A Dec_mult.c
/openbsd-src/usr.bin/yacc/
H A Dreader.c870 tag_table = reallocarray(tag_table, tagmax, sizeof(char *)); in get_tag()
1099 plhs = reallocarray(NULL, maxrules, sizeof(bucket *)); in initialize_grammar()
1105 rprec = reallocarray(NULL, maxrules, sizeof(short)); in initialize_grammar()
1111 rassoc = reallocarray(NULL, maxrules, sizeof(char)); in initialize_grammar()
1126 pitem = reallocarray(pitem, maxitems, sizeof(bucket *)); in expand_items()
1137 plhs = reallocarray(plhs, maxrules, sizeof(bucket *)); in expand_rules()
1140 rprec = reallocarray(rprec, maxrules, sizeof(short)); in expand_rules()
1143 rassoc = reallocarray(rassoc, maxrules, sizeof(char)); in expand_rules()
1642 symbol_name = reallocarray(NULL, nsyms, sizeof(char *)); in pack_symbols()
1645 symbol_value = reallocarray(NULL, nsyms, sizeof(short)); in pack_symbols()
[all …]
/openbsd-src/games/atc/
H A Dgrammar.y167 sp->beacon = reallocarray(sp->beacon,
193 sp->exit = reallocarray(sp->exit,
222 sp->airport = reallocarray(sp->airport,
249 sp->line = reallocarray(sp->line,
/openbsd-src/lib/libc/gen/
H A Dgetusershell.c99 shells = reallocarray(NULL, nalloc, sizeof (char *)); in initshells()
111 char **new = reallocarray(shells, nalloc * 2, sizeof(char *)); in initshells()
/openbsd-src/usr.bin/find/
H A Dmisc.c68 newstore = reallocarray(*store, len, 2); in brace_subst()
136 if ((p = reallocarray(oldp, sz1, sz2)) != NULL) in ereallocarray()
/openbsd-src/lib/libevent/
H A Dpoll.c223 tmp_event_set = reallocarray(pop->event_set, in poll_add()
231 tmp_event_r_back = reallocarray(pop->event_r_back, in poll_add()
240 tmp_event_w_back = reallocarray(pop->event_w_back, in poll_add()
261 tmp_idxplus1_by_fd = reallocarray(pop->idxplus1_by_fd, in poll_add()
/openbsd-src/lib/libcrypto/stack/
H A Dstack.c93 s = reallocarray(ret->data, sk->num_alloc, sizeof(char *)); in sk_dup()
127 if ((ret->data = reallocarray(NULL, MIN_NODES, sizeof(char *))) == NULL) in sk_new()
151 s = reallocarray(st->data, st->num_alloc, 2 * sizeof(char *)); in sk_insert()
/openbsd-src/libexec/spamd/
H A Dsdl.c134 tmp = reallocarray(blacklists, blc + 128, in sdl_add()
157 blacklists[idx].v4.addrs = reallocarray(NULL, nv4, in sdl_add()
197 blacklists[idx].v6.addrs = reallocarray(NULL, nv6, in sdl_add()
360 tmp = reallocarray(sd, l + 128, sizeof(struct sdlist *)); \
/openbsd-src/usr.sbin/cron/
H A Denv.c63 p = reallocarray(NULL, count+1, sizeof(char *)); /* 1 for the NULL */ in env_copy()
130 p = reallocarray(envp, count + 2, sizeof(char **)); in env_set()
/openbsd-src/lib/libc/string/
H A Dwcsdup.c25 copy = reallocarray(NULL, len, sizeof(wchar_t)); in wcsdup()
/openbsd-src/libexec/ld.so/ldconfig/
H A Dldconfig_path.c27 return reallocarray(ptr, cnt, num); in _dl_reallocarray()
/openbsd-src/lib/libc/rpc/
H A Dsvc_run.c53 newp = reallocarray(pfd, svc_max_pollfd, sizeof(*pfd)); in svc_run()
/openbsd-src/usr.bin/awk/
H A Db.c131 setvec = (int *) reallocarray(setvec, maxsetvec, sizeof(*setvec)); in allocsetvec()
132 tmpset = (int *) reallocarray(tmpset, maxsetvec, sizeof(*tmpset)); in allocsetvec()
140 setvec = (int *) reallocarray(setvec, maxsetvec, 4 * sizeof(*setvec)); in resizesetvec()
141 tmpset = (int *) reallocarray(tmpset, maxsetvec, 4 * sizeof(*tmpset)); in resizesetvec()
160 p = (gtt *) reallocarray(f->gototab, new_count, sizeof(gtt)); in resize_state()
165 p2 = (uschar *) reallocarray(f->out, new_count, sizeof(f->out[0])); in resize_state()
170 p3 = (int **) reallocarray(f->posns, new_count, sizeof(f->posns[0])); in resize_state()
454 buf = (int *) reallocarray(buf, bufsz, 2 * sizeof(int)); in cclenter()
467 buf = (int *) reallocarray(buf, bufsz, 2 * sizeof(int)); in cclenter()
/openbsd-src/sbin/ncheck_ffs/
H A Dncheck_ffs.c169 newicache = reallocarray(icache, maxicache, sizeof(*icache)); in cacheino()
252 (itab = reallocarray(NULL, sblock->fs_ipg, dsize)) == NULL) in getino()
333 newilist = reallocarray(ilist, ninodes + 1, sizeof(*ilist)); in addinode()
636 if ((newbuf = reallocarray(buf, size, 2)) == NULL) in format_entry()
/openbsd-src/usr.bin/diff3/
H A Ddiff3prog.c593 p = reallocarray(d13, newsz, sizeof(struct diff)); in increase()
598 p = reallocarray(d23, newsz, sizeof(struct diff)); in increase()
603 p = reallocarray(de, newsz, sizeof(struct diff)); in increase()
608 q = reallocarray(overlap, newsz, sizeof(char)); in increase()
/openbsd-src/bin/csh/
H A Dalloc.c59 if ((ptr = reallocarray(p, c, n)) == NULL) { in xreallocarray()
/openbsd-src/sbin/unwind/libunbound/
H A Dconfig.h153 /* Define to 1 if you have the declaration of `reallocarray', and to 0 if you
510 /* If we have reallocarray(3) */
1347 #define reallocarray reallocarrayunbound
1348 void* reallocarray(void *ptr, size_t nmemb, size_t size);
1428 void *reallocarray(void *ptr, size_t nmemb, size_t size);
1331 #define reallocarray reallocarrayu global() macro
/openbsd-src/regress/sys/kern/fork-exit/
H A Dfork-exit.c138 thrs = reallocarray(NULL, threads, sizeof(pthread_t)); in create_threads()
296 rfds = reallocarray(NULL, procs, sizeof(int)); in main()
/openbsd-src/usr.bin/tr/
H A Dstr.c181 cp->set = reallocarray(NULL, NCHARS + 1, sizeof(*cp->set)); in genclass()
193 cp->set = reallocarray(cp->set, len, sizeof(*cp->set)); in genclass()

12345678910>>...13