Home
last modified time | relevance | path

Searched refs:sh_isstate (Results 1 – 24 of 24) sorted by relevance

/titanic_50/usr/src/lib/libshell/common/sh/
H A Dmain.c414 if(sh_isstate(SH_INTERACTIVE)) in exfile()
424 if(!sh_isstate(SH_PROFILE)) in exfile()
445 if(sh_isstate(SH_PROFILE) && (jmpval==SH_JMPFUN || jmpval==SH_JMPEXIT)) in exfile()
450 …if(!sh_isoption(SH_INTERACTIVE) || sh_isstate(SH_FORKED) || (jmpval > SH_JMPERREXIT && job_close(s… in exfile()
499 if(sh_isstate(SH_PROFILE)) in exfile()
505 if(sh_isstate(SH_INTERACTIVE) && !tdone) in exfile()
551 if(sh_isstate(SH_INTERACTIVE) && !sferror(iop)) in exfile()
572 if(sh_isstate(SH_INTERACTIVE) && shp->hist_ptr) in exfile()
583 if(!sh_isstate(SH_INTERACTIVE) && !sh_isstate(SH_CFLAG)) in exfile()
586 if(sh_isstate(SH_INTERACTIVE) && shp->hist_ptr) in exfile()
[all …]
H A Dfault.c121 …if((flag&SH_SIGINTERACTIVE) && sh_isstate(SH_INTERACTIVE) && !sh_isstate(SH_FORKED) && ! shp->subs… in sh_fault()
179 if(pp->mode==SH_JMPCMD && sh_isstate(SH_STOPOK)) in sh_fault()
202 if(pp->mode==SH_JMPCMD && sh_isstate(SH_STOPOK)) in sh_fault()
384 if(sh_isstate(SH_ERREXIT) && sh.exitval) in sh_chktrap()
439 int was_history = sh_isstate(SH_HISTORY); in sh_trap()
440 int was_verbose = sh_isstate(SH_VERBOSE); in sh_trap()
456 sh_exec((Shnode_t*)trap,sh_isstate(SH_ERREXIT)); in sh_trap()
514 if(!shp->subshell && sh_isstate(SH_MONITOR) && !sh_isstate(SH_STOPOK)) in sh_exit()
516 if(sh_isstate(SH_TIMING)) in sh_exit()
H A Dexpand.c120 if(sh_isstate(SH_COMPLETE)) in path_expand()
144 if(sh_isstate(SH_FCOMPLETE)) in path_expand()
157 if(!sh_isstate(SH_FCOMPLETE)) in path_expand()
183 else if(!sh_isstate(SH_FCOMPLETE) && sh_isoption(SH_DOTGLOB)) in path_expand()
H A Dxec.c510 sh_exec(t,sh_isstate(SH_ERREXIT)|sh_isstate(SH_NOFORK)|(mode&~SH_FUNEVAL)); in sh_eval()
677 int was_errexit = sh_isstate(SH_ERREXIT); in sh_exec()
678 int was_monitor = sh_isstate(SH_MONITOR); in sh_exec()
918 int was_nofork = execflg?sh_isstate(SH_NOFORK):0; in sh_exec()
1182 if(sh_isstate(SH_PROFILE) || shp->dot_depth) in sh_exec()
1278 if(sh_isstate(SH_PROFILE) || sh_isstate(SH_INTERACTIVE)) in sh_exec()
1303 if((type&FINT) && !sh_isstate(SH_MONITOR)) in sh_exec()
1392 was_interactive = sh_isstate(SH_INTERACTIVE); in sh_exec()
1507 job.waitall |= !pipejob && sh_isstate(SH_MONITOR); in sh_exec()
1549 if(!pipejob && sh_isstate(SH_MONITOR)) in sh_exec()
[all …]
H A Djobs.c336 if(pw->p_pgrp && pw->p_pgrp==job.curpgid && sh_isstate(SH_STOPOK)) in job_reap()
366 if(pw->p_pgrp && pw->p_pgrp==job.curpgid && pw->p_exit==SIGINT && sh_isstate(SH_STOPOK)) in job_reap()
437 if(sh_isoption(SH_NOTIFY) && sh_isstate(SH_TTYWAIT)) in job_reap()
617 else if(!possible && (!sh_isstate(SH_MONITOR) || sh_isstate(SH_FORKED))) in job_close()
1193 if(sh_isstate(SH_MONITOR)) in job_post()
1208 if(hp && !sh_isstate(SH_PROFILE)) in job_post()
1283 if(sh_isstate(SH_INTERACTIVE)) in job_prmsg()
1378 if(sh_isoption(SH_INTERACTIVE) && !sh_isstate(SH_FORKED)) in job_wait()
H A Dargs.c392 …if(!sh_isstate(SH_INIT) && is_option(&newflags,SH_PRIVILEGED) != sh_isoption(SH_PRIVILEGED) || sh_… in sh_applyopts()
812 if(monitor = (sh_isstate(SH_MONITOR)!=0)) in sh_argprocsub()
818 sh_exec((Shnode_t*)argp->argchn.ap,(int)sh_isstate(SH_ERREXIT)); in sh_argprocsub()
823 sh_exec((Shnode_t*)argp->argchn.ap,(int)sh_isstate(SH_ERREXIT)); in sh_argprocsub()
H A Dpath.c516 if(!sh_isstate(SH_DEFPATH)) in path_get()
522 if(!pp && (!(PATHNOD)->nvalue.cp) || sh_isstate(SH_DEFPATH)) in path_get()
701 if(sh_isstate(SH_DEFPATH)) in path_search()
728 pp=sh_isstate(SH_DEFPATH)?shp->defpathlist:shp->pathlist; in path_search()
742 else if(pp && !sh_isstate(SH_DEFPATH) && *name!='/' && flag<3) in path_search()
H A Dio.c1668 if(sh_isstate(SH_GRACE)) in time_grace()
1671 if(!sh_isstate(SH_INTERACTIVE)) in time_grace()
1698 if(sh_isstate(SH_INTERACTIVE) && io_prompt(iop,sh.nextprompt)<0 && errno==EIO) in piperead()
1745 …timeout = (void*)sh_timeradd(sh_isstate(SH_GRACE)?1000L*TGRACE:1000L*sh.timeout,0,time_grace,NIL(v… in slowread()
1867 if(flag<3 && !sh_isstate(SH_INTERACTIVE)) in io_prompt()
1977 if(sh_isstate(SH_NOTRACK)) in sftrack()
H A Dlex.c191 if(sh_isstate(SH_HISTORY) && shp->hist_ptr) in lex_advance()
194 if(sh_isstate(SH_VERBOSE)) in lex_advance()
550 if(!sh_isoption(SH_POSIX) && n=='>' && (sh_isoption(SH_BASH) || sh_isstate(SH_PROFILE))) in sh_lex()
1463 && (!sh_isstate(SH_NOALIAS) || nv_isattr(np,NV_NOFREE)) in sh_lex()
2013 if(!sh_isstate(SH_INTERACTIVE) && !sh_isstate(SH_PROFILE)) in sh_syntax()
H A Dbash.c327 if(sh_isstate(SH_PREINIT)) in bash_init()
H A Dmacro.c1903 int was_history = sh_isstate(SH_HISTORY); in comsubst()
1904 int was_verbose = sh_isstate(SH_VERBOSE); in comsubst()
1905 int was_interactive = sh_isstate(SH_INTERACTIVE); in comsubst()
1999 sp = sh_subshell(t,sh_isstate(SH_ERREXIT),type); in comsubst()
2548 if(sh_isstate(SH_PROFILE) || shp->fn_depth==0 || !shp->st.cmdname) in special()
H A Dinit.c385 if(!sh_isstate(SH_INIT) && (type>=0 || type==LC_ALL || type==LC_LANG)) in put_lang()
398 if(!sh_isstate(SH_INIT) || shp->login_sh==0) in put_lang()
676 … if(sh_isstate(SH_INIT) && (cp=shp->lastarg) && *cp=='*' && (pid=strtol(cp+1,&cp,10)) && *cp=='*') in get_lastarg()
H A Dsubshell.c546 sp->monitor = (sh_isstate(SH_MONITOR)!=0); in sh_subshell()
H A Dnvdisc.c317 else if(sh_isstate(SH_INIT)) in assign()
H A Dname.c521 sh_exec(tp,sh_isstate(SH_ERREXIT)); in nv_setlist()
1284 if(sh_isstate(SH_INIT)) in nv_open()
H A Dparse.c754 if(sh_isstate(SH_HISTORY) && shp->hist_ptr) in funct()
/titanic_50/usr/src/lib/libshell/common/bltins/
H A Dcflow.c69 if(shp->fn_depth==0 && shp->dot_depth==0 && !sh_isstate(SH_PROFILE)) in b_return()
H A Dwhence.c216 if(sh_isstate(SH_DEFPATH)) in whence()
H A Dmisc.c289 sh_exec((Shnode_t*)(nv_funtree(np)),sh_isstate(SH_ERREXIT)); in b_dot_cmd()
418 if(sh_isstate(SH_INTERACTIVE)) in b_bg()
H A Dalarm.c125 if(sh_isstate(SH_TTYWAIT)) in trap_timeout()
H A Dhist.c254 if(!sh_isstate(SH_FORKED)) in b_hist()
/titanic_50/usr/src/lib/libshell/common/include/
H A Ddefs.h423 #define sh_isstate(x) (sh.st.states&sh_state(x)) macro
/titanic_50/usr/src/lib/libshell/common/edit/
H A Dhistory.c377 if(sh_isstate(SH_INTERACTIVE)) in sh_histinit()
384 …if(sh_isstate(SH_INTERACTIVE) && (hp->auditmask=sh_checkaudit(hp,SHOPT_AUDITFILE, buff, sizeof(buf… in sh_histinit()
H A Dedit.c821 if(ep->sh->winch && sh_isstate(SH_INTERACTIVE) && (sh_isoption(SH_VI) || sh_isoption(SH_EMACS))) in ed_read()