Home
last modified time | relevance | path

Searched refs:sh_isoption (Results 1 – 25 of 38) sorted by relevance

12

/titanic_41/usr/src/lib/libshell/common/sh/
H A Dmain.c159 if(rshflag=sh_isoption(SH_RESTRICTED)) in sh_main()
191 if(!sh_isoption(SH_INTERACTIVE) && !sh_isoption(SH_TFLAG) && !sh_isoption(SH_CFLAG) && in sh_main()
192 sh_isoption(SH_SFLAG) && tty_check(0) && tty_check(ERRIO)) in sh_main()
194 if(sh_isoption(SH_INTERACTIVE)) in sh_main()
199 if(!sh_isoption(SH_RC) && (sh_isoption(SH_BASH) && !sh_isoption(SH_POSIX) in sh_main()
207 if(sh_isoption(SH_INTERACTIVE)) in sh_main()
217 job_init(shp,sh_isoption(SH_LOGIN_SHELL)); in sh_main()
218 if(sh_isoption(SH_LOGIN_SHELL)) in sh_main()
222 if(!sh_isoption(SH_NOUSRPROFILE) && !sh_isoption(SH_PRIVILEGED)) in sh_main()
230 if(!sh_isoption(SH_NOEXEC)) in sh_main()
[all …]
H A Dexpand.c106 if(sh_isoption(SH_MARKDIRS)) in path_expand()
108 if(sh_isoption(SH_GLOBSTARS)) in path_expand()
112 if(sh_isoption(SH_BASH) && !sh_isoption(SH_EXTGLOB)) in path_expand()
115 if(sh_isoption(SH_NULLGLOB)) in path_expand()
117 if(sh_isoption(SH_NOCASEGLOB)) in path_expand()
135 if(sh_isoption(SH_BASH)) in path_expand()
183 else if(!sh_isstate(SH_FCOMPLETE) && sh_isoption(SH_DOTGLOB)) in path_expand()
390 if(!sh_isoption(SH_NOGLOB)) in path_generate()
H A Dbash.c275 if(sh_isoption(SH_INTERACTIVE)) in b_shopt()
322 if(sh_isoption(SH_LOGIN_SHELL) && !sh_isoption(SH_POSIX)) in bash_init()
329 if(sh_isoption(SH_RESTRICTED)) in bash_init()
401 if(sh_isoption(SH_LOGIN_SHELL)) in bash_init()
403 if(!sh_isoption(SH_POSIX)) in bash_init()
412 xtrace = sh_isoption(SH_XTRACE); in bash_init()
414 verbose = sh_isoption(SH_VERBOSE); in bash_init()
H A Dargs.c115 if(sh_isoption(SH_BASH)) in infof()
120 if(sh_isoption(SH_BASH)) in infof()
123 else if(*s==':' && sh_isoption(SH_BASH)) in infof()
145 int setflag=0, action=0, trace=(int)sh_isoption(SH_XTRACE); in sh_argopts()
173 if(!sh_isoption(SH_BASH)) in sh_argopts()
186 (sh_isoption(SH_BASH)?PRINT_ALL|PRINT_NO_HEADER:0)| in sh_argopts()
192 || (!sh_isoption(SH_BASH) && (o&SH_BASHEXTRA)) in sh_argopts()
193 || ((!sh_isoption(SH_BASH) || n=='o') && (o&SH_BASHOPT)) in sh_argopts()
201 if(sh_isoption(SH_RESTRICTED) && !f && o==SH_RESTRICTED) in sh_argopts()
388 if(sh_isoption(SH_INTERACTIVE)) in sh_applyopts()
[all …]
H A Dfault.c396 if(sh_isoption(SH_ERREXIT)) in sh_chktrap()
617 if(sh_isoption(SH_EMACS)||sh_isoption(SH_VI)||sh_isoption(SH_GMACS)) in sh_done()
621 …if((sh_isoption(SH_INTERACTIVE) && shp->login_sh) || (!sh_isoption(SH_INTERACTIVE) && (sig==SIGHUP… in sh_done()
641 if(sh_isoption(SH_NOEXEC)) in sh_done()
H A Darith.c189 if(sh_isoption(SH_NOEXEC)) in arith()
310 if(sh_isoption(SH_NOEXEC)) in arith()
315 if(sh_isoption(SH_NOUNSET)) in arith()
322 …if(((lvalue->emode&2) || lvalue->level>1 || sh_isoption(SH_NOUNSET)) && nv_isnull(np) && !nv_isatt… in arith()
H A Dio.c1019 fname=sh_mactrim(shp,fname,(!sh_isoption(SH_NOGLOB)&&sh_isoption(SH_INTERACTIVE))?2:0); in sh_redirect()
1119 if(sh_isoption(SH_RESTRICTED)) in sh_redirect()
1133 else if(sh_isoption(SH_RESTRICTED)) in sh_redirect()
1153 else if(sh_isoption(SH_NOCLOBBER)) in sh_redirect()
1721 if(sh_isoption(SH_EMACS) || sh_isoption(SH_GMACS)) in slowread()
1727 if(sh_isoption(SH_VI) || ((SHOPT_RAWONLY-0) && mbwide())) in slowread()
1729 if(sh_isoption(SH_VI)) in slowread()
1751 if(rsize && *(char*)buff != '\n' && sh.nextprompt==1 && sh_isoption(SH_HISTEXPAND)) in slowread()
1765 if(!sh_isoption(SH_HISTVERIFY) || readf==ed_read) in slowread()
1773 if((r & HIST_ERROR) && sh_isoption(SH_HISTREEDIT)) in slowread()
[all …]
H A Dxec.c491 if(traceon=sh_isoption(SH_XTRACE)) in sh_eval()
503 if(!sh_isoption(SH_VERBOSE)) in sh_eval()
658 if(t && !shp->st.execbrk && !sh_isoption(SH_NOEXEC)) in sh_exec()
854 else if((np!=SYSSET) && sh_isoption(SH_XTRACE)) in sh_exec()
856 else if((t->tre.tretyp&FSHOWME) && sh_isoption(SH_SHOWME)) in sh_exec()
858 int ison = sh_isoption(SH_XTRACE); in sh_exec()
932 was_vi = sh_isoption(SH_VI); in sh_exec()
933 was_emacs = sh_isoption(SH_EMACS); in sh_exec()
934 was_gmacs = sh_isoption(SH_GMACS); in sh_exec()
1180 !(pipejob && sh_isoption(SH_PIPEFAIL)) in sh_exec()
[all …]
H A Djobs.c437 if(sh_isoption(SH_NOTIFY) && sh_isstate(SH_TTYWAIT)) in job_reap()
477 if(!sh_isoption(SH_INTERACTIVE)) in job_init()
1189 if(!sh.outpipe || (sh_isoption(SH_PIPEFAIL) && job.waitall)) in job_post()
1358 if(sh_isoption(SH_NOTIFY)) in job_wait()
1364 else if(!sh_isoption(SH_INTERACTIVE) && (px->p_flag&P_SIGNALLED)) in job_wait()
1378 if(sh_isoption(SH_INTERACTIVE) && !sh_isstate(SH_FORKED)) in job_wait()
1402 if(sh_isoption(SH_PIPEFAIL)) in job_wait()
1425 if(!px || !sh_isoption(SH_PIPEFAIL) || !job.waitall) in job_wait()
1473 if(!job.waitall && sh_isoption(SH_PIPEFAIL)) in job_wait()
H A Dinit.c288 if(!(flags&NV_RDONLY) && sh_isoption(SH_RESTRICTED)) in put_restricted()
1226 if(!sh_isoption(SH_SFLAG)) in sh_init()
1256 if (sh_isoption(SH_PFSH)) in sh_init()
1269 if(!sh_isoption(SH_PRIVILEGED) && shp->userid >= SHOPT_P_SUID) in sh_init()
1381 if(sh_isoption(SH_TRACKALL)) in sh_reinit()
1383 if(sh_isoption(SH_EMACS)) in sh_reinit()
1385 if(sh_isoption(SH_GMACS)) in sh_reinit()
1387 if(sh_isoption(SH_VI)) in sh_reinit()
1389 if(sh_isoption(SH_VIRAW)) in sh_reinit()
1815 unsigned long sh_isoption DISABLE (int opt) in DISABLE()
[all …]
H A Dparse.c198 if(sh_isoption(SH_NOEXEC)) in check_typedef()
217 if(sh_isoption(SH_NOEXEC)) in check_typedef()
288 if(sh_isoption(SH_NOEXEC) && (ap->argflag&ARG_MAC) && paramsub(ap->argval)) in getanode()
338 if(sh_isoption(SH_INTERACTIVE)) in sh_parse()
340 if(sh_isoption(SH_VERBOSE)) in sh_parse()
1128 if(sh_isoption(SH_NOEXEC)) in item()
1206 if(sh_isoption(SH_NOEXEC) && tok!=TWH && tok!=TUN && tok!=TFOR && tok!=TSELECT) in item()
1241 …if(t->com.comarg && lexp->intypeset && (lexp->sh->shcomp || sh_isoption(SH_NOEXEC) || sh.dot_depth… in item()
1290 int key_on = (!(flag&SH_NOIO) && sh_isoption(SH_KEYWORD)); in simple()
1379 if(!(lexp->assignok=key_on) && !(flag&SH_NOIO) && sh_isoption(SH_NOEXEC)) in simple()
[all …]
H A Dlex.c270 if(!sh_isoption(SH_DICTIONARY) && sh_isoption(SH_NOEXEC)) in sh_lexopen()
550 if(!sh_isoption(SH_POSIX) && n=='>' && (sh_isoption(SH_BASH) || sh_isstate(SH_PROFILE))) in sh_lex()
552 if(!sh_isoption(SH_BASH) && !lp->nonstandard) in sh_lex()
1193 if(sh_isoption(SH_BRACEEXPAND) && c==LBRACE && !assignment && state[n]!=S_BREAK in sh_lex()
1285 …]=='}' && !lp->lex.intest && !lp->lex.incase && (c=='<' || c== '>') && sh_isoption(SH_BRACEEXPAND)) in sh_lex()
1315 if(sh_isoption(SH_DICTIONARY)) in sh_lex()
1317 if(!sh_isoption(SH_NOEXEC)) in sh_lex()
H A Dpath.c88 if(!sh_isoption(SH_PFSH)) in path_pfexecve()
209 else if(spawn && !sh_isoption(SH_PFSH)) in path_xargs()
549 if(sh_isoption(SH_RESTRICTED)) in path_opentype()
781 if(!isfun && !sh_isoption(SH_RESTRICTED)) in path_absolute()
977 if(sh_isoption(SH_RESTRICTED)) in path_exec()
1125 if(spawn && !sh_isoption(SH_PFSH)) in path_spawn()
/titanic_41/usr/src/lib/libshell/common/edit/
H A Dedit.c596 ep->e_multiline = sh_isoption(SH_MULTILINE)!=0; in ed_setup()
629 if(!sh_isoption(SH_VI) && !sh_isoption(SH_EMACS) && !sh_isoption(SH_GMACS)) in ed_setup()
821 if(ep->sh->winch && sh_isstate(SH_INTERACTIVE) && (sh_isoption(SH_VI) || sh_isoption(SH_EMACS))) in ed_read()
860 if(sh_isoption(SH_EMACS) || sh_isoption(SH_VI)) in ed_read()
1325 if(sh_isoption(SH_VI))
1338 if(curp == sp && sh_isoption(SH_VI))
H A Dcompletion.c203 int nomarkdirs = !sh_isoption(SH_MARKDIRS); in ed_expand()
236 out = outbuff + *cur + (sh_isoption(SH_VI)!=0); in ed_expand()
554 ep->e_eol = ((unsigned char*)cp - (unsigned char*)ep->e_inbuf)-(sh_isoption(SH_VI)!=0); in ed_fulledit()
/titanic_41/usr/src/lib/libshell/common/include/
H A Dshell.h206 extern unsigned long sh_isoption(int);
/titanic_41/usr/src/lib/libshell/amd64/include/ast/
H A Dshell.h216 extern __MANGLE__ unsigned long sh_isoption __PROTO__((int));
/titanic_41/usr/src/lib/libshell/common/bltins/
H A Dwhence.c60 if(sh_isoption(SH_RESTRICTED)) in b_command()
H A Dtypeset.c822 if(sh_isoption(SH_RESTRICTED)) in b_builtin()
824 if(sh_isoption(SH_PFSH)) in b_builtin()
907 if(sh_isoption(SH_VERBOSE)) in b_set()
911 if(sh_isoption(SH_MONITOR)) in b_set()
H A Dcd_pwd.c62 if(sh_isoption(SH_RESTRICTED)) in b_cd()
H A Dmisc.c112 if(sh_isoption(SH_RESTRICTED)) in B_login()
416 if(!sh_isoption(SH_MONITOR) || !job.jobcontrol) in b_bg()
/titanic_41/usr/src/lib/libshell/i386/include/ast/
H A Dshell.h216 extern __MANGLE__ unsigned long sh_isoption __PROTO__((int));
/titanic_41/usr/src/lib/libshell/
H A Dmapfile-vers78 sh_isoption;
/titanic_41/usr/src/lib/libshell/sparc/include/ast/
H A Dshell.h216 extern __MANGLE__ unsigned long sh_isoption __PROTO__((int));
/titanic_41/usr/src/lib/libshell/sparcv9/include/ast/
H A Dshell.h216 extern __MANGLE__ unsigned long sh_isoption __PROTO__((int));

12