Home
last modified time | relevance | path

Searched refs:comsub (Results 1 – 11 of 11) sorted by relevance

/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dsubshell.c103 char comsub; member
215 shp->comsub = 0; in sh_subfork()
469 * If comsub is not null, then output will be placed in temp file (or buffer)
470 * If comsub is not null, the return value will be a stream consisting of
474 Sfio_t *sh_subshell(Shell_t *shp,Shnode_t *t, volatile int flags, int comsub) in sh_subshell() argument
531 if(comsub) in sh_subshell()
536 sp->comsub = shp->comsub; in sh_subshell()
537 shp->subshare = comsub==2 || (comsub in sh_subshell()
[all...]
H A Dlex.c136 static int comsub(Lex_t*,int);
289 lp->comsub = 0; in sh_lexopen()
879 wordflags |= comsub(lp,c); in sh_lex()
1238 if(mode==ST_BEGIN && (lp->lex.reservok||lp->comsub)) in sh_lex()
1240 if(lp->comsub) in sh_lex()
1259 if(lp->comsub && c==RBRACE) in sh_lex()
1362 else if(n==RBRACE && lp->comsub) in sh_lex()
1566 static int comsub(register Lex_t *lp, int endtok) in comsub() function
1574 csub = lp->comsub; in comsub()
1579 lp->comsub in comsub()
[all...]
H A Dxec.c582 char comsub = shp->comsub; in sh_eval() local
585 shp->comsub = 0; in sh_eval()
625 shp->comsub = comsub; in sh_eval()
1610 if(shp->comsub==1 && !(shp->fdstatus[1]&IONOSEEK)) in sh_exec()
1689 if(shp->comsub==1 && usepipe && unpipe) in sh_exec()
1706 if(shp->comsub==1 && usepipe && unpipe) in sh_exec()
1939 if(shp->comsub==1) in sh_exec()
1968 if(shp->comsub in sh_exec()
3496 int level, pipepid=shp->pipepid, comsub=shp->comsub; sh_funct() local
[all...]
H A Dparse.c418 lp->comsub = 1; in sh_dolparen()
432 lp->comsub = 0; in sh_dolparen()
1124 int showme=0, comsub; in item() local
1310 comsub = lexp->comsub; in item()
1311 lexp->comsub = 0; in item()
1313 lexp->comsub = comsub; in item()
1729 if(token==RPAREN && (iof&IOLSEEK) && lexp->comsub) in inout()
H A Dio.c1289 if(shp->comsub==1) in sh_redirect()
/titanic_51/usr/src/lib/libshell/common/sh/
H A Dsubshell.c469 Sfio_t *sh_subshell(Shnode_t *t, int flags, int comsub) in sh_subshell() argument
513 if(comsub) in sh_subshell()
516 shp->subshare = comsub==2 || (comsub==1 && sh_isoption(SH_SUBSHARE)); in sh_subshell()
517 if(!comsub || !shp->subshare) in sh_subshell()
541 if(comsub) in sh_subshell()
575 if(comsub!=2 && jmpval!=SH_JMPSUB && shp->st.trapcom[0] && shp->subshell) in sh_subshell()
593 if(comsub) in sh_subshell()
649 if(comsub) in sh_subshell()
652 if(comsub && iop && sp->pipefd<0) in sh_subshell()
740 if(sp->subpid && !comsub) in sh_subshell()
H A Dlex.c131 static int comsub(Lex_t*,int);
278 lp->comsub = 0; in sh_lexopen()
828 wordflags |= comsub(lp,c); in sh_lex()
1163 if(mode==ST_BEGIN && (lp->lex.reservok||lp->comsub)) in sh_lex()
1177 if(lp->comsub && c==RBRACE) in sh_lex()
1277 else if(n==RBRACE && lp->comsub) in sh_lex()
1483 static int comsub(register Lex_t *lp, int endtok) in comsub() function
1491 csub = lp->comsub; in comsub()
1496 lp->comsub = (endtok==LBRACE); in comsub()
1539 lp->comsub = 0; in comsub()
[all …]
H A Dparse.c402 lp->comsub = 1; in sh_dolparen()
416 lp->comsub = 0; in sh_dolparen()
1028 int showme=0, comsub; in item() local
1213 comsub = lexp->comsub; in item()
1214 lexp->comsub = 0; in item()
1216 lexp->comsub = comsub; in item()
1604 if(token==RPAREN && (iof&IOLSEEK) && lexp->comsub) in inout()
/titanic_51/usr/src/lib/libshell/common/include/
H A Dshlex.h50 char comsub; /* parsing command substitution */ member
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Dshlex.h50 char comsub; /* parsing command substitution */ member
H A Ddefs.h205 char comsub; /* set when in $() comsub */ \
206 char subshare; /* set when in ${..} comsub */ \