Home
last modified time | relevance | path

Searched refs:exitval (Results 1 – 25 of 59) sorted by relevance

123

/titanic_51/usr/src/cmd/sh/
H A Dbltin.c271 exitval = readvar(&argv[1]); in builtin()
294 exitval = 0; in builtin()
309 exitval = 0; in builtin()
363 exitval = test(argc, argv); in builtin()
367 exitval = echo(argc, argv); in builtin()
371 exitval = 0; in builtin()
398 exitval = 0; in builtin()
408 exitval = (a1 ? stoi(a1) : retval); in builtin()
412 exitval = 0; in builtin()
417 exitval | in builtin()
[all...]
H A Dfault.c182 savxit = exitval; in done()
184 exitval = savxit; /* Restore exit value */ in done()
218 exit(exitval); in done()
354 int savxit = exitval; in chktrap()
357 exitval = savxit; in chktrap()
H A Dxec.c83 exitval = 0;
134 exitval = 0;
235 exitval = 0;
458 exitval = i;
468 exitval = 0; /* force zero exit for if-then-fi */
505 return(exitval);
H A Derror.c81 exitval = ERROR; in failure_real()
96 exitval = xno; in exitsh()
H A Ddefs.h408 extern int exitval;
517 exitsh(exitval ? exitval : SIGFAIL)
519 #define exitset() retval = exitval
H A Ddefs.c88 int exitval; variable
/titanic_51/usr/src/cmd/tsol/tnchkdb/
H A Dtnchkdb.c46 static int exitval; variable
212 return (exitval); in main()
243 exitval = 1;
251 exitval = 1;
262 exitval = 1;
290 exitval = 2;
308 exitval = 1;
342 exitval = 1;
368 exitval = 1;
398 exitval
[all...]
/titanic_51/usr/src/lib/libshell/common/sh/
H A Dfault.c103 shp->exitval = SH_EXITSIG|sig; in sh_fault()
105 shp->exitval = 0; in sh_fault()
384 if(sh_isstate(SH_ERREXIT) && sh.exitval) in sh_chktrap()
400 sh_exit(sh.exitval); in sh_chktrap()
438 int jmpval, savxit = shp->exitval; in sh_trap()
474 savxit = shp->exitval; in sh_trap()
482 shp->exitval=savxit; in sh_trap()
493 return(shp->exitval); in sh_trap()
505 shp->exitval=xno; in sh_exit()
507 shp->exitval |= (sig=shp->lastsig); in sh_exit()
[all …]
H A Dxec.c527 return(shp->exitval); in sh_eval()
696 shp->oldexit=shp->exitval; in sh_exec()
697 shp->exitval=0; in sh_exec()
987 shp->exitval = 0; in sh_exec()
1008 shp->exitval = (*shp->bltinfun)(argn,com,(void*)bp); in sh_exec()
1013 if(!nv_isattr(np,BLT_EXIT) && shp->exitval!=SH_RUNPROG) in sh_exec()
1014 shp->exitval &= SH_EXITMASK; in sh_exec()
1083 if(shp->exitval >=0) in sh_exec()
1109 shp->exitval = ERROR_NOEXEC; in sh_exec()
1114 shp->exitval = ERROR_NOENT; in sh_exec()
[all …]
H A Djobs.c60 unsigned short exitval; member
235 jp->exitval = 0; in jobsave_create()
318 jp->exitval = SH_STOPSIG; in job_reap()
402 jp->exitval = pw->p_exit; in job_reap()
404 jp->exitval |= SH_EXITSIG; in job_reap()
1319 if((sh.exitval = job_chksave(pid)) < 0) in job_wait()
1320 sh.exitval = ERROR_NOENT; in job_wait()
1327 sh.exitval = ERROR_NOENT; in job_wait()
1417 sh.exitval=px->p_exit; in job_wait()
1419 sh.exitval |= SH_EXITSIG; in job_wait()
[all …]
H A Dsubshell.c580 shp->oldexit = shp->exitval; in sh_subshell()
590 shp->exitval &= SH_EXITMASK; in sh_subshell()
646 if(shp->exitval > SH_EXITSIG) in sh_subshell()
647 sp->sig = (shp->exitval&SH_EXITMASK); in sh_subshell()
648 shp->exitval = 0; in sh_subshell()
742 if(shp->exitval > SH_EXITSIG) in sh_subshell()
744 int sig = shp->exitval&SH_EXITMASK; in sh_subshell()
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dfault.c106 shp->exitval = SH_EXITSIG|sig; in sh_fault()
108 shp->exitval = 0; in sh_fault()
395 if(sh_isstate(SH_ERREXIT) && shp->exitval) in sh_chktrap()
411 sh_exit(shp->exitval); in sh_chktrap()
449 int jmpval, savxit = shp->exitval; in sh_trap()
485 savxit = shp->exitval; in sh_trap()
493 shp->exitval=savxit; in sh_trap()
504 return(shp->exitval); in sh_trap()
516 shp->exitval=xno; in sh_exit()
518 shp->exitval | in sh_exit()
[all...]
H A Dxec.c640 return(shp->exitval); in sh_eval()
1019 shp->oldexit=shp->exitval; in sh_exec()
1020 shp->exitval=0; in sh_exec()
1379 shp->exitval = 0; in sh_exec()
1400 shp->exitval = (*shp->bltinfun)(argn,com,(void*)bp); in sh_exec()
1405 if(sh.exitval && errno==EINTR && shp->lastsig) in sh_exec()
1406 sh.exitval = SH_EXITSIG|shp->lastsig; in sh_exec()
1407 else if(!nv_isattr(np,BLT_EXIT) && shp->exitval!=SH_RUNPROG) in sh_exec()
1408 shp->exitval &= SH_EXITMASK; in sh_exec()
1483 if(shp->exitval > in sh_exec()
2048 int *exitval=0,*saveexitval = job.exitval; sh_exec() local
[all...]
H A Djobs.c60 unsigned short exitval; member
252 jp->exitval = 0; in jobsave_create()
325 shp->exitval = fun?1:ERROR_NOENT; in job_cowalk()
327 shp->exitval = r; in job_cowalk()
453 jp->exitval = SH_STOPSIG; in job_reap()
537 jp->exitval = pw->p_exit; in job_reap()
539 jp->exitval |= SH_EXITSIG; in job_reap()
1413 pw->p_exitval = job.exitval; in job_post()
1572 if((shp->exitval = job_chksave(pid,shp->curenv)) < 0) in job_wait()
1573 shp->exitval in job_wait()
[all...]
/titanic_51/usr/src/cmd/mkfifo/
H A Dmkfifo.c60 int exitval = 0; in main() local
100 exitval = 1; in main()
104 return (exitval); in main()
/titanic_51/usr/src/cmd/fmtmsg/
H A Dmain.c514 int exitval; /* Value to return */ in main()
824 exitval = 0; in main()
825 if (msgrtn == MM_NOTOK) exitval = 32; in main()
827 if (msgrtn & MM_NOMSG) exitval += 2; in main()
828 if (msgrtn & MM_NOCON) exitval += 4;
831 return(exitval);
509 int exitval; /* Value to return */ main() local
/titanic_51/usr/src/cmd/ast/ksh/builtins/
H A Dalias.c177 "exitval=$?";
185 int exitval; in script_builtin_main() local
209 np = nv_open("exitval", shp->var_tree, 0); in script_builtin_main()
211 error(ERROR_exit(1), "variable %s not found.", "exitval"); in script_builtin_main()
212 exitval = (int)nv_getnum(np); in script_builtin_main()
217 return (exitval); in script_builtin_main()
/titanic_51/usr/src/cmd/ksh/builtins/
H A Dalias.c200 int exitval; in script_builtin_main() local
225 exitval = (int)nv_getnum(np); in script_builtin_main()
228 return (exitval); in script_builtin_main()
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/tests/
H A Dtreemove.sh157 if ((exitval=$?))
158 then if [[ $(kill -l $exitval) == SEGV ]]
H A Dtypes.sh513 exitval=$?
514 if [[ $(kill -l $exitval) == TERM ]]
516 elif ((exitval))
606 if (( exitval=$?))
607 then if [[ $(kill -l $exitval) == SEGV ]]
/titanic_51/usr/src/lib/libshell/common/bltins/
H A Dmisc.c204 return(shp->exitval); in b_eval()
314 if(shp->exitval > SH_EXITSIG) in b_dot_cmd()
315 sh_fault(shp->exitval&SH_EXITMASK); in b_dot_cmd()
318 return(shp->exitval); in b_dot_cmd()
386 return(shp->exitval); in b_wait()
426 return(shp->exitval); in b_bg()
459 return(shp->exitval); in b_jobs()
H A Dtrap.c213 shp->exitval = 2; in b_kill()
219 return(shp->exitval); in b_kill()
227 shp->exitval = 1; in b_kill()
228 return(shp->exitval); in b_kill()
/titanic_51/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dutil.c199 int exitval; in alrm_exit() local
202 exitval = EXIT_SUCCESS; in alrm_exit()
204 exitval = EXIT_FAILURE; in alrm_exit()
206 _exit(exitval); in alrm_exit()
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dtrap.c237 shp->exitval = 2; in b_kill()
243 return(shp->exitval); in b_kill()
251 shp->exitval = 1; in b_kill()
252 return(shp->exitval); in b_kill()
H A Dmisc.c204 return(shp->exitval); in b_eval()
319 return(shp->exitval); in b_dot_cmd()
387 return(shp->exitval); in b_wait()
427 return(shp->exitval); in b_bg()
460 return(shp->exitval); in b_jobs()

123