/illumos-gate/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; 97 struct argnod *ap; 107 /* The following should evaluate to the offset of argval in argnod */ 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 | shnodes.h | 31 #include "argnod.h" 118 struct argnod *swarg; 126 struct argnod *regptr; 167 struct argnod *arexpr; 193 struct argnod arg;
|
H A D | defs.h | 39 #include "argnod.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 | 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 */
|
/illumos-gate/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) 96 register struct argnod *ap; 203 for(ap= (struct argnod*)gp->gl_list; ap; ap = ap->argnxt.ap) 210 *arghead = (struct argnod*)gp->gl_list; 219 static int scantree(Dt_t *tree, const char *pattern, struct argnod **arghead) 222 register struct argnod *ap; 230 ap = (struct argnod*)stakseek(ARGVAL); 232 ap = (struct argnod*)stakfreeze(1); 249 int path_complete(const char *name,register const char *suffix, struct argnod **arghea [all...] |
H A D | trestore.c | 36 static struct argnod *r_arg(Shell_t*); 177 static struct argnod *r_arg(Shell_t *shp) 179 register struct argnod *ap=0, *apold, *aptop=0; 184 ap = (struct argnod*)stkseek(stkp,(unsigned)l+ARGVAL); 206 ap = (struct argnod*)stkfreeze(stkp,0); 212 ap = (struct argnod*)stkfreeze(stkp,0); 219 ap->argchn.ap = (struct argnod*)fp; 277 else if(com->comarg = (struct argnod*)r_comlist(shp))
|
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 argnod *cmd) 98 register struct argnod *argp = arglist; 193 struct argnod *ap = tp->comarg; 278 static Shnode_t *getanode(Lex_t *lp, struct argnod *ap) 326 struct argnod *sav_arg = lexp->arg; 644 register struct argnod *arg [all...] |
H A D | args.c | 95 static int arg_expand(Shell_t*,struct argnod*,struct argnod**,int); 701 register struct argnod *argp; 702 struct argnod *arghead=0; 760 struct argnod *nextarg = argp->argchn.ap; 797 struct argnod *sh_argprocsub(Shell_t *shp,struct argnod *argp) 800 register struct argnod *ap; 803 ap = (struct argnod*)stkseek(shp->stk,ARGVAL); 810 ap = (struct argnod*)stkfreez [all...] |
H A D | macro.c | 61 struct argnod **arghead; /* address of head of argument list */ 178 struct argnod *arglist=0; 192 int sh_macexpand(Shell_t* shp, register struct argnod *argp, struct argnod **arghead,int flag) 402 char *sh_macpat(Shell_t *shp,register struct argnod *arg, int flags) 412 sh_macexpand(shp,arg,NIL(struct argnod**),flags|ARG_ARRAYOK); 986 tp->com.comarg = (struct argnod*)dp; 2280 register struct argnod *argp; 2285 argp = (struct argnod*)stkfreeze(stkp,1);
|
H A D | tdump.c | 36 static int p_arg(const struct argnod*); 157 static int p_arg(register const struct argnod *arg)
|
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; 179 struct argnod *init = (t->lst.lstlef)->ar.arexpr; 239 register struct argnod *ap = t->ar.arexpr; 378 static void p_arg(register const struct argnod *arg,register int endchar,int opts)
|
H A D | io.c | 1002 struct argnod *ap = (struct argnod*)stakalloc(ARGVAL+strlen(iop->ioname)); 1010 struct argnod *ap = (struct argnod*)stakalloc(ARGVAL+strlen(iop->ioname)); 1014 ap->argchn.ap = (struct argnod*)fname;
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | defs.c | 54 struct argnod *gchain; 62 struct argnod *wdarg;
|
H A D | mode.h | 146 struct argnod struct 148 struct argnod *argnxt; 170 struct argnod *comarg; 171 struct argnod *comset; 214 struct argnod *regptr;
|
H A D | expand.c | 54 void makearg(struct argnod *); 66 struct argnod *schain = gchain; 186 struct argnod *rchain; 274 makearg((struct argnod *)endstak(s2)); 278 makearg(struct argnod *args)
|
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) 134 struct argnod *sav; 302 struct argnod *arg; 379 struct argnod *arg = swl->regptr; 408 prarg(struct argnod *argp)
|
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 | 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)
|
H A D | word.c | 49 struct argnod *arg = (struct argnod *)locstak();
|
/illumos-gate/usr/src/lib/libshell/common/bltins/ |
H A D | misc.c | 116 register struct argnod *arg=shp->envlist; 153 path_exec(pname,argv,NIL(struct argnod*));
|