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;
247 register struct process *pw;
248 struct process *px;
363 /* if process in current jobs terminates from
410 /* only top-level process in job should have notify set */
503 /* Get a controlling terminal and set process group */
573 /* make sure that we are a process group leader */
613 register struct process *pw;
688 static void job_set(register struct process *pw)
705 static void job_reset(register struct process *pw)
734 register struct process *pw;
763 int job_walk(Sfio_t *file,int (*fun)(struct process*,int),int arg,char *joblist[])
765 register struct process *pw;
768 register struct process *px;
827 * send signal <sig> to background process group if not disowned
829 int job_terminate(register struct process *pw,register int sig)
840 * flag JOB_PFLAG for process id(s) only
843 int job_list(struct process *pw,register int flag)
845 register struct process *px = pw;
921 * get the process group given the job number
922 * This routine returns the process group number or -1
924 static struct process *job_bystring(register char *ajob)
926 register struct process *pw=job.pwlist;
929 return(NIL(struct process*));
944 return(NIL(struct process*));
948 * Kill a job or process
951 int job_kill(register struct process *pw,register int sig)
1045 * Get process structure from first letters of jobname
1049 static struct process *job_byname(char *name)
1051 register struct process *pw = job.pwlist;
1052 register struct process *pz = 0;
1057 return(NIL(struct process*));
1080 * Initialize the process posting array
1085 register struct process *pw, *px;
1086 register struct process *pwnext;
1107 job.pwlist = NIL(struct process*);
1123 * put the process <pid> on the process list and return the job number
1124 * if non-zero, <join> is the process id of the job to join
1129 register struct process *pw;
1168 pw = new_of(struct process,0);
1239 * Returns a process structure give a process id
1242 static struct process *job_bypid(pid_t pid)
1244 register struct process *pw, *px;
1251 return(NIL(struct process*));
1258 static struct process *job_byjid(int jobid)
1260 register struct process *pw;
1272 static void job_prmsg(register struct process *pw)
1291 * Wait for process pid to complete
1294 * pid=1 to wait for at least one process to complete
1300 register struct process *pw=0,*px;
1401 /* last process in job */
1494 int job_switch(register struct process *pw,int bgflag)
1558 static void job_fgrp(register struct process *pw, int newgrp)
1565 * turn off STOP state of a process group and send CONT signals
1568 static void job_unstop(register struct process *px)
1570 register struct process *pw;
1591 * If all the processes have not completed, unpost first non-completed process
1597 static struct process *job_unpost(register struct process *pwtop,int notify)
1599 register struct process *pw;
1641 return((struct process*)0);
1647 static void job_unlink(register struct process *pw)
1649 register struct process *px;
1679 register struct process *pw;
1741 * if pid==0, then oldest saved process is deleted
1795 register struct process *pw, *px, *pwnext;