Lines Matching refs:process

65 static struct process *pwfg;
121 static struct process *job_bypid(pid_t);
122 static struct process *job_byjid(int);
126 static struct process *job_unpost(struct process*,int);
127 static void job_unlink(struct process*);
128 static void job_prmsg(struct process*);
129 static struct process *freelist;
132 static struct process dummy;
139 static void job_set(struct process*);
140 static void job_reset(struct process*);
142 static struct process *job_byname(char*);
143 static struct process *job_bystring(char*);
151 static void job_unstop(struct process*);
152 static void job_fgrp(struct process*, int);
184 register struct process *pw,*pwnext;
265 int job_cowalk(int (*fun)(struct process*,int),int arg,char *name)
269 struct process *pw,*pwnext;
323 register struct process *pw;
324 struct process *px;
478 /* if process in current jobs terminates from
525 /* only top-level process in job should have notify set */
618 /* Get a controlling terminal and set process group */
688 /* make sure that we are a process group leader */
728 register struct process *pw;
803 static void job_set(register struct process *pw)
821 static void job_reset(register struct process *pw)
850 register struct process *pw;
886 int job_walk(Sfio_t *file,int (*fun)(struct process*,int),int arg,char *joblist[])
888 register struct process *pw;
891 register struct process *px;
963 * send signal <sig> to background process group if not disowned
965 int job_terminate(register struct process *pw,register int sig)
976 * flag JOB_PFLAG for process id(s) only
979 int job_list(struct process *pw,register int flag)
982 register struct process *px = pw;
1066 * get the process group given the job number
1067 * This routine returns the process group number or -1
1069 static struct process *job_bystring(register char *ajob)
1071 register struct process *pw=job.pwlist;
1074 return(NIL(struct process*));
1089 return(NIL(struct process*));
1093 * Kill a job or process
1096 int job_kill(register struct process *pw,register int sig)
1196 * Get process structure from first letters of jobname
1200 static struct process *job_byname(char *name)
1202 register struct process *pw = job.pwlist;
1203 register struct process *pz = 0;
1208 return(NIL(struct process*));
1231 * Initialize the process posting array
1237 register struct process *pw, *px;
1238 register struct process *pwnext;
1259 job.pwlist = NIL(struct process*);
1275 * put the process <pid> on the process list and return the job number
1276 * if non-zero, <join> is the process id of the job to join
1281 register struct process *pw;
1320 pw = new_of(struct process,0);
1405 * Returns a process structure give a process id
1408 static struct process *job_bypid(pid_t pid)
1410 register struct process *pw, *px;
1417 return(NIL(struct process*));
1424 static struct process *job_byjid(int jobid)
1426 register struct process *pw;
1438 static void job_prmsg(register struct process *pw)
1457 * Wait for process pid to complete
1460 * pid=1 to wait for at least one process to complete
1467 register struct process *pw=0,*px;
1568 /* last process in job */
1663 int job_switch(register struct process *pw,int bgflag)
1727 static void job_fgrp(register struct process *pw, int newgrp)
1734 * turn off STOP state of a process group and send CONT signals
1737 static void job_unstop(register struct process *px)
1739 register struct process *pw;
1760 * If all the processes have not completed, unpost first non-completed process
1766 static struct process *job_unpost(register struct process *pwtop,int notify)
1768 register struct process *pw;
1810 return((struct process*)0);
1816 static void job_unlink(register struct process *pw)
1818 register struct process *px;
1848 register struct process *pw;
1910 * if pid==0, then oldest saved process is deleted
1964 register struct process *pw, *px, *pwnext;