Home
last modified time | relevance | path

Searched refs:ATEMP (Results 1 – 14 of 14) sorted by relevance

/external/mksh/src/
Dsyn.c199 yylval.cp = wdcopy(IONDELIM_delim, ATEMP); in synio()
218 nextiop = alloc(sizeof(*iop), ATEMP); in synio()
220 nextiop->ioname = cp = alloc(3, ATEMP); in synio()
222 nextiop->ioname = cp = alloc(5, ATEMP); in synio()
278 iops = alloc2((NUFILE + 1), sizeof(struct ioword *), ATEMP); in get_command()
286 afree(iops, ATEMP); in get_command()
354 XPput(args, wdcopy(setA_cmd0, ATEMP)); in get_command()
355 XPput(args, wdcopy(setA_cmd1, ATEMP)); in get_command()
357 XPput(args, wdcopy(setA_cmd2, ATEMP)); in get_command()
370 afree(t, ATEMP); in get_command()
[all …]
Deval.c119 s = pushs(SWSTR, ATEMP); in substitute()
125 afree(s, ATEMP); in substitute()
260 Xinit(ds, dp, 128, ATEMP); in expand()
378 end = (beg = wdcopy(sp, ATEMP)) + in expand()
384 afree(beg, ATEMP); in expand()
397 newst = alloc(sizeof(SubType), ATEMP); in expand()
437 beg = wdcopy(sp, ATEMP); in expand()
455 afree(stg, ATEMP); in expand()
459 afree(stg, ATEMP); in expand()
461 afree(beg, ATEMP); in expand()
[all …]
Dvar.c68 l = alloc(sizeof(struct block), ATEMP); in newblock()
110 afree(l, ATEMP); in popblock()
187 strndupx(vn, n, p - n, ATEMP); in array_index_calc()
190 afree(vn, ATEMP); in array_index_calc()
197 afree(ap, ATEMP); in array_index_calc()
210 strndupx(tmp, p + 1, len - 2, ATEMP); in array_index_calc()
212 afree(tmp, ATEMP); in array_index_calc()
213 strndupx(n, n, p - n, ATEMP); in array_index_calc()
216 afree(sub, ATEMP); in array_index_calc()
248 vp->areap = ATEMP; in global()
[all …]
Dmisc.c240 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()
1299 afree(str, ATEMP); in print_columns()
1376 strdupx(rv, cp, ATEMP); in ksh_get_wd()
1383 if (!getcwd((rv = alloc(PATH_MAX + 1, ATEMP)), PATH_MAX)) { in ksh_get_wd()
1384 afree(rv, ATEMP); in ksh_get_wd()
1417 strdupx(ipath, upath, ATEMP); in do_realpath()
[all …]
Dlex.c166 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()
654 afree(sp, ATEMP); in yylex()
873 afree(sp, ATEMP); in yylex()
911 struct ioword *iop = alloc(sizeof(struct ioword), ATEMP); in yylex()
966 afree(iop, ATEMP); in yylex()
1044 afree(yylval.cp, ATEMP); in yylex()
[all …]
Dexpr.c655 strndupx(tvar, es->tokp, cp - es->tokp, ATEMP); in exprtoken()
657 afree(tvar, ATEMP); in exprtoken()
664 strndupx(tvar, es->tokp, cp - es->tokp, ATEMP); in exprtoken()
675 tvar = alloc(c + /* NUL */ 1, ATEMP); in exprtoken()
685 strndupx(tvar, es->tokp, --cp - es->tokp, ATEMP); in exprtoken()
693 afree(tvar, ATEMP); in exprtoken()
726 vp = alloc(sizeof(struct tbl), ATEMP); in tempvar()
729 vp->areap = ATEMP; in tempvar()
Dmain.c161 strdupx(x, cx, ATEMP); in isuc()
171 afree(x, ATEMP); in isuc()
436 s = pushs(SSTRINGCMDLINE, ATEMP); in main_init()
455 s = pushs(SFILE, ATEMP); in main_init()
481 s = pushs(SSTDIN, ATEMP); in main_init()
715 s = pushs(SFILE, ATEMP); in include()
717 strdupx(s->file, name, ATEMP); in include()
734 s = pushs(SSTRING, ATEMP); in command()
929 cp = alloc(sizeof(struct env) - ALLOC_SIZE, ATEMP); in newenv()
1027 afree(cp + ALLOC_SIZE, ATEMP); in quitenv()
[all …]
Dshf.c58 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()
203 shf = alloc(sizeof(struct shf), ATEMP); in shf_sopen()
206 shf->areap = ATEMP; in shf_sopen()
Dhistrap.c118 editor = alloc(len + 4, ATEMP); in c_fc()
177 strdupx(pat, *wp, ATEMP); in c_fc()
196 strdupx(line, *hp, ATEMP); in c_fc()
206 Xinit(xs, xp, 128, ATEMP); in c_fc()
229 return (hist_execute(line, ATEMP)); in c_fc()
301 tf = maketemp(ATEMP, TT_HIST_EDIT, &e->temps); in c_fc()
838 afree(nhname, ATEMP); in hist_init()
1141 strdupx(as, cs, ATEMP); in gettrap()
1166 afree(as, ATEMP); in gettrap()
Dfuncs.c270 afree(allocd, ATEMP); in c_pwd()
406 Xinit(xs, xp, 128, ATEMP); in c_print()
1136 strndupx(xalias, alias, val++ - alias, ATEMP); in c_alias()
1181 afree(xalias, ATEMP); in c_alias()
1604 strdupx(up, *wp, ATEMP); in c_bind()
1613 afree(up, ATEMP); in c_bind()
1948 strdupx(allocd, *wp, ATEMP); in c_read()
1963 Xinit(xs, xp, bytesleft, ATEMP); in c_read()
2116 XinitN(xs, 128, ATEMP); in c_read()
2125 afree(cp, ATEMP); in c_read()
[all …]
Dedit.c337 afree(s, ATEMP); in x_glob_hlp_tilde_and_rem_qchar()
379 s = pushs(SWSTR, ATEMP); in x_file_glob()
388 afree(s, ATEMP); in x_file_glob()
492 alloc2(nwords, sizeof(struct path_order_info), ATEMP); in x_command_glob()
507 afree(info, ATEMP); in x_command_glob()
518 afree(words[i], ATEMP); in x_command_glob()
613 strndupx(toglob, buf + *startp, len + /* the '*' */ 1, ATEMP); in x_cf_glob()
657 afree(toglob, ATEMP); in x_cf_glob()
702 afree(words[--nwords], ATEMP); in x_free_words()
703 afree(words, ATEMP); in x_free_words()
[all …]
Dexec.c151 e->savefd = alloc2(NUFILE, sizeof(short), ATEMP); in execute()
1209 afree(npath.rw, ATEMP); in findcom()
1302 Xinit(xs, xp, 128, ATEMP); in search_path()
1444 afree(sp, ATEMP); in iosetup()
1509 afree(sp, ATEMP); in iosetup()
1558 s = pushs(SSTRING, ATEMP); in hereinval()
1602 h = maketemp(ATEMP, TT_HEREDOC_EXP, &e->temps); in herein()
Dsh.h716 #define ATEMP &e->area macro
1530 (x).beg = alloc2((x).siz, sizeof(void *), ATEMP); \
1536 2 * sizeof(void *), ATEMP); \
1544 #define XPclose(x) aresize2((x).beg, XPsize(x), sizeof(void *), ATEMP)
1545 #define XPfree(x) afree((x).beg, ATEMP)
Dtree.c758 buf = alloc(sz + 16, ATEMP); in vistree()
792 afree(buf, ATEMP); in vistree()