Home
last modified time | relevance | path

Searched refs:xreallocarray (Results 1 – 24 of 24) sorted by relevance

/netbsd-src/bin/csh/
H A Dstr.c69 sdst = dst = xreallocarray(NULL, n + 1, sizeof(*dst)); in blk2short()
88 sdst = dst = xreallocarray(NULL, n + 1, sizeof(*dst)); in short2blk()
108 sdst = xreallocarray(NULL, (size_t)dstsize, sizeof(*sdst)); in str2short()
117 sdst = xreallocarray(sdst, (size_t)dstsize, sizeof(*sdst)); in str2short()
138 sdst = xreallocarray(NULL, dstsize, sizeof(*sdst)); in short2str()
146 sdst = xreallocarray(sdst, dstsize, sizeof(*sdst)); in short2str()
315 p = n = xreallocarray(NULL, (size_t)(p - s), sizeof(*n)); in s_strsave()
335 ep = xreallocarray(NULL, (size_t)((p - cp) + (q - dp) - 1), sizeof(*ep)); in s_strspl()
381 sdst = xreallocarray(NULL, dstsize, sizeof(*sdst)); in short2qstr()
391 sdst = xreallocarray(sdst, (size_t)dstsize, sizeof(*sdst)); in short2qstr()
[all …]
H A Dglob.c134 nv = vl = xreallocarray(NULL, sizeof(Char *), (size_t)size); in globbrace()
200 nv = xreallocarray(nv, (size_t)size, sizeof(Char *)); in globbrace()
253 nv = xreallocarray(nv, size, sizeof(Char *)); in expbrace()
282 nv = vl = xreallocarray(NULL, sizeof(Char *), size); in globexpand()
297 nv = xreallocarray(nv, size, sizeof(Char *)); in globexpand()
308 nv = xreallocarray(nv, size, sizeof(Char *)); in globexpand()
515 gargv = xreallocarray(NULL, sizeof(Char *), (size_t)gargsiz); in ginit()
594 pargv = xreallocarray(NULL, sizeof(Char *), (size_t)pargsiz); in dobackp()
780 pargv = xreallocarray(pargv, (size_t)pargsiz, sizeof(Char *)); in pword()
802 blk = xreallocarray(NULL, GLOBSPACE, sizeof(Char *)); in Gmatch()
[all …]
H A Ddir.c282 cwd = xreallocarray(NULL, (size_t)(Strlen(dcwd->di_name) + 3), in dnormalize()
392 dp = xreallocarray(NULL, in dgoto()
709 p1 = newcp = xreallocarray(NULL, in dcanon()
729 p1 = newcp = xreallocarray(NULL, in dcanon()
798 p1 = newcp = xreallocarray(NULL, in dcanon()
818 p1 = newcp = xreallocarray(NULL, in dcanon()
H A Dmisc.c75 r = p = xreallocarray(NULL, (size_t)(n - s), sizeof(*p)); in strsave()
192 ep = xreallocarray(NULL, (size_t)(((p - cp) + (q - dp) - 1), sizeof(*ep))); in strspl()
H A Dfile.c522 items = xreallocarray(items, sizeof(*items), maxitems); in tsearch()
524 items[numitems] = xreallocarray(NULL, in tsearch()
H A Dcsh.h89 #define xreallocarray(p, n, sz) Reallocarray(p, n, sz) macro
H A Dfunc.c981 name = xreallocarray(NULL, (size_t)(maxi + 1), sizeof(Char)); in dounsetenv()
/netbsd-src/external/bsd/tmux/dist/
H A Dxmalloc.c57 return xreallocarray(ptr, 1, size); in xrealloc()
61 xreallocarray(void *ptr, size_t nmemb, size_t size) in xreallocarray() function
H A Dxmalloc.h29 void *xreallocarray(void *, size_t, size_t);
H A Dcmd-source-file.c125 cdata->files = xreallocarray(cdata->files, cdata->nfiles + 1, in cmd_source_file_add()
H A Dwindow-tree.c192 data->item_list = xreallocarray(data->item_list, data->item_size + 1, in window_tree_add_item()
384 l = xreallocarray(l, n + 1, sizeof *l); in window_tree_build_window()
436 l = xreallocarray(l, n + 1, sizeof *l); in window_tree_build_session()
482 l = xreallocarray(l, n + 1, sizeof *l); in window_tree_build()
H A Dcfg.c217 cfg_causes = xreallocarray(cfg_causes, cfg_ncauses, sizeof *cfg_causes); in cfg_add_cause()
H A Dpaste.c336 buf = xreallocarray(NULL, len, 4 + 4); in paste_make_sample()
H A Dwindow-client.c113 data->item_list = xreallocarray(data->item_list, data->item_size + 1, in window_client_add_item()
H A Dwindow-customize.c215 data->item_list = xreallocarray(data->item_list, data->item_size + 1, in window_customize_add_item()
363 *list = xreallocarray(*list, (*size) + 1, sizeof **list); in window_customize_find_user_options()
H A Dcmd-find.c188 slist = xreallocarray(slist, ssize + 1, sizeof *slist); in cmd_find_best_session_with_window()
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dxmalloc.h22 void *xreallocarray(void *, size_t, size_t);
H A Dxmalloc.c63 xreallocarray(void *ptr, size_t nmemb, size_t size) in xreallocarray() function
H A Dnamespace.h94 #define xreallocarray ssh_xreallocarray macro
H A Dauth-pam.c896 **prompts = xreallocarray(**prompts, 1, len); in sshpam_query()
907 **prompts = xreallocarray(**prompts, 1, len); in sshpam_query()
H A Dauth2-pubkey.c710 av = xreallocarray(av, ac + 2, sizeof(*av)); in user_key_command_allowed2()
H A Dsftp-server.c342 handles = xreallocarray(handles, num_handles, sizeof(Handle)); in handle_new()
1139 stats = xreallocarray(stats, nstats, sizeof(Stat)); in process_readdir()
H A Dmisc.c1997 argv = xreallocarray(argv, (argc + 2), sizeof(*argv)); in argv_split()
2283 env = (*envp) = xreallocarray(env, envsize, sizeof(char *)); in child_set_env()
H A Dsftp-client.c799 *dir = xreallocarray(*dir, ents + 2, sizeof(**dir)); in sftp_lsreaddir()