Searched defs:action (Results 1 - 25 of 27) sorted by relevance

12

/ast/src/lib/libast/cdt/
H A Ddtmethod.c82 int dtcustomize(Dt_t* dt, int type, int action) argument
87 (!dt->meth->eventf || (*dt->meth->eventf)(dt, DT_SHARE, (Void_t*)((long)action)) >= 0) )
88 { if(action <= 0 )
95 (!dt->meth->eventf || (*dt->meth->eventf)(dt, DT_ANNOUNCE, (Void_t*)((long)action)) >= 0) )
96 { if(action <= 0 )
103 (!dt->meth->eventf || (*dt->meth->eventf)(dt, DT_OPTIMIZE, (Void_t*)((long)action)) >= 0) )
/ast/src/lib/libast/comp/
H A Dhsearch.c117 ENTRY* hsearch(ENTRY item, ACTION action) argument
119 ENTRY* hsearch(item, action)
121 ACTION action;
129 if(!(o = (Hash_t*)dtmatch(Hashtab,item.key)) && action == ENTER &&
/ast/src/cmd/dss/
H A Ddss.c187 char* action; local
213 action = 0;
227 action = "{count}";
233 if (!(action = strdup(sfprints("{write %s}", fmtquote(opt_info.arg, "'", "'", strlen(opt_info.arg), FMT_ALWAYS|FMT_ESCAPED)))))
248 action = "{null}";
251 if (!(action = strdup(sfprints("{print %s}", fmtquote(opt_info.arg, "'", "'", strlen(opt_info.arg), FMT_ALWAYS|FMT_ESCAPED)))))
303 if (dssrun(dss, expression, NiL, action, argv))
/ast/src/lib/libast/sfio/
H A Dsfpkrd.c40 ssize_t sfpkrd(int fd, Void_t* argbuf, size_t n, int rc, long tm, int action) argument
42 ssize_t sfpkrd(fd, argbuf, n, rc, tm, action)
48 int action; /* >0: peeking, if rc>=0, get action records,
49 <0: no peeking, if rc>=0, get -action records,
58 if(rc < 0 && tm < 0 && action <= 0)
61 t = (action > 0 || rc >= 0) ? (STREAM_PEEK|SOCKET_PEEK) : 0;
111 { if(action <= 0) /* read past eof */
128 while(tm >= 0 || action > 0 ||
213 { if(action <
[all...]
/ast/src/lib/libcoshell/
H A Dcoexec.c25 * send an action to the coshell for execution
106 request(register Coshell_t* co, Cojob_t* cj, Coservice_t* cs, const char* action, int flags) argument
122 errormsg(state.lib, ERROR_LIBRARY|2, "job %d commands:\n\n%s %s\n", cj->id, cs->name, action);
124 sfprintf(sfstderr, "+ %s %s\n", cs->name, action);
125 sfprintf(sp, "id=%d %s\n", cj->id, action);
127 action = sfstrbase(sp);
128 while ((i = write(cs->fd, action, n)) > 0 && (n -= i) > 0)
129 action += i;
149 coexec(register Coshell_t* co, const char* action, int flags, const char* out, const char* err, const char* att) argument
200 for (s = cs->name, t = (char*)action; *
[all...]
/ast/src/lib/libexpr/
H A Dexparse.y177 | action_list action
180 action : LABEL ':' { label
/ast/src/cmd/ksh93/bltins/
H A Dtrap.c22 * trap [-p] action sig...
68 char *action = arg; local
74 clear = (arg!=action && *arg==0);
78 if(*action=='-' && action[1]==0)
85 else if(*action=='+' && action[1]==0 && shp->st.self == &shp->global)
122 if(!clear && *action)
123 shp->st.trap[sig] = strdup(action);
156 shp->st.trapcom[sig] = (shp->sigflag[sig]&SH_SIGOFF) ? Empty : strdup(action);
[all...]
H A Dalarm.c42 Namval_t *action; member in struct:tevent
143 if(tp->action)
144 sh_fun(tp->action,tp->node,(char**)0);
162 static char *setdisc(Namval_t *np, const char *event, Namval_t* action, Namfun_t argument
167 return(action?"":(char*)ALARM);
171 return(nv_setdisc(np, event, action, fp));
173 if(action==np)
174 action = tp->action;
176 tp->action
[all...]
H A Dmkservice.c41 "\avarname\a\b.action\b and \avarname\a\b.close\b implement the "
48 "[+action?This function is invoked when there is data waiting "
108 "action",
346 static char* setdisc(Namval_t* np, const char* event, Namval_t* action, Namfun_t* fp) argument
358 if (action == np)
359 action = sp->disc[i];
364 if (action)
365 sp->disc[i] = action;
369 return action ? (char*)action
[all...]
/ast/src/cmd/ksh93/sh/
H A Dtimers.c35 void (*action)(void*); member in struct:_timer
114 if(tp->action)
156 void (*action)(void*);
157 action = tp->action;
159 tp->action = 0;
162 (*action)(tp->handle);
181 void *sh_timeradd(unsigned long msec,int flags,void (*action)(void*),void *handle) argument
187 if(t<=0 || !action)
195 tp->action
[all...]
H A Dfault.c69 int action=0; local
201 action = (*shp->bltinfun)(-sig,(char**)0,(void*)0);
202 if(action>0)
215 if(action<0)
H A Dargs.c145 int setflag=0, action=0, trace=(int)sh_isoption(SH_XTRACE); local
180 action = PRINT;
254 action = SORT;
327 if(action==PRINT)
331 if(action==SORT)
H A Dnvdisc.c442 * Set disc on given <event> to <action>
443 * If action==np, the current disc is returned
445 * If <event> is NULL, then return the event name after <action>
446 * If <event> is NULL, and <action> is NULL, return the first event
448 char *nv_setdisc(register Namval_t* np,register const char *event,Namval_t *action,register Namfun_t *fp) argument
468 if(!action)
471 event = (char*)action;
482 action = 0;
489 return((*fp->disc->setdisc)(np,event,action,fp));
503 return((*fp->disc->setdisc)(np,event,action,f
558 setdisc(register Namval_t* np,register const char *event,Namval_t *action,register Namfun_t *fp) argument
[all...]
H A Dinit.c1045 static char *setdisc_any(Namval_t *np, const char *event, Namval_t *action, Namfun_t *fp) argument
1054 if(!action)
1066 mp = nv_search(name, shp->fun_tree, action?NV_ADD:0);
1070 if(action==np)
1071 action = mp;
1072 return(action?(char*)action:"");
/ast/src/cmd/nmake/
H A Ddump.c148 if (r->action && !*r->action)
372 if (r->action && !*r->action)
412 if (r->action && *r->action)
415 sfputr(sp, " action:", '\n');
416 dumpaction(sp, NiL, r->action, "\t");
645 * dump an action placing prefix at the beginning of each line
649 dumpaction(Sfio_t* sp, const char* name, register char* action, registe argument
[all...]
H A Drule.c513 getimmediate(register Rule_t* r, List_t** prereqs, char** action) argument
517 if (*action = r->action)
518 r->action = 0;
549 * check rule r for immediate action
559 char* action; local
570 getimmediate(r, &prereqs, &action);
583 getimmediate(r, &prereqs, &action);
590 getimmediate(r, &prereqs, &action);
599 getimmediate(r, &prereqs, &action);
[all...]
H A Dcommand.c42 #define RUNNING 005 /* job action sent to coshell */
83 char* action; /* unexpanded action */ member in struct:Joblist_s
164 * apply operator or action with attributes in r given lhs, rhs and job flags
165 * blocks until action is complete
193 x->action = act;
194 act = r->action;
197 x->action = r->action;
212 oaction = r->action;
1356 trigger(register Rule_t* r, Rule_t* a, char* action, Flags_t flags) argument
[all...]
H A Dscan.c61 typedef struct Action_s /* state action */
63 short type; /* action type id */
99 Action_t* action; /* action table */ member in struct:Scan_s
100 Action_t* classid; /* classid action */
164 scanbranch(Scanstate_t* u, Action_t* action, Action_t* first, Action_t* last, register int i) argument
202 u = scanbranch(u, action, m, b - 1, i + 1);
208 return scanbranch(u, action, m, last, i + 1);
227 *u++ = a - action;
235 * parse scan action fo
[all...]
/ast/src/lib/libmam/
H A Dmam.h55 int status; /* action exit status */
58 struct block* action; /* action */ member in struct:rule
/ast/src/cmd/vczip/
H A Dvczip.c240 apply(int action, const char* vt, Vcsfdata_t* vcodexdisc, const char* ct, Codexdisc_t* codexdisc, const char* input, const char* source, const char* output, void* buf, size_t bufsize, Sfoff_t donez, Sfoff_t lastz) argument
267 if (!action)
292 error(-1, "AHA action=%s input=%s source=%s output=%s vt=%s ct=%s", action == VC_ENCODE ? "encode" : "decode", input, source, output, vt, ct);
295 if ((n = codex(ip, op, ct, action == VC_ENCODE ? CODEX_ENCODE : CODEX_DECODE, codexdisc, NiL)) < 0)
297 if (!action && n > 0)
309 if (!vcsfio(action == VC_ENCODE ? op : ip, vcodexdisc, action))
311 else if (!action)
319 if (action)
367 int action; /* default is encoding */ local
600 int action = VC_ENCODE; /* default is encoding */ local
[all...]
/ast/src/cmd/pax/
H A Dpax.c244 * construct an action from command
248 action(const char* command, int pattern) function
340 * return action for f, 0 if no match
548 xp = action(v, 1);
1642 state.filter.all = action(s, 0);
/ast/src/cmd/tw/
H A Dtw.h166 int actII; /* real action for intermediate */
167 Exnode_t* action; /* action expression */ member in struct:__anon239
H A Dfind.c55 " hierarchy. \b-print\b is implied if there is no action that"
160 enum Command action; member in struct:Args_s
203 enum Command action; member in struct:Node_s
894 np->action = argp->action;
901 if (oldop == NOT || np->action != NOT && (oldop != PRINT || !oldnp))
906 oldop = argp->action;
965 switch (argp->action)
1002 np->action = IGNORE;
1063 np->action
[all...]
/ast/src/cmd/kshlib/dss/
H A Ddss.c998 static char *setdisc_type(Namval_t *np, const char *event, Namval_t* action, Namfun_t argument
1003 const char *name = event?event:(const char*)action;
1011 if(!action && tp->type->match)
1016 return(nv_setdisc(np,event,action,fp));
1017 if(action==np)
1025 action = tp->bltins[n];
1027 else if(action)
1028 tp->bltins[n] = action;
1031 action = tp->bltins[n];
1034 return(action
[all...]
/ast/src/cmd/ksh93/edit/
H A Dedit.c203 int tty_set(int fd, int action, struct termios *tty) argument
212 while(tcsetattr(fd, action, tty) == SYSERR)

Completed in 75 milliseconds

12