Searched refs:argnod (Results 1 - 25 of 31) sorted by relevance

12

/illumos-gate/usr/src/lib/libshell/common/include/
H A Dargnod.h46 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 Dpath.h69 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 Dshnodes.h31 #include "argnod.h"
118 struct argnod *swarg;
126 struct argnod *regptr;
167 struct argnod *arexpr;
193 struct argnod arg;
H A Ddefs.h39 #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 Dname.h104 struct argnod;
177 extern void nv_setlist(struct argnod*, int, Namval_t*);
178 extern struct argnod* nv_onlist(struct argnod*, const char*);
H A Dshlex.h38 struct argnod *arg; /* current word */
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dexpand.c53 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 Dtrestore.c36 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 Dparse.c53 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 Dargs.c95 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 Dmacro.c61 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 Dtdump.c36 static int p_arg(const struct argnod*);
157 static int p_arg(register const struct argnod *arg)
H A Ddeparse.c48 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 Dio.c1002 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 Ddefs.c54 struct argnod *gchain;
62 struct argnod *wdarg;
H A Dmode.h146 struct argnod struct
148 struct argnod *argnxt;
170 struct argnod *comarg;
171 struct argnod *comset;
214 struct argnod *regptr;
H A Dexpand.c54 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 Dfunc.c36 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 Dcmd.c209 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 Dservice.c42 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 Dxec.c129 struct argnod *schain = gchain;
417 struct argnod *schain = gchain;
479 struct argnod *rex = regp->regptr;
H A Ddefs.h246 extern struct argnod *gchain;
280 extern struct argnod *wdarg;
H A Dhashserv.c54 struct argnod *arg;
503 argpath(struct argnod *arg)
H A Dword.c49 struct argnod *arg = (struct argnod *)locstak();
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dmisc.c116 register struct argnod *arg=shp->envlist;
153 path_exec(pname,argv,NIL(struct argnod*));

Completed in 96 milliseconds

12