Searched refs:coshell (Results 1 - 25 of 26) sorted by relevance

12

/ast/src/lib/libcoshell/
H A DMakefile2 * coshell library
11 coshell 1.0 :LIBRARY: RELEASE coshell.3 coshell.h colib.h \
20 $(INCLUDEDIR) :INSTALLPROTO: coshell.h
H A Dcokill.c25 * if co==0 then kill all coshell jobs with sig
44 errormsg(state.lib, 2, "coshell %d kill co=%d cj=%d sig=%d", co->index, co->pid, cj->pid, sig);
103 co = cj->coshell;
104 else if (co != cj->coshell)
115 errormsg(state.lib, 2, "coshell %d kill co=%d cj=%d sig=%d", co->index, co ? co->pid : 0, cj ? cj->pid : 0, sig);
H A Dcolib.h25 * coshell library private definitions
65 int index; /* coshell index */ \
90 #include <coshell.h>
110 typedef struct Costate_s /* global coshell state */
114 Coshell_t* current; /* current coshell */
115 Coshell_t* generic; /* generic coshell for coinit() */
120 int index; /* last coshell index */
123 extern char coident[]; /* coshell ident script */
128 extern Costate_t state; /* global coshell info */
H A Dcoshell.h25 * coshell library interface
52 #define CO_ID "coshell" /* library/command id */
54 #define CO_ENV_ATTRIBUTES "COATTRIBUTES"/* coshell attributes env var */
55 #define CO_ENV_EXPORT "COEXPORT" /* coshell env var export list */
56 #define CO_ENV_HOST "HOSTNAME" /* coshell host name env var */
60 #define CO_ENV_SHELL "COSHELL" /* coshell path environment var */
62 #define CO_ENV_TYPE "HOSTTYPE" /* coshell host type env var */
70 #define CO_ANY 0x000001 /* return any open coshell */
76 #define CO_SHELL 0x000040 /* shell using coshell! */
79 #define CO_KSH 0x000100 /* coshell i
97 Coshell_t* coshell; /* running in this coshell */ member in struct:Cojob_s
[all...]
H A Dcowait.c25 * wait for and return status of job or the next coshell job that completes
150 if (co || job && (co = job->coshell))
167 errormsg(state.lib, 2, "coshell %d zombie wait %lu timeout=%d outstanding=<%d,%d> running=<%d,%d>", co->index, serial, timeout, co->outstanding, co->svc_outstanding, co->running, co->svc_running);
179 errormsg(state.lib, 2, "coshell %d zombie wait %lu timeout=%d outstanding=<%d,%d> running=<%d,%d> reap job %d", co->index, serial, timeout, co->outstanding, co->svc_outstanding, co->running, co->svc_running, cj->id);
225 errormsg(state.lib, 2, "coshell %d wait %lu.%d timeout=%d outstanding=<%d,%d> running=<%d,%d>", co->index, serial, loop, timeout, co->outstanding, co->svc_outstanding, co->running, co->svc_running);
257 * get one coshell message
263 errormsg(state.lib, 2, "coshell %d active wait %lu timeout=%d outstanding=<%d,%d> running=<%d,%d>", co->index, serial, timeout, co->outstanding, co->svc_outstanding, co->running, co->svc_running);
267 * read and parse a coshell message packet of the form
291 errormsg(state.lib, 2, "coshell %d message \"%c %d %s\"", co->index, type, id, s);
296 errormsg(state.lib, 2, "coshell
[all...]
H A Dcoexec.c25 * send an action to the coshell for execution
179 cj->coshell = co;
/ast/src/cmd/coshell/
H A DMakefile8 coshell fdp $(BINDIR) :SERVICE: RELEASE PROMO.mm coshell.1 local.ast \
H A DCOSHELL.mk2 * coshell support
4 * @(#)coshell (AT&T Research) 2006-08-11
16 else if I == "coshell?(=*)"
42 COSHELL := coshell $(C) $(CX)
47 COSHELL := coshell /dev/$(P)/$(H)/coshell/$(A)$(AX) $(CX)
H A Dservice.h25 * remote coshell service definitions
79 #include <coshell.h>
349 * coshell specific globals
H A Dmain.c25 * remote coshell server main
35 "[-?\n@(#)$Id: coshell (AT&T Research) 2007-10-23 $\n]"
37 "[+NAME?coshell - network shell coprocess server]"
91 static char* coshell[] = /* shell to run on other side */ variable
186 if (pathpath(coshell[n], NiL, PATH_ABSOLUTE|PATH_REGULAR|PATH_EXECUTE, s, state.buflen))
188 if (++n >= elementsof(coshell))
733 * indirect coshell initialization
752 * indirect coshell data pump
783 * coshell main
/ast/src/cmd/ksh93/include/
H A Djobs.h38 # include <coshell.h>
43 Coshell_t *coshell; member in struct:cosh
80 Cojob_t *p_cojob; /* coshell job */
124 struct cosh *colist; /* coshell job list */
H A Ddefs.h267 void *coshell; \
/ast/src/cmd/nmake/
H A Dcommand.c42 #define RUNNING 005 /* job action sent to coshell */
79 Cojob_t* cojob; /* coshell job info */
627 * send a job to the coshell for execution
682 if (!state.coshell)
696 if (!(state.coshell = coopen(getval(CO_ENV_SHELL, VAL_PRIMARY), flags, sfstruse(sp))))
697 error(ERROR_SYSTEM|3, "coshell open error");
710 coexport(state.coshell, p->rule->name, sfstruse(exp));
716 coexport(state.coshell, p->rule->name, sfstruse(exp));
760 if (!(job->cojob = coexec(state.coshell, t, job->flags, state.tmpfile, NiL, sfstruse(att))))
761 error(3, "%s: cannot send action to coshell", jo
[all...]
H A Dmake.h38 #include <coshell.h>
69 #define CMDTRACE (-6) /* coshell trace debug level */
883 Coshell_t* coshell; /* coshell handle */ member in struct:State_s
H A Dparse.c617 if (pp->fp != sfstdin || !state.coshell || !state.coshell->outstanding)
620 sps[1] = state.coshell->msgfp;
623 if (sps[0] == state.coshell->msgfp || n > 1 && sps[1] == state.coshell->msgfp)
H A Drule.c1263 sfprintf(internal.val, "%d", state.coshell ? state.coshell->outstanding : 0);
/ast/src/cmd/jcl/
H A DJCL.mk28 :COSHELL: service=event db=$(JCLEVENTS) coshell $(JCLGROUP:+group=$(JCLGROUP))
/ast/src/cmd/ksh93/
H A DMakefile28 SHOPT_COSHELL == 1 /* build with connection to coshell */
84 :PACKAGE: ast$(libtype):20100309 coshell:order --clobber=!($(SH))
/ast/src/cmd/at/
H A Dat.h32 #include <coshell.h>
/ast/src/cmd/ksh93/sh/
H A Dsubshell.c106 void *coshell; member in struct:subshell
510 sp->coshell = shp->coshell;
511 shp->coshell = 0;
782 shp->coshell = sp->coshell;
H A Dxec.c766 coattr(csp->coshell,argv[1]);
769 coclose(csp->coshell);
778 if(!(csp->coshell = coopen(NULL,CO_SHELL|CO_SILENT,argv[1])))
783 csp->coshell->data = (void*)csp;
810 struct cosh *csp = ((struct cosh*)shp->coshell);
877 if(cjp=coexec(csp->coshell,str,0,NULL,NULL,NULL))
880 cjp->local = shp->coshell;
1091 shp->coshell = sh_coinit(shp,com);
1644 if(shp->coshell)
1663 if(shp->coshell)
[all...]
H A Djobs.c391 csp = (struct cosh*)(cjp->coshell->data);
1130 r = cokill(pw->p_cojob->coshell,pw->p_cojob,sig);
1361 if(shp->coshell && (pid&COPID_BIT))
1363 pw->p_cojob = ((struct cosh*)shp->coshell)->cojob;
/ast/src/cmd/ksh93/tests/
H A Dcoprocess.sh264 [[ $got == $exp ]] || err_exit "coshell(3) identification sequence failed -- expected '$exp', got '$got'"
/ast/src/cmd/cs/
H A Dcs.c116 #include <coshell.h>
/ast/src/lib/libjcl/
H A Drun.c28 #include <coshell.h>
155 (*jcl->disc->errorf)(NiL, jcl->disc, 2, "%s: cannot connect to coshell", jcl->name);

Completed in 68 milliseconds

12