Lines Matching refs:process

65 static struct process *pwfg;
78 errormsg(SH_DICT,ERROR_exit(1),"%s: invalid process id",str);
137 static struct process *job_bypid(pid_t);
138 static struct process *job_byjid(int);
142 static struct process *job_unpost(struct process*,int);
143 static void job_unlink(struct process*);
144 static void job_prmsg(struct process*);
145 static struct process *freelist;
148 static struct process dummy;
155 static void job_set(struct process*);
156 static void job_reset(struct process*);
158 static struct process *job_byname(char*);
159 static struct process *job_bystring(char*);
167 static void job_unstop(struct process*);
168 static void job_fgrp(struct process*, int);
200 register struct process *pw,*pwnext;
282 int job_cowalk(int (*fun)(struct process*,int),int arg,char *name)
286 struct process *pw,*pwnext;
340 register struct process *pw;
341 struct process *px;
497 /* if process in current jobs terminates from
544 /* only top-level process in job should have notify set */
637 /* Get a controlling terminal and set process group */
708 /* make sure that we are a process group leader */
748 register struct process *pw;
823 static void job_set(register struct process *pw)
843 static void job_reset(register struct process *pw)
872 register struct process *pw;
908 int job_walk(Sfio_t *file,int (*fun)(struct process*,int),int arg,char *joblist[])
910 register struct process *pw;
913 register struct process *px;
979 * send signal <sig> to background process group if not disowned
981 int job_terminate(register struct process *pw,register int sig)
992 * flag JOB_PFLAG for process id(s) only
995 int job_list(struct process *pw,register int flag)
998 register struct process *px = pw;
1082 * get the process group given the job number
1083 * This routine returns the process group number or -1
1085 static struct process *job_bystring(register char *ajob)
1087 register struct process *pw=job.pwlist;
1090 return(NIL(struct process*));
1105 return(NIL(struct process*));
1109 * Kill a job or process
1112 int job_kill(register struct process *pw,register int sig)
1212 * Get process structure from first letters of jobname
1216 static struct process *job_byname(char *name)
1218 register struct process *pw = job.pwlist;
1219 register struct process *pz = 0;
1224 return(NIL(struct process*));
1247 * Initialize the process posting array
1253 register struct process *pw, *px;
1254 register struct process *pwnext;
1275 job.pwlist = NIL(struct process*);
1291 * put the process <pid> on the process list and return the job number
1292 * if non-zero, <join> is the process id of the job to join
1297 register struct process *pw;
1340 pw = new_of(struct process,0);
1426 * Returns a process structure give a process id
1429 static struct process *job_bypid(pid_t pid)
1431 register struct process *pw, *px;
1438 return(NIL(struct process*));
1445 static struct process *job_byjid(int jobid)
1447 register struct process *pw;
1459 static void job_prmsg(register struct process *pw)
1478 * Wait for process pid to complete
1481 * pid=1 to wait for at least one process to complete
1488 register struct process *pw=0,*px;
1599 /* last process in job */
1685 int job_switch(register struct process *pw,int bgflag)
1749 static void job_fgrp(register struct process *pw, int newgrp)
1756 * turn off STOP state of a process group and send CONT signals
1759 static void job_unstop(register struct process *px)
1761 register struct process *pw;
1782 * If all the processes have not completed, unpost first non-completed process
1788 static struct process *job_unpost(register struct process *pwtop,int notify)
1790 register struct process *pw;
1836 return((struct process*)0);
1842 static void job_unlink(register struct process *pw)
1844 register struct process *px;
1874 register struct process *pw;
1936 * if pid==0, then oldest saved process is deleted
2000 register struct process *pw, *px, *pwnext;