Lines Matching refs:job
3623 struct job { struct
3643 struct job *prev_job; /* previous job */ argument
3646 static struct job *makejob(/*union node *,*/ int);
3647 static int forkshell(struct job *, union node *, int);
3648 static int waitforjob(struct job *);
3816 static struct job *jobtab; //5
3820 static struct job *curjob; //lots
3861 job_signal_status(struct job *jp)
3874 restore_tty_if_stopped_or_signaled(struct job *jp)
3889 set_curjob(struct job *jp, unsigned mode) in set_curjob()
3891 struct job *jp1; in set_curjob()
3892 struct job **jpp, **curp; in set_curjob()
3939 jobno(const struct job *jp) in jobno()
3951 static struct job *
3954 struct job *jp; in getjob()
3955 struct job *found; in getjob()
4036 freejob(struct job *jp) in freejob()
4150 struct job *jp; in killcmd()
4194 showpipe(struct job *jp /*, FILE *out*/) in showpipe()
4208 restartjob(struct job *jp, int mode) in restartjob()
4242 struct job *jp; in fg_bgcmd()
4340 waitone(int block, struct job *job) in waitone() argument
4344 struct job *jp; in waitone()
4345 struct job *thisjob = NULL; in waitone()
4438 if (thisjob && thisjob == job) { in waitone()
4453 dowait(int block, struct job *jp) in dowait()
4480 showjob(struct job *jp, int mode) in showjob()
4561 struct job *jp; in showjobs()
4603 getstatus(struct job *job) in getstatus() argument
4610 ps = job->ps + job->nprocs - 1; in getstatus()
4614 while (status == 0 && --ps >= job->ps) in getstatus()
4629 job->sigint = 1; in getstatus()
4635 jobno(job), job->nprocs, status, retval)); in getstatus()
4642 struct job *job; in waitcmd() local
4644 struct job *jp; in waitcmd()
4710 job = curjob; in waitcmd()
4712 if (!job) in waitcmd()
4714 if (job->ps[job->nprocs - 1].ps_pid == pid) in waitcmd()
4716 job = job->prev_job; in waitcmd()
4719 job = getjob(*argv, 0); in waitcmd()
4722 dowait(DOWAIT_BLOCK_OR_SIG, job); in waitcmd()
4725 job->waited = 1; in waitcmd()
4726 retval = getstatus(job); in waitcmd()
4737 static struct job *
4742 struct job *jp, *jq; in growjobtab()
4753 jq = (struct job *)((char *)jq + l); in growjobtab()
4757 #define joff(p) ((struct job *)((char *)(p) + l)) in growjobtab()
4772 jp = (struct job *)((char *)jp + len); in growjobtab()
4784 static struct job *
4788 struct job *jp; in makejob()
5173 forkchild(struct job *jp, union node *n, int mode) in forkchild()
5298 forkparent(struct job *jp, union node *n, int mode, pid_t pid) in forkparent()
5333 forkshell(struct job *jp, union node *n, int mode) in forkshell()
5375 waitforjob(struct job *jp) in waitforjob()
5444 struct job *jp; in stoppedjobs()
5499 if (forkshell((struct job *)NULL, (union node *)NULL, FORK_NOJOB) == 0) { in openhere()
6558 struct job *jp; /* job structure for command */
6585 struct job *jp;
9549 struct job *jp; in evalsubshell()
9653 struct job *jp; in evalpipe()
10300 struct job *jp; in evalcommand()