Searched refs:com (Results 1 - 17 of 17) sorted by relevance

/ast/src/cmd/mailx/
H A Dlex.c379 struct cmd* com; local
428 if (!(com = (struct cmd*)strpsearch(state.cmdtab, state.cmdnum, sizeof(struct cmd), a, &next))) {
432 state.cmd = com;
445 if (!(com->c_argtype & C) && state.cond && state.cond != state.mode)
455 if (state.mode == SEND && !(com->c_argtype & M)) {
457 com->c_name);
460 if (state.sourcing && (com->c_argtype & I)) {
462 com->c_name);
465 if (state.readonly && (com->c_argtype & W)) {
467 com
[all...]
/ast/src/cmd/ksh93/sh/
H A Dshcomp.c17 * David Korn <dgk@research.att.com> *
140 if((t->tre.tretyp&(COMMSK|COMSCAN))==0 && t->com.comnamp && strcmp(nv_name((Namval_t*)t->com.comnamp),"alias")==0)
149 if(t && ((t->tre.tretyp&COMMSK)==TCOM) && (np=t->com.comnamp) && (cp=nv_name(np)))
156 if(t->com.comtyp&COMSCAN)
158 if(t->com.comarg->argnxt.ap)
163 struct dolnod *ap = (struct dolnod*)t->com.comarg;
H A Dtrestore.c17 * David Korn <dgk@research.att.com> *
269 static void r_comarg(Shell_t *shp,struct comnod *com) argument
272 com->comio = r_redirect(shp);
273 com->comset = r_arg(shp);
274 com->comstate = 0;
275 if(com->comtyp&COMSCAN)
277 com->comarg = r_arg(shp);
278 if(com->comarg->argflag==ARG_RAW)
279 cmdname = com->comarg->argval;
281 else if(com
[all...]
H A Dtdump.c17 * David Korn <dgk@research.att.com> *
216 static int p_comarg(register const struct comnod *com) argument
218 p_redirect(com->comio);
219 p_arg(com->comset);
220 if(!com->comarg)
222 else if(com->comtyp&COMSCAN)
223 p_arg(com->comarg);
225 p_comlist((struct dolnod*)com->comarg);
226 return(sfputu(outfile,com->comline));
H A Ddeparse.c17 * David Korn <dgk@research.att.com> *
515 static void p_comarg(register const struct comnod *com) argument
518 if(com->comtyp&FAMP)
520 if(com->comarg || com->comio)
522 if(com->comset)
523 p_arg(com->comset,flag,POST);
524 if(com->comarg)
526 if(!com->comio)
528 if(com
[all...]
H A Dxec.c17 * David Korn <dgk@research.att.com> *
275 static int p_comarg(register struct comnod *com) argument
277 Namval_t *np=com->comnamp;
278 int n = p_arg(com->comset,ARG_ASSIGN);
279 if(com->comarg && (com->comtyp&COMSCAN))
280 n+= p_arg(com->comarg,0);
281 if(com->comstate && np)
288 bp->vnode = com->comnamq;
290 bp->data = com
987 char *cp=0, **com=0, *comn; local
[all...]
H A Dname.c17 * David Korn <dgk@research.att.com> *
357 if(!array && tp->tre.tretyp!=TLST && tp->com.comset && !tp->com.comarg && tp->com.comset->argval[0]==0 && tp->com.comset->argval[1]=='[')
358 array |= (tp->com.comset->argflag&ARG_MESSAGE)?NV_IARRAY:NV_ARRAY;
359 if(prefix && tp->com.comset && *cp=='[')
376 if((arg->argflag&ARG_APPEND) && (tp->tre.tretyp&COMMSK)==TCOM && tp->com.comset && !nv_isvtree(np) && (((ap=nv_arrayptr(np)) && !ap->fun && !nv_opensub(np)) || (!ap && nv_isarray(np) && tp->com.comarg && !((mp=nv_search(tp->com
[all...]
/ast/src/cmd/ksh93/bltins/
H A Dhist.c17 * David Korn <dgk@research.att.com> *
244 char *com[3]; local
245 com[0] = arg;
246 com[1] = fname;
247 com[2] = 0;
248 error_info.errors = sh_eval(sh_sfeval(com),0);
H A Dgetopts.c17 * David Korn <dgk@research.att.com> *
155 char *com[2]; local
156 com[0] = "-?";
157 com[1] = 0;
160 optget(com,options);
/ast/src/cmd/ie/
H A Dedit.c17 * David Korn <dgk@research.att.com> *
802 register char **com; local
807 com = arg_build(&narg,comptr);
810 if (*com==0 || (!istilde && narg <= 1 && eq(ap->argval,*com)))
820 for(ptrcom=com;*ptrcom;ptrcom++)
826 p_list(narg,com);
836 size += strlen(*com);
843 char **savcom = com;
844 while (*com)
[all...]
H A Dio.h17 * David Korn <dgk@research.att.com> *
219 char **com; member in union:io_eval
/ast/src/cmd/paxlib/zip/
H A Dzip.c17 * Glenn Fowler <gsf@research.att.com> *
128 int com; local
174 com = swapget(3, &hdr[ZIP_CEN_COM], 2);
190 if (com && paxread(pax, ap, NiL, (off_t)com, (off_t)0, 0) <= 0)
192 (*pax->errorf)(NiL, pax, 2, "%s: %s: invalid %s format verification header comment data [size=%I*u]", ap->name, mem->name, fp->name, sizeof(com), com);
/ast/src/cmd/ksh93/edit/
H A Dcompletion.c17 * David Korn <dgk@research.att.com> *
302 register char **com; local
316 com = av;
322 com = sh_argbuild(ep->sh,&narg,comptr,0);
335 if (*com==0 || (narg <= 1 && (strcmp(ap->argval,*com)==0) || (addstar && com[0][strlen(*com)-1]=='*')))
347 for(ptrcom=com;*ptrcom;ptrcom++)
352 sh_menu(sfstderr,narg,com);
[all...]
/ast/src/cmd/ksh93/include/
H A Dshnodes.h17 * David Korn <dgk@research.att.com> *
200 struct comnod com; member in union:Shnode_u
/ast/src/lib/libtksh/lib/tksh7.6/
H A Dinit.tcl229 # look for files with .exe, .com, or .bat extensions. Also, the path
250 set comspec "command.com"
256 foreach ext {{} .com .exe .bat} {
292 foreach ext {{} .com .exe .bat} {
/ast/src/lib/libpp/
H A Dppproto.c17 * Glenn Fowler <gsf@research.att.com> *
2183 char com[80]; local
2277 if (!notice && !options || (comlen = astlicense(com, sizeof(com), NiL, "type=check", proto->cc[0], proto->cc[1], proto->cc[2])) <= 0)
2278 *com = 0;
2336 if (*s == *com && !strncmp(s, com, comlen))
/ast/src/cmd/INIT/
H A Dproto.c17 * Glenn Fowler <gsf@research.att.com> *
4437 char com[80]; local
4521 if (!notice && !options || (comlen = astlicense(com, sizeof(com), ((char*)0), "type=check", proto->cc[0], proto->cc[1], proto->cc[2])) <= 0)
4522 *com = 0;
4580 if (*s == *com && !sstrncmp( s, com, comlen))

Completed in 64 milliseconds