/ast/src/cmd/ksh93/sh/ |
H A D | xec.c | 89 Shell_t *shp = (Shell_t*)handle; local 93 unlink(shp->fifo); 94 sh_done(shp,0); 107 static int iousepipe(Shell_t *shp) argument 113 iounpipe(shp); 121 shp->fdstatus[subpipe[2]] = shp->fdstatus[1]; 124 shp->fdstatus[1] = shp->fdstatus[subpipe[1]]; 126 if(subdup=shp 138 iounpipe(Shell_t *shp) argument 207 p_time(Shell_t *shp, Sfio_t *out, const char *format, clock_t *tm) argument 482 init_level(Shell_t *shp,int level) argument 498 sh_debug(Shell_t *shp, const char *trap, const char *name, const char *subscript, char *const argv[], int flags) argument 571 Shell_t *shp = sh_getinterp(); local 671 set_instance(Shell_t *shp,Namval_t *nq, Namval_t *node, struct Namref *nr) argument 747 sh_coinit(Shell_t *shp,char **argv) argument 794 sh_coaddfile(Shell_t *shp, char *name) argument 808 sh_coexec(Shell_t *shp,const Shnode_t *t, int filt) argument 899 openstream(Shell_t *shp, struct ionod *iop, int *save) argument 917 enter_namespace(Shell_t *shp, Namval_t *nsp) argument 968 register Shell_t *shp = sh_getinterp(); local 2959 Shell_t *shp = sh_getinterp(); local 3008 sh_trace(Shell_t *shp,register char *argv[], register int nl) argument 3081 _sh_fork(Shell_t *shp,register pid_t parent,int flags,int *jobid) argument 3232 sh_fork(Shell_t *shp,int flags, int *jobid) argument 3267 Shell_t *shp = ((struct Tdata*)data)->sh; local 3279 sh_mathfun(Shell_t *shp,void *fp, int nargs, Sfdouble_t *arg) argument 3323 register Shell_t *shp = sh_getinterp(); local 3471 sh_funct(Shell_t *shp,Namval_t *np,int argn, char *argv[],struct argnod *envlist,int execflg) argument 3538 Shell_t *shp = sh_getinterp(); local 3612 coproc_init(Shell_t *shp, int pipes[]) argument 3657 run_subshell(Shell_t *shp,const Shnode_t *t,pid_t grp) argument 3730 sigreset(Shell_t *shp,int mode) argument 3746 sh_ntfork(Shell_t *shp,const Shnode_t *t,char *argv[],int *jobid,int flag) argument [all...] |
H A D | fault.c | 65 register Shell_t *shp = sh_getinterp(); local 68 register struct checkpt *pp = (struct checkpt*)shp->jmplist; 84 shp->winch++; 87 trap = shp->st.trapcom[sig]; 88 if(shp->savesig) 91 if(!(shp->sigflag[sig]&SH_SIGIGNORE)) 92 shp->savesig = sig; 95 if(sig==SIGALRM && shp->bltinfun==b_sleep) 99 shp->trapnote |= SH_SIGTRAP; 100 shp 227 Shell_t *shp = (Shell_t*)ptr; local 387 sh_chktrap(Shell_t* shp) argument 448 Shell_t *shp = sh_getinterp(); local 512 Shell_t *shp = sh_getinterp(); local 605 Shell_t *shp = (Shell_t*)ptr; local [all...] |
H A D | main.c | 56 static void chkmail(Shell_t *shp, char*); 94 int sh_source(Shell_t *shp, Sfio_t *iop, const char *file) argument 100 if (!file || !*file || (fd = path_open(shp,file, PATHCOMP)) < 0) 107 shp->st.filename = path_fullname(shp,stakptr(PATH_OFFSET)); 109 exfile(shp, iop, fd); 126 register Shell_t *shp; local 141 shp = sh_init(ac,av,userinit); 145 if(sigsetjmp(*((sigjmp_buf*)shp->jmpbuffer),0)) 149 shp 364 exfile(register Shell_t *shp, register Sfio_t *iop,register int fno) argument 612 chkmail(Shell_t *shp, char *files) argument [all...] |
H A D | subshell.c | 68 Shell_t *shp; /* shell interpreter */ member in struct:subshell 117 void sh_subtmpfile(Shell_t *shp) argument 122 register struct checkpt *pp = (struct checkpt*)shp->jmplist; 128 shp->fdstatus[fd] = shp->fdstatus[1]|IOCLEX; 154 shp->fdstatus[fd] = IOREAD|IOWRITE; 161 shp->fdstatus[1] = shp->fdstatus[fd]; 162 shp->fdstatus[fd] = IOCLOSE; 165 sh_iostream(shp, 182 Shell_t *shp = sp->shp; local 246 Shell_t *shp = sp->shp; local 468 sh_subshell(Shell_t *shp,Shnode_t *t, volatile int flags, int comsub) argument [all...] |
H A D | trestore.c | 47 Shnode_t *sh_trestore(Shell_t *shp,Sfio_t *in) argument 51 t = r_tree(shp); 57 static Shnode_t *r_tree(Shell_t *shp) argument 69 t = getnode(shp->stk,parnod); 70 t->par.partre = r_tree(shp); 73 t = getnode(shp->stk,comnod); 75 r_comarg(shp,(struct comnod*)t); 79 t = getnode(shp->stk,forknod); 81 t->fork.forktre = r_tree(shp); 82 t->fork.forkio = r_redirect(shp); 177 r_arg(Shell_t *shp) argument 232 r_redirect(Shell_t* shp) argument 269 r_comarg(Shell_t *shp,struct comnod *com) argument 300 r_comlist(Shell_t *shp) argument 316 r_switch(Shell_t *shp) argument [all...] |
H A D | path.c | 58 static void path_checkdup(Shell_t *shp,register Pathcomp_t*); 77 int path_xattr(Shell_t *shp, const char *path, char *rpath) argument 80 if (shp->gd->user && *shp->gd->user) 87 if(pf=getexecuser(shp->gd->user, KV_COMMAND, resolvedpath, GET_ONE)) 103 static pid_t path_pfexecve(Shell_t *shp,const char *path, char *argv[],char *const envp[],int spawn) argument 111 _sh_fork(shp,pid, 0, (int*)0); 122 if(!path_xattr(shp,path,resolvedpath)) 134 static pid_t _spawnveg(Shell_t *shp,const char *path, char* const argv[], char* const envp[], pid_t pgid) argument 152 static pid_t path_xargs(Shell_t *shp,cons argument 235 path_pwd(Shell_t *shp,int flag) argument 318 path_lib(Shell_t *shp,Pathcomp_t *pp, char *path) argument 367 path_checkdup(Shell_t *shp,register Pathcomp_t *pp) argument 408 path_nextcomp(Shell_t *shp,register Pathcomp_t *pp, const char *name, Pathcomp_t *last) argument 451 defpath_init(Shell_t *shp) argument 457 path_init(Shell_t *shp) argument 482 path_get(register Shell_t *shp,register const char *name) argument 504 path_opentype(Shell_t *shp,const char *name, register Pathcomp_t *pp, int fun) argument 545 path_open(Shell_t *shp,const char *name, register Pathcomp_t *pp) argument 563 path_fullname(Shell_t *shp,const char *name) argument 586 funload(Shell_t *shp,int fno, const char *name) argument 655 path_search(Shell_t *shp,register const char *name,Pathcomp_t **oldpp, int flag) argument 732 path_absolute(Shell_t *shp,register const char *name, Pathcomp_t *pp) argument 927 canexecute(Shell_t *shp,register char *path, int isfun) argument 976 path_relative(Shell_t *shp,register const char* file) argument 999 path_exec(Shell_t *shp,register const char *arg0,register char *argv[],struct argnod *local) argument 1045 path_spawn(Shell_t *shp,const char *opath,register char **argv, char **envp, Pathcomp_t *libpath, int spawn) argument 1258 exscript(Shell_t *shp,register char *path,register char *argv[],char **envp) argument 1448 path_addcomp(Shell_t *shp,Pathcomp_t *first, Pathcomp_t *old,const char *name, int flag) argument 1501 path_chkpaths(Shell_t *shp,Pathcomp_t *first, Pathcomp_t* old,Pathcomp_t *pp, int offset) argument 1576 path_addpath(Shell_t *shp,Pathcomp_t *first, register const char *path,int type) argument 1650 path_newdir(Shell_t *shp,Pathcomp_t *first) argument 1704 path_unsetfpath(Shell_t *shp) argument [all...] |
H A D | io.c | 406 int sh_iovalidfd(Shell_t *shp, int fd) argument 408 Sfio_t **sftable = shp->sftable; 409 int max,n, **fdptrs = shp->fdptrs; 410 unsigned char *fdstatus = shp->fdstatus; 413 if(fd < shp->gd->lim.open_max) 424 max = shp->gd->lim.open_max; 425 shp->sftable = (Sfio_t**)calloc((n+1)*(sizeof(int*)+sizeof(Sfio_t*)+1),1); 427 memcpy(shp->sftable,sftable,max*sizeof(Sfio_t*)); 428 shp->fdptrs = (int**)(&shp 440 sh_inuse(Shell_t *shp, int fd) argument 445 sh_ioinit(Shell_t *shp) argument 474 Shell_t *shp = ((struct Iodisc*)handle)->sh; local 517 sh_iostream(Shell_t *shp, register int fd) argument 593 io_preserve(Shell_t* shp, register Sfio_t *sp, register int f2) argument 633 sh_iorenumber(Shell_t *shp, register int f1,register int f2) argument 685 Shell_t *shp = sh_getinterp(); local 736 Shell_t *shp = sh_getinterp(); local 872 Shell_t *shp = sh_getinterp(); local 890 Shell_t *shp = sh_getinterp(); local 913 Shell_t *shp = sh_getinterp(); local 928 sh_coaccept(Shell_t *shp,int *pv,int out) argument 950 sh_copipe(Shell_t *shp, int *pv, int out) argument 997 io_patseek(Shell_t *shp, regex_t *rp, Sfio_t* sp, int flags) argument 1034 file_offset(Shell_t *shp, int fn, char *fname) argument 1134 sh_redirect(Shell_t *shp,struct ionod *iop, int flag) argument 1552 io_heredoc(Shell_t *shp,register struct ionod *iop, const char *name, int traceon) argument 1649 sh_iosave(Shell_t *shp, register int origfd, int oldtop, char *name) argument 1728 sh_iounsave(Shell_t* shp) argument 1747 sh_iorestore(Shell_t *shp, int last, int jmpval) argument 1822 Shell_t *shp = sh_getinterp(); local 1843 Shell_t *shp = ((struct Iodisc*)handle)->sh; local 1907 Shell_t *shp = (Shell_t*)handle; local 1927 Shell_t *shp = ((struct Iodisc*)handle)->sh; local 1955 Shell_t *shp = ((struct Iodisc*)handle)->sh; local 2035 sh_iocheckfd(Shell_t *shp, register int fd) argument 2112 io_prompt(Shell_t *shp,Sfio_t *iop,register int flag) argument 2202 Shell_t *shp = sh_getinterp(); local 2366 subopen(Shell_t *shp,Sfio_t* sp, off_t offset, long size) argument 2438 Shell_t *shp = sh_getinterp(); local 2496 Shell_t *shp = sh_getinterp(); local 2510 Shell_t *shp = sh_getinterp(); local 2524 Shell_t *shp = sh_getinterp(); local 2535 Shell_t *shp = sh_getinterp(); local 2551 Shell_t *shp = sh_getinterp(); local 2583 Shell_t *shp = sh_getinterp(); local 2597 Shell_t *shp = sh_getinterp(); local 2650 Shell_t *shp = sh_getinterp(); local 2668 Shell_t *shp = sh_getinterp(); local [all...] |
H A D | init.c | 259 Shell_t *shp = nv_shell(np); local 260 if(*name=='E' && nv_getval(sh_scoped(shp,VISINOD))) 262 if(!(cp=val) && (*name=='E' || !(cp=nv_getval(sh_scoped(shp,EDITNOD))))) 286 Shell_t *shp = nv_shell(np); local 287 void *histopen = shp->gd->hist_ptr; 293 if(np==HISTSIZE && sh_arith(shp,val)==nv_getnum(HISTSIZE)) 295 hist_close(shp->gd->hist_ptr); 301 sh_histinit(shp); 310 Shell_t *shp = nv_shell(np); local 311 shp 335 Shell_t *shp = nv_shell(np); local 380 Shell_t *shp = nv_shell(np); local 412 Shell_t *shp = nv_shell(np); local 541 register Shell_t *shp = nv_shell(np); local 620 Shell_t *shp = nv_shell(np); local 704 Shell_t *shp = nv_shell(np); local 728 Shell_t *shp = nv_shell(np); local 738 Shell_t *shp = nv_shell(np); local 766 sh_setmatch(Shell_t *shp,const char *v, int vsize, int nmatch, regoff_t match[],int index) argument 978 Shell_t *shp = sh_getinterp(); local 994 math_init(Shell_t *shp) argument 1015 Shell_t *shp = nv_shell(np); local 1026 Shell_t *shp = nv_shell(np); local 1047 Shell_t *shp=nv_shell(np); local 1101 Shell_t *shp = sh_getinterp(); local 1263 Shell_t *shp; local 1594 Shell_t *shp = sh_getinterp(); local 1727 Shell_t *shp = sp->sh; local 1760 Shell_t *shp = sh_getinterp(); local 1776 stat_init(Shell_t *shp) argument 1807 nv_init(Shell_t *shp) argument 1934 inittree(Shell_t *shp,const struct shtable2 *name_vals) argument 1993 env_init(Shell_t *shp) argument 2141 DISABLE(Shell_t *shp) argument [all...] |
H A D | name.c | 213 Shell_t *shp = sh_getinterp(); local 214 register struct sh_type *sp = (struct sh_type*)shp->mktype; 217 if(sp->numnodes==0 && !nv_isnull(np) && shp->last_table) 220 Dt_t *root = nv_dict(shp->last_table); 239 Dt_t *root = nv_dict(shp->last_table); 296 Shell_t *shp = sh_getinterp(); local 299 char *trap=shp->st.trap[SH_DEBUGTRAP]; 300 char *prefix = shp->prefix; 311 shtp.previous = shp->mktype; 312 shp 755 Shell_t *shp = sh_getinterp(); local 1330 Shell_t *shp = sh_getinterp(); local 1597 Shell_t *shp = sh_getinterp(); local 2216 Shell_t *shp = sh_getinterp(); local 2238 Shell_t *shp = sh_getinterp(); local 2344 sh_scope(Shell_t *shp, struct argnod *envlist, int fun) argument 2427 table_unset(Shell_t *shp, register Dt_t *root, int flags, Dt_t *oroot) argument 2485 Shell_t *shp = sh_getinterp(); local 2611 sh_scoped(Shell_t *shp, register Namval_t *np) argument 2692 Shell_t *shp = sh_getinterp(); local 2736 sh_optclear(Shell_t *shp, void *old) argument 2770 Shell_t *shp = sh_getinterp(); local 2902 Shell_t *shp = sh_getinterp(); local 2988 Shell_t *shp = sh_getinterp(); local 3135 Shell_t *shp = sh_getinterp(); local 3167 Shell_t *shp = sh_getinterp(); local 3183 Shell_t *shp = sh_getinterp(); local 3240 Shell_t *shp = sh_getinterp(); local 3375 Shell_t *shp = sh_getinterp(); local 3498 Shell_t *shp = sh_getinterp(); local 3529 Shell_t *shp = sh_getinterp(); local 3539 sh_unscope(Shell_t *shp) argument 3634 Shell_t *shp = sh_getinterp(); local 3711 Shell_t *shp = sh_getinterp(); local [all...] |
H A D | args.c | 101 void *sh_argopen(Shell_t *shp) argument 105 ap->sh = shp; 140 Shell_t *shp = (Shell_t*)context; local 142 register Arg_t *ap = (Arg_t*)(shp->arg_context); 143 Lex_t *lp = (Lex_t*)(shp->lex_context); 324 sh_trace(shp,argv,1); 385 void sh_applyopts(Shell_t* shp,Shopt_t newflags) argument 392 if(!sh_isstate(SH_INIT) && is_option(&newflags,SH_PRIVILEGED) != sh_isoption(SH_PRIVILEGED) || sh_isstate(SH_INIT) && is_option(&((Arg_t*)shp->arg_context)->sh->offoptions,SH_PRIVILEGED) && shp->gd->userid!=shp 481 sh_argfree(Shell_t *shp, struct dolnod *blk,int flag) argument 546 sh_argnew(Shell_t *shp,char *argi[], struct dolnod **savargfor) argument 560 sh_argreset(Shell_t *shp,struct dolnod *blk, struct dolnod *afor) argument 575 sh_arguse(Shell_t* shp) argument 699 sh_argbuild(Shell_t *shp,int *nargs, const struct comnod *comptr,int flag) argument 781 sh_argprocsub(Shell_t *shp,struct argnod *argp) argument 833 arg_expand(Shell_t *shp,register struct argnod *argp, struct argnod **argchain,int flag) argument [all...] |
H A D | bash.c | 192 Shell_t *shp = (Shell_t*)extra; local 194 Shopt_t newflags=shp->options, opt; 289 sh_applyopts(shp,newflags); 290 shp->options = newflags; 292 sh_trace(shp,argv,1); 311 void bash_init(Shell_t *shp,int mode) argument 322 sh_source(shp, NiL, sh_mactry(shp,(char*)e_bash_logout)); 337 if(shp->login_sh==2) 356 if(np=nv_open("HOSTTYPE",shp [all...] |
H A D | macro.c | 68 Shell_t *shp; /* pointer to shell interpreter */ member in struct:_mac_ 124 void *sh_macopen(Shell_t *shp) argument 128 mp->shp = shp; 135 char *sh_mactry(Shell_t *shp,register char *string) argument 140 int savexit = shp->savexit; 142 sh_pushcontext(shp,&buff,SH_JMPSUB); 145 string = sh_mactrim(shp,string,0); 146 sh_popcontext(shp,&buff); 147 shp 160 sh_mactrim(Shell_t *shp, char *str, register int mode) argument 202 sh_macexpand(Shell_t* shp, register struct argnod *argp, struct argnod **arghead,int flag) argument 269 sh_machere(Shell_t *shp,Sfio_t *infile, Sfio_t *outfile, char *string) argument 414 sh_macpat(Shell_t *shp,register struct argnod *arg, int flags) argument 903 getdolarg(Shell_t *shp, int n, int *size) argument 958 prefix(Shell_t *shp, char *id) argument 1026 sh_macfun(Shell_t *shp, const char *name, int offset) argument 2590 Shell_t *shp = context->shp; local 2602 tilde_expand2(Shell_t *shp, register int offset) argument 2654 sh_tilde(Shell_t *shp,register const char *string) argument 2726 special(Shell_t *shp,register int c) argument [all...] |
H A D | jobs.c | 198 void job_chldtrap(Shell_t *shp, const char *trap, int unpost) argument 204 shp->sigflag[SIGCHLD] &= ~SH_SIGTRAP; 205 trapnote = shp->trapnote; 206 shp->trapnote = 0; 213 bckpid = shp->bckpid; 214 oldexit = shp->savexit; 215 shp->bckpid = pw->p_pid; 216 shp->savexit = pw->p_exit; 218 shp->savexit |= SH_EXITSIG; 222 shp 263 sh_pid2str(Shell_t *shp,pid_t pid) argument 284 Shell_t *shp = sh_getinterp(); local 338 Shell_t *shp = sh_getinterp(); local 601 job_init(Shell_t *shp, int lflag) argument 746 job_close(Shell_t* shp) argument 825 Shell_t *shp = pw->p_shp; local 997 Shell_t *shp = sh_getinterp(); local 1114 Shell_t *shp = pw->p_shp; local 1252 Shell_t *shp = sh_getinterp(); local 1295 job_post(Shell_t *shp,pid_t pid, pid_t join) argument 1487 Shell_t *shp = sh_getinterp(); local [all...] |
/ast/src/cmd/ksh93/bltins/ |
H A D | cflow.c | 49 register Shell_t *shp = context->shp; local 50 struct checkpt *pp = (struct checkpt*)shp->jmplist; 67 n = (((arg= *argv)?(int)strtol(arg, (char**)0, 10):shp->oldexit)); 68 if(n<0 || n==256 || n > SH_EXITMASK+shp->gd->sigmax+1) 71 if(shp->fn_depth==0 && shp->dot_depth==0 && !sh_isstate(SH_PROFILE)) 73 sh_exit(shp->savexit=n); 89 register Shell_t *shp = context->shp; local [all...] |
H A D | trap.c | 48 register Shell_t *shp = context->shp; local 85 else if(*action=='+' && action[1]==0 && shp->st.self == &shp->global) 96 sig = sig_number(shp,arg); 105 char **trap = (shp->st.otrap?shp->st.otrap:shp->st.trap); 118 shp->st.otrap = 0; 119 if(shp 171 register Shell_t *shp = context->shp; local 240 sig_number(Shell_t *shp,const char *string) argument 318 sig_name(Shell_t *shp,int sig, char* buf, int pfx) argument 360 sig_list(register Shell_t *shp,register int flag) argument [all...] |
H A D | misc.c | 66 logdata.sh = context->shp; 102 register Shell_t *shp; local 105 shp = context->shp; 109 shp = logp->sh; 111 pp = (struct checkpt*)shp->jmplist; 116 register struct argnod *arg=shp->envlist; 119 if(shp->subshell && !shp->subshare) 124 env_close(shp 163 Shell_t *shp = context->shp; local 185 register Shell_t *shp = context->shp; local 212 register Shell_t *shp = context->shp; local 347 register Shell_t *shp = context->shp; local 373 register Shell_t *shp = context->shp; local 399 register Shell_t *shp = context->shp; local 433 register Shell_t *shp = context->shp; local 516 register Shell_t *shp = context->shp; local [all...] |
H A D | cd_pwd.c | 57 register Shell_t *shp = context->shp; local 84 oldpwd = (char*)shp->pwd; 85 opwdnod = (shp->subshell?sh_assignok(OLDPWDNOD,1):OLDPWDNOD); 86 pwdnod = (shp->subshell?sh_assignok(PWDNOD,1):PWDNOD); 101 if(!(cdpath = (Pathcomp_t*)shp->cdpathlist) && (dp=sh_scoped(shp,CDPNOD)->nvalue.cp)) 103 if(cdpath=path_addpath(shp,(Pathcomp_t*)0,dp,PATH_CDPATH)) 105 shp->cdpathlist = (void*)cdpath; 106 cdpath->shp 235 register Shell_t *shp = context->shp; local [all...] |
H A D | sleep.c | 49 register Shell_t *shp = context->shp; local 53 if(!(shp->sigflag[SIGALRM]&(SH_SIGFAULT|SH_SIGOFF))) 78 else if(*last=='.' && shp->decomma && d==(unsigned long)d) 116 shp->lastsig=0; 118 if(sflag || tloc==0 || errno!=EINTR || shp->lastsig) 120 sh_sigcheck(shp); 124 if(shp->sigflag[SIGALRM]&SH_SIGTRAP) 125 sh_timetraps(shp); 138 Shell_t *shp local 176 Shell_t *shp = sh_getinterp(); local [all...] |
H A D | getopts.c | 38 Shell_t *shp = *(Shell_t**)(dp+1); local 39 Stk_t *stkp = shp->stk; 41 if((shp->namespace && sh_fsearch(shp,s,0)) || nv_search(s,shp->fun_tree,0)) 43 if(nv_search(s,shp->fun_tree,0)) 51 sfputr(sp,sh_mactry(shp,stkfreeze(stkp,1)),-1); 62 register Shell_t *shp = context->shp; local 74 disc.sh = shp; [all...] |
H A D | read.c | 67 register Shell_t *shp = context->shp; local 69 long timeout = 1000*shp->st.tmout; 111 if((fd = shp->cpipe[0])<=0) 131 if(sh_inuse(shp,fd)) 147 if(!((r=shp->fdstatus[fd])&IOREAD) || !(r&(IOSEEK|IONOSEEK))) 148 r = sh_iocheckfd(shp,fd); 168 shp->prompt = default_prompt; 169 if(r && (shp->prompt=(char*)sfreserve(sfstderr,r,SF_LOCKR))) 171 memcpy(shp 204 sh_readline(register Shell_t *shp,char **names, volatile int fd, int flags,ssize_t size,long timeout) argument [all...] |
H A D | test.c | 85 static int test_strmatch(Shell_t *shp,const char *str, const char *pat) argument 107 sh_setmatch(shp, str, -1, n, match, 0); 116 tdata.sh = context->shp; 313 int test_unop(Shell_t *shp,register int op,register const char *arg) argument 411 return(statb.st_uid==shp->gd->userid); 412 return(statb.st_gid==shp->gd->groupid); 436 if(!(np = nv_open(arg,shp->var_tree,NV_VARNAME|NV_NOFAIL|NV_NOADD|NV_NOREF))) 464 int test_binop(Shell_t *shp,register int op,const char *left,const char *right) argument 473 lnum = sh_arith(shp,left); 474 rnum = sh_arith(shp,righ 560 Shell_t *shp = sh_getinterp(); local [all...] |
H A D | alarm.c | 129 void sh_timetraps(Shell_t *shp) argument 135 shp->sigflag[SIGALRM] &= ~SH_SIGALRM; 136 tptop= (struct tevent*)shp->st.timetrap; 153 if(!(shp->sigflag[SIGALRM]&SH_SIGALRM)) 187 Shell_t *shp = tp->sh; local 209 shp->st.timetrap = time_delete(tp,shp->st.timetrap); 211 shp->st.timetrap = time_add(tp,shp->st.timetrap); 216 shp 238 register Shell_t *shp = context->shp; local [all...] |
H A D | whence.c | 55 register Shell_t *shp = context->shp; local 71 shp->xargexit = 1; 89 return(whence(shp,argv, flags)); 98 register Shell_t *shp = context->shp; local 130 return(whence(shp, argv, flags)); 133 static int whence(Shell_t *shp,char **argv, register int flags) argument 167 if((np=nv_search(name,shp->alias_tree,0)) 187 root = (flags&F_FLAG)?shp [all...] |
/ast/src/cmd/ksh93/include/ |
H A D | fault.h | 108 #define sh_pushcontext(shp,bp,n)( (bp)->mode=(n) , (bp)->olist=0, \ 109 (bp)->topfd=shp->topfd, (bp)->prev=shp->jmplist, \ 111 shp->jmplist = (sigjmp_buf*)(&(bp)->buff) \ 113 #define sh_popcontext(shp,bp) (shp->jmplist=(bp)->prev, errorpop(&((bp)->err)))
|
/ast/src/cmd/tksh/ |
H A D | uinit.c | 28 static void tksh_userinit(Shell_t* shp, int subshell) argument 35 if(np = nv_open("source",shp->alias_tree,NV_NOADD)) 42 if(nv_open("tkloop",shp->fun_tree,NV_NOADD))
|