/netbsd-src/bin/csh/ |
H A D | str.c | 69 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 D | glob.c | 134 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 D | dir.c | 282 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 D | misc.c | 75 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 D | file.c | 522 items = xreallocarray(items, sizeof(*items), maxitems); in tsearch() 524 items[numitems] = xreallocarray(NULL, in tsearch()
|
H A D | csh.h | 89 #define xreallocarray(p, n, sz) Reallocarray(p, n, sz) macro
|
H A D | func.c | 981 name = xreallocarray(NULL, (size_t)(maxi + 1), sizeof(Char)); in dounsetenv()
|
/netbsd-src/external/bsd/tmux/dist/ |
H A D | xmalloc.c | 57 return xreallocarray(ptr, 1, size); in xrealloc() 61 xreallocarray(void *ptr, size_t nmemb, size_t size) in xreallocarray() function
|
H A D | xmalloc.h | 29 void *xreallocarray(void *, size_t, size_t);
|
H A D | cmd-source-file.c | 125 cdata->files = xreallocarray(cdata->files, cdata->nfiles + 1, in cmd_source_file_add()
|
H A D | window-tree.c | 192 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 D | cfg.c | 217 cfg_causes = xreallocarray(cfg_causes, cfg_ncauses, sizeof *cfg_causes); in cfg_add_cause()
|
H A D | paste.c | 336 buf = xreallocarray(NULL, len, 4 + 4); in paste_make_sample()
|
H A D | window-client.c | 113 data->item_list = xreallocarray(data->item_list, data->item_size + 1, in window_client_add_item()
|
H A D | window-customize.c | 215 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 D | cmd-find.c | 188 slist = xreallocarray(slist, ssize + 1, sizeof *slist); in cmd_find_best_session_with_window()
|
/netbsd-src/crypto/external/bsd/openssh/dist/ |
H A D | xmalloc.h | 22 void *xreallocarray(void *, size_t, size_t);
|
H A D | xmalloc.c | 63 xreallocarray(void *ptr, size_t nmemb, size_t size) in xreallocarray() function
|
H A D | namespace.h | 94 #define xreallocarray ssh_xreallocarray macro
|
H A D | auth-pam.c | 896 **prompts = xreallocarray(**prompts, 1, len); in sshpam_query() 907 **prompts = xreallocarray(**prompts, 1, len); in sshpam_query()
|
H A D | auth2-pubkey.c | 710 av = xreallocarray(av, ac + 2, sizeof(*av)); in user_key_command_allowed2()
|
H A D | sftp-server.c | 342 handles = xreallocarray(handles, num_handles, sizeof(Handle)); in handle_new() 1139 stats = xreallocarray(stats, nstats, sizeof(Stat)); in process_readdir()
|
H A D | misc.c | 1997 argv = xreallocarray(argv, (argc + 2), sizeof(*argv)); in argv_split() 2283 env = (*envp) = xreallocarray(env, envsize, sizeof(char *)); in child_set_env()
|
H A D | sftp-client.c | 799 *dir = xreallocarray(*dir, ents + 2, sizeof(**dir)); in sftp_lsreaddir()
|