Searched refs:action (Results 1 - 25 of 52) sorted by relevance

123

/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/cmd/mam/
H A Dmamold.sh41 typeset -A prereqs implicit action
66 [[ ${action[$arg]} ]] &&
67 action[$arg]=${action[$arg]}$'\n'$'\t'$val ||
68 action[$arg]=$'\t'$val
75 do [[ ! ${prereqs[$rule]} && ! ${action[$rule]} ]] && continue
78 [[ ${action[$rule]} ]] && convert "${action[$rule]}"
H A Dmamnew.c354 if (r->action || !(t = strrchr(r->name, '/')))
376 else if ((p = r->action) && s[1] == 'o' && !s[2])
378 r->action = 0;
426 * dump an action
452 if (r->action || r->prereqs)
457 message(-1, "%s:%s", r->name, r->action ? " action" : "");
467 dumpaction(r->action);
/ast/src/cmd/ie/
H A Dterminal.h54 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
89 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
119 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
122 # define tcsetattr(fd,action,tty) stty(fd, tty)
/ast/src/cmd/ksh93/bltins/
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...]
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...]
/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 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...]
/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 Dtsearch.c201 static void _twalk(Tree_t* obj, void(*action)(const Void_t*,VISIT,int), int level)
203 static void _twalk(obj,action,level)
205 void(* action)();
209 (*action)((Void_t*)obj,leaf,level);
211 { (*action)((Void_t*)obj,preorder,level);
213 _twalk((Tree_t*)obj->lchild,action,level+1);
214 (*action)((Void_t*)obj,postorder,level);
216 _twalk((Tree_t*)obj->rchild,action,level+1);
217 (*action)((Void_t*)obj,endorder,level);
227 void twalk(const Void_t* root, void(*action)(cons
[all...]
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 &&
H A Dfmtmsglib.c78 "action", 0, MM_action,
201 fmtmsg(long classification, const char* label, int severity, const char* text, const char* action, const char* tag)
300 if ((mask & MM_action) && action || (mask & MM_tag) && (label || tag))
305 if ((mask & MM_action) && action)
306 sfprintf(sp, " %s", action);
/ast/src/cmd/ksh93/include/
H A Dterminal.h75 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
107 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
126 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
129 # define tcsetattr(fd,action,tty) stty(fd, tty)
/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/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/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/cmd/mailx/
H A Dtty.c124 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
156 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
175 # define tcsetattr(fd,action,tty) ioctl(fd, action, tty)
178 # define tcsetattr(fd,action,tty) stty(fd, tty)
/ast/src/cmd/nmake/
H A Dmake.c125 a->action = r->action;
136 * prepare for update and execute action
137 * r is the target (possibly with explicit action)
138 * a is the implicit action rule
179 if (!state.override && u->action)
255 r->action = a->action;
256 trigger(r, a, a->action, CO_LOCALSTACK);
270 * MAKING rule action bein
[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...]
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 Dmam.c210 if ((r->property & (P_after|P_before)) || (r->property & P_dontcare) && !(state.mam.dontcare || r->prereqs || r->action && *r->action || (r0 = staterule(RULE, r, NiL, 0)) && (r0->dynamic & D_built) && r0->action && *r0->action || !(r->dynamic & D_global)))
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...]
/ast/src/cmd/INIT/
H A Dpackage.sh114 directory. The \buse\b action starts a \bsh\b(1) with the environment
131 more \aqualifiers\a, one \aaction\a, and zero or more action-specific
146 [+force?Force the action to override saved state.]
151 [+quiet?Do not list captured action output.]
153 [+verbose?Provide detailed action output.]
177 3 are updated by the \badmin\b action. \afile\a is saved in
198 [+date?\aYYMMDD\a of the last action.]
199 [+time?Elapsed wall time for the last action.]
200 [+M T W?The \badmin\b action \bmake\b, \btest\b and
201 \bwrite\b action erro
[all...]
/ast/src/lib/libmam/
H A Dmam.h55 int status; /* action exit status */
58 struct block* action; /* action */ member in struct:rule

Completed in 182 milliseconds

123