/external/mksh/src/ |
D | eval.c | 119 s = pushs(SWSTR, ATEMP); in substitute() 125 afree(s, ATEMP); in substitute() 260 Xinit(ds, dp, 128, ATEMP); in expand() 389 beg = wdcopy(sp, ATEMP); in expand() 396 afree(beg, ATEMP); in expand() 409 newst = alloc(sizeof(SubType), ATEMP); in expand() 449 beg = wdcopy(sp, ATEMP); in expand() 467 afree(stg, ATEMP); in expand() 471 afree(stg, ATEMP); in expand() 473 afree(beg, ATEMP); in expand() [all …]
|
D | syn.c | 198 yylval.cp = wdcopy(IONDELIM_delim, ATEMP); in synio() 217 nextiop = alloc(sizeof(*iop), ATEMP); in synio() 218 nextiop->ioname = cp = alloc(3, ATEMP); in synio() 272 iops = alloc2((NUFILE + 1), sizeof(struct ioword *), ATEMP); in get_command() 280 afree(iops, ATEMP); in get_command() 347 XPput(args, wdcopy(builtin_cmd, ATEMP)); in get_command() 348 XPput(args, wdcopy(setA_cmd0, ATEMP)); in get_command() 349 XPput(args, wdcopy(setA_cmd1, ATEMP)); in get_command() 351 XPput(args, wdcopy(setA_cmd2, ATEMP)); in get_command() 364 afree(t, ATEMP); in get_command() [all …]
|
D | misc.c | 239 strndupx(cp, m, cp - m, ATEMP); in getoptions() 580 cp = alloc(strlen((const void *)sp) + 1, ATEMP); in simplify_gmatch_pattern() 669 char *t = len <= sizeof(tbuf) ? tbuf : alloc(len, ATEMP); in gmatchx() 683 afree(pnew, ATEMP); in gmatchx() 1255 str = alloc(max_oct, ATEMP); in print_columns() 1306 afree(str, ATEMP); in print_columns() 1383 strdupx(rv, cp, ATEMP); in ksh_get_wd() 1390 if (!getcwd((rv = alloc(PATH_MAX + 1, ATEMP)), PATH_MAX)) { in ksh_get_wd() 1391 afree(rv, ATEMP); in ksh_get_wd() 1424 strdupx(ipath, upath, ATEMP); in do_realpath() [all …]
|
D | var.c | 71 l = alloc(sizeof(struct block), ATEMP); in newblock() 113 afree(l, ATEMP); in popblock() 190 strndupx(vn, n, p - n, ATEMP); in array_index_calc() 193 afree(vn, ATEMP); in array_index_calc() 200 afree(ap, ATEMP); in array_index_calc() 213 strndupx(tmp, p + 1, len - 2, ATEMP); in array_index_calc() 215 afree(tmp, ATEMP); in array_index_calc() 216 strndupx(n, n, p - n, ATEMP); in array_index_calc() 219 afree(sub, ATEMP); in array_index_calc() 258 vp->areap = ATEMP; in isglobal() [all …]
|
D | os2.c | 235 strdupx(cp, val, ATEMP); in setextlibpath() 243 afree(cp, ATEMP); in setextlibpath() 306 x_name = alloc(x_namelen, ATEMP); in access_stat_ex() 315 afree(x_name, ATEMP); in access_stat_ex() 357 strdupx(real_name, x_name, ATEMP); in real_exec_name() 400 strdupx(result, rsp_name_arg, ATEMP); in make_response_file() 474 afree(rsp_name_arg, ATEMP); in execve()
|
D | lex.c | 166 ri = alloc(sizeof(struct sretrace_info), ATEMP); \ 167 Xinit(ri->xs, ri->xp, 64, ATEMP); \ 178 afree(dp, ATEMP); \ 208 Xinit(ws, wp, 64, ATEMP); in yylex() 285 afree(tmp, ATEMP); in yylex() 643 afree(sp, ATEMP); in yylex() 862 afree(sp, ATEMP); in yylex() 899 struct ioword *iop = alloc(sizeof(struct ioword), ATEMP); in yylex() 944 afree(iop, ATEMP); in yylex() 1029 afree(yylval.cp, ATEMP); in yylex() [all …]
|
D | expr.c | 590 strndupx(tvar, es->tokp, cp - es->tokp, ATEMP); in exprtoken() 592 afree(tvar, ATEMP); in exprtoken() 599 strndupx(tvar, es->tokp, cp - es->tokp, ATEMP); in exprtoken() 613 tvar = alloc(c + /* NUL */ 1, ATEMP); in exprtoken() 623 strndupx(tvar, es->tokp, --cp - es->tokp, ATEMP); in exprtoken() 631 afree(tvar, ATEMP); in exprtoken() 666 vp = alloc(offsetof(struct tbl, name[0]) + vsize, ATEMP); in tempvar() 670 vp->areap = ATEMP; in tempvar()
|
D | funcs.c | 281 afree(allocd, ATEMP); in c_pwd() 457 Xinit(xs, xp, 128, ATEMP); in c_print() 517 Xinit(xs, xp, 128, ATEMP); in c_print() 534 afree(XPptrv(po.words)[w], ATEMP); in c_print() 857 strndupx(xalias, alias, val++ - alias, ATEMP); in c_alias() 862 afree(xalias, ATEMP); in c_alias() 906 afree(xalias, ATEMP); in c_alias() 1333 strdupx(up, *wp, ATEMP); in c_bind() 1342 afree(up, ATEMP); in c_bind() 1686 strdupx(allocd, *wp, ATEMP); in c_read() [all …]
|
D | histrap.c | 112 editor = alloc(len + 4, ATEMP); in c_fc() 171 strdupx(pat, *wp, ATEMP); in c_fc() 190 strdupx(line, *hp, ATEMP); in c_fc() 200 Xinit(xs, xp, 128, ATEMP); in c_fc() 223 return (hist_execute(line, ATEMP)); in c_fc() 295 tf = maketemp(ATEMP, TT_HIST_EDIT, &e->temps); in c_fc() 817 afree(nhname, ATEMP); in hist_init() 1134 strdupx(as, cs, ATEMP); in gettrap() 1159 afree(as, ATEMP); in gettrap()
|
D | main.c | 210 strdupx(x, cx, ATEMP); in isuc() 220 afree(x, ATEMP); in isuc() 496 s = pushs(SSTRINGCMDLINE, ATEMP); in main_init() 515 s = pushs(SFILE, ATEMP); in main_init() 543 s = pushs(SSTDIN, ATEMP); in main_init() 777 s = pushs(SFILE, ATEMP); in include() 779 strdupx(s->file, name, ATEMP); in include() 797 s = pushs(SSTRING, ATEMP); in command() 999 cp = alloc(sizeof(struct env) - sizeof(ALLOC_ITEM), ATEMP); in newenv() 1097 afree(cp + sizeof(ALLOC_ITEM), ATEMP); in quitenv() [all …]
|
D | shf.c | 58 shf = alloc(sizeof(struct shf) + bsize, ATEMP); in shf_open() 59 shf->areap = ATEMP; in shf_open() 136 shf->buf = alloc(bsize, ATEMP); in shf_fdopen() 141 shf = alloc(sizeof(struct shf) + bsize, ATEMP); in shf_fdopen() 145 shf->areap = ATEMP; in shf_fdopen() 204 shf = alloc(sizeof(struct shf), ATEMP); in shf_sopen() 207 shf->areap = ATEMP; in shf_sopen()
|
D | edit.c | 357 afree(s, ATEMP); in x_glob_hlp_tilde_and_rem_qchar() 399 s = pushs(SWSTR, ATEMP); in x_file_glob() 408 afree(s, ATEMP); in x_file_glob() 517 alloc2(nwords, sizeof(struct path_order_info), ATEMP); in x_command_glob() 532 afree(info, ATEMP); in x_command_glob() 543 afree(words[i], ATEMP); in x_command_glob() 638 strndupx(toglob, buf + *startp, len + /* the '*' */ 1, ATEMP); in x_cf_glob() 682 afree(toglob, ATEMP); in x_cf_glob() 727 afree(words[--nwords], ATEMP); in x_free_words() 728 afree(words, ATEMP); in x_free_words() [all …]
|
D | exec.c | 115 afree(dp, ATEMP); in execute() 134 e->savefd = alloc2(NUFILE, sizeof(short), ATEMP); in execute() 1226 afree(npath.rw, ATEMP); in findcom() 1334 Xinit(xs, xp, 128, ATEMP); in search_path() 1478 afree(sp, ATEMP); in iosetup() 1545 afree(sp, ATEMP); in iosetup() 1594 s = pushs(SSTRING, ATEMP); in hereinval() 1631 h = maketemp(ATEMP, TT_HEREDOC_EXP, &e->temps); in herein()
|
D | tree.c | 96 afree(cp, ATEMP); in ptree() 784 buf = alloc(sz + 16, ATEMP); in vistree() 818 afree(buf, ATEMP); in vistree()
|
D | sh.h | 724 #define ATEMP &e->area macro 1853 (x).beg = alloc2((x).siz, sizeof(void *), ATEMP); \ 1859 2 * sizeof(void *), ATEMP); \ 1867 #define XPclose(x) aresize2((x).beg, XPsize(x), sizeof(void *), ATEMP) 1868 #define XPfree(x) afree((x).beg, ATEMP)
|