/titanic_41/usr/src/lib/libshell/common/sh/ |
H A D | expand.c | 53 static int scantree(Dt_t*,const char*, struct argnod**); 92 int path_expand(const char *pattern, struct argnod **arghead) in path_expand() 96 register struct argnod *ap; in path_expand() 203 for(ap= (struct argnod*)gp->gl_list; ap; ap = ap->argnxt.ap) in path_expand() 210 *arghead = (struct argnod*)gp->gl_list; in path_expand() 219 static int scantree(Dt_t *tree, const char *pattern, struct argnod **arghead) in scantree() 222 register struct argnod *ap; in scantree() 230 ap = (struct argnod*)stakseek(ARGVAL); in scantree() 232 ap = (struct argnod*)stakfreeze(1); in scantree() 249 int path_complete(const char *name,register const char *suffix, struct argnod **arghead) in path_complete() [all …]
|
H A D | parse.c | 53 static struct argnod *qscan(struct comnod*, int); 85 static struct argnod *label_list; 86 static struct argnod *label_last; 96 static unsigned long writedefs(Lex_t *lexp,struct argnod *arglist, int line, int type, struct argno… in writedefs() 98 register struct argnod *argp = arglist; in writedefs() 193 struct argnod *ap = tp->comarg; in check_typedef() 278 static Shnode_t *getanode(Lex_t *lp, struct argnod *ap) in getanode() 326 struct argnod *sav_arg = lexp->arg; in sh_parse() 644 register struct argnod *argp; in arithfor() 656 argp = (struct argnod*)stkseek(stkp,ARGVAL); in arithfor() [all …]
|
H A D | args.c | 95 static int arg_expand(Shell_t*,struct argnod*,struct argnod**,int); 701 register struct argnod *argp; in sh_argbuild() 702 struct argnod *arghead=0; in sh_argbuild() 760 struct argnod *nextarg = argp->argchn.ap; in sh_argbuild() 797 struct argnod *sh_argprocsub(Shell_t *shp,struct argnod *argp) in sh_argprocsub() 800 register struct argnod *ap; in sh_argprocsub() 803 ap = (struct argnod*)stkseek(shp->stk,ARGVAL); in sh_argprocsub() 810 ap = (struct argnod*)stkfreeze(shp->stk,0); in sh_argprocsub() 834 static int arg_expand(Shell_t *shp,register struct argnod *argp, struct argnod **argchain,int flag) in arg_expand() 841 struct argnod *ap; in arg_expand() [all …]
|
H A D | trestore.c | 36 static struct argnod *r_arg(Shell_t*); 177 static struct argnod *r_arg(Shell_t *shp) in r_arg() 179 register struct argnod *ap=0, *apold, *aptop=0; in r_arg() 184 ap = (struct argnod*)stkseek(stkp,(unsigned)l+ARGVAL); in r_arg() 206 ap = (struct argnod*)stkfreeze(stkp,0); in r_arg() 212 ap = (struct argnod*)stkfreeze(stkp,0); in r_arg() 219 ap->argchn.ap = (struct argnod*)fp; in r_arg() 277 else if(com->comarg = (struct argnod*)r_comlist(shp)) in r_comarg()
|
H A D | deparse.c | 48 static void p_arg(const struct argnod*, int endchar, int opts); 161 struct argnod *arg = (t->wh.whtre)->ar.arexpr; in p_tree() 179 struct argnod *init = (t->lst.lstlef)->ar.arexpr; in p_tree() 239 register struct argnod *ap = t->ar.arexpr; in p_tree() 378 static void p_arg(register const struct argnod *arg,register int endchar,int opts) in p_arg()
|
H A D | tdump.c | 36 static int p_arg(const struct argnod*); 157 static int p_arg(register const struct argnod *arg) in p_arg()
|
H A D | lex.c | 211 lp->arg = (struct argnod*)stkseek(stkp,ARGVAL); in lex_advance() 231 struct argnod *ap; in lexfill() 638 struct argnod *ap; in sh_lex() 1092 lp->arg = (struct argnod*)stkfreeze(stkp,1); in sh_lex() 1251 lp->arg = (struct argnod*)stkseek(stkp,ARGVAL); in sh_lex() 1290 lp->arg = (struct argnod*)stkfreeze(stkp,1); in sh_lex() 1300 lp->arg = (struct argnod*)stkfreeze(stkp,1); in sh_lex() 1325 lp->arg = (struct argnod*)stkfreeze(stkp,1); in sh_lex() 1606 struct argnod *arg = lp->arg; in nested_here() 2045 struct argnod *sh_endword(Shell_t *shp,int mode) in sh_endword() [all …]
|
H A D | macro.c | 61 struct argnod **arghead; /* address of head of argument list */ 178 struct argnod *arglist=0; in sh_mactrim() 192 int sh_macexpand(Shell_t* shp, register struct argnod *argp, struct argnod **arghead,int flag) in sh_macexpand() 402 char *sh_macpat(Shell_t *shp,register struct argnod *arg, int flags) in sh_macpat() 412 sh_macexpand(shp,arg,NIL(struct argnod**),flags|ARG_ARRAYOK); in sh_macpat() 986 tp->com.comarg = (struct argnod*)dp; in sh_macfun() 2280 register struct argnod *argp; in endfield() 2285 argp = (struct argnod*)stkfreeze(stkp,1); in endfield()
|
/titanic_41/usr/src/lib/libshell/common/include/ |
H A D | argnod.h | 46 struct argnod *comarg; 47 struct argnod *comset; 88 struct argnod struct 92 struct argnod *ap; argument 97 struct argnod *ap; argument 108 #define ARGVAL offsetof(struct argnod,argval[0])
|
H A D | path.h | 69 struct argnod; 83 extern int path_expand(const char*, struct argnod**); 84 extern void path_exec(const char*,char*[],struct argnod*); 96 extern int path_complete(const char*, const char*,struct argnod**); 98 extern int path_generate(struct argnod*,struct argnod**);
|
H A D | defs.h | 185 struct argnod *envlist; \ 362 extern struct argnod *sh_argprocsub(Shell_t*,struct argnod*); 369 extern struct argnod *sh_endword(Shell_t*,int); 380 extern int sh_macexpand(Shell_t*,struct argnod*,struct argnod**,int); 384 extern char *sh_macpat(Shell_t*,struct argnod*,int); 391 extern void sh_scope(Shell_t*, struct argnod*, int);
|
H A D | shnodes.h | 118 struct argnod *swarg; 126 struct argnod *regptr; 167 struct argnod *arexpr; 193 struct argnod arg;
|
H A D | name.h | 104 struct argnod; 177 extern void nv_setlist(struct argnod*, int, Namval_t*); 178 extern struct argnod* nv_onlist(struct argnod*, const char*);
|
H A D | shlex.h | 38 struct argnod *arg; /* current word */
|
/titanic_41/usr/src/cmd/sh/ |
H A D | mode.h | 146 struct argnod struct 148 struct argnod *argnxt; argument 170 struct argnod *comarg; argument 171 struct argnod *comset; 214 struct argnod *regptr;
|
H A D | expand.c | 54 void makearg(struct argnod *); 66 struct argnod *schain = gchain; in expand() 186 struct argnod *rchain; in expand() 274 makearg((struct argnod *)endstak(s2)); in addg() 278 makearg(struct argnod *args) in makearg()
|
H A D | func.c | 36 static void free_arg(struct argnod *); 39 static void prarg(struct argnod *argp); 132 free_arg(struct argnod *argp) in free_arg() 134 struct argnod *sav; in free_arg() 302 struct argnod *arg; in prf() 379 struct argnod *arg = swl->regptr; in prf() 408 prarg(struct argnod *argp) in prarg()
|
H A D | cmd.c | 209 struct argnod *argp; 217 wdarg = (struct argnod *)alloc(length(argp->argval) + BYTESPERWORD); 375 struct argnod *argp; 376 struct argnod **argtail; 377 struct argnod **argset = 0; 436 wdarg = (struct argnod *)alloc(length(argp->argval) + BYTESPERWORD); 443 argp->argnxt = (struct argnod *)argset; 444 argset = (struct argnod **)argp; 467 t->comset = (struct argnod *)argset;
|
H A D | service.c | 42 extern void makearg(struct argnod *); 433 struct argnod *argp = 434 (struct argnod *)(Rcheat(gchain) & ~ARGMK); 452 argp = (struct argnod *)(Rcheat(argp) & ~ARGMK); 502 struct argnod *argp; 592 trims(((struct argnod *)argp)->argval); 594 (c = expand(((struct argnod *)argp)->argval, 0))) 598 makearg((struct argnod *)argp); 601 gchain = (struct argnod *)((int)gchain | ARGMK);
|
H A D | defs.c | 54 struct argnod *gchain; 62 struct argnod *wdarg;
|
H A D | xec.c | 129 struct argnod *schain = gchain; 417 struct argnod *schain = gchain; 479 struct argnod *rex = regp->regptr;
|
H A D | defs.h | 246 extern struct argnod *gchain; 280 extern struct argnod *wdarg;
|
H A D | hashserv.c | 54 struct argnod *arg; 503 argpath(struct argnod *arg) in argpath()
|
H A D | word.c | 49 struct argnod *arg = (struct argnod *)locstak(); in word()
|
/titanic_41/usr/src/lib/libshell/common/edit/ |
H A D | completion.c | 199 struct argnod *ap; in ed_expand() 222 ap = (struct argnod*)stakseek(ARGVAL); in ed_expand() 281 ap = (struct argnod*)stakfreeze(1); in ed_expand()
|