• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/shell/

Lines Matching defs:job

36  *      JOBS -> 1 if you have Berkeley job control, 0 otherwise.
3101 * A job structure contains information about a job. A job is either a
3113 struct job {
3117 int stopstatus; /* status of a stopped job */
3126 sigint: 1, /* job was killed by SIGINT */
3127 jobctl: 1, /* job running under job control */
3132 struct job *prev_job; /* previous job */
3138 static struct job *makejob(union node *, int);
3139 static int forkshell(struct job *, union node *, int);
3140 static int waitforjob(struct job *);
3146 static smallint jobctl; /* true if doing job control */
3252 static struct job *jobtab;
3255 /* current job */
3256 static struct job *curjob;
3261 set_curjob(struct job *jp, unsigned mode)
3263 struct job *jp1;
3264 struct job **jpp, **curp;
3284 /* job being deleted */
3287 /* newly created job or backgrounded job,
3301 /* newly stopped job - becomes curjob */
3310 jobno(const struct job *jp)
3317 * Convert a job name to a job structure.
3319 static struct job *
3322 struct job *jp;
3323 struct job *found;
3324 const char *err_msg = "No such job: %s";
3345 err_msg = "No current job";
3351 err_msg = "No previous job";
3390 err_msg = "job %s not created under job control";
3400 * Mark a job structure as unused.
3403 freejob(struct job *jp)
3429 * Turn job control on and off.
3433 * System V doesn't have job control yet, this isn't a problem now.
3462 ash_msg("can't access tty; job control turned off");
3479 /* turning job control off */
3504 struct job *jp = getjob(argv[i], 0);
3519 showpipe(struct job *jp, FILE *out)
3533 restartjob(struct job *jp, int mode)
3565 struct job *jp;
3627 * Do a wait system call. If job control is compiled in, we accept
3672 dowait(int block, struct job *job)
3676 struct job *jp;
3677 struct job *thisjob;
3743 if (thisjob && thisjob == job) {
3759 showjob(FILE *out, struct job *jp, int mode)
3820 TRACE(("showjob: freeing job %d\n", jobno(jp)));
3832 struct job *jp;
3836 /* If not even one one job changed, there is nothing to do */
3873 getstatus(struct job *job)
3878 status = job->ps[job->nprocs - 1].status;
3889 job->sigint = 1;
3894 TRACE(("getstatus: job %d, nproc %d, status %x, retval %x\n",
3895 jobno(job), job->nprocs, status, retval));
3902 struct job *job;
3904 struct job *jp;
3934 job = curjob;
3937 if (job->ps[job->nprocs - 1].pid == pid)
3939 job = job->prev_job;
3941 if (!job)
3945 job = getjob(*argv, 0);
3947 while (job->state == JOBRUNNING)
3949 job->waited = 1;
3950 retval = getstatus(job);
3959 static struct job *
3964 struct job *jp, *jq;
3975 jq = (struct job *)((char *)jq + l);
3979 #define joff(p) ((struct job *)((char *)(p) + l))
3994 jp = (struct job *)((char *)jp + len);
4003 * Return a new job structure.
4006 static struct job *
4010 struct job *jp;
4330 * Fork off a subshell. If we are doing job control, give the subshell its
4331 * own process group. Jp is a job structure that the job is to be added to.
4337 * process group even if job control is on.
4339 * When job control is turned off, background processes have their standard
4369 forkchild(struct job *jp, union node *n, int mode)
4380 /* do job control only in root shell */
4425 forkparent(struct job *jp, union node *n, int mode, pid_t pid)
4462 forkshell(struct job *jp, union node *n, int mode)
4482 * Wait for job to finish.
4484 * Under job control we have the problem that while a child process is
4487 * active user may be hard to kill. With job control turned off, an
4502 waitforjob(struct job *jp)
4516 * If we're doing job control, then we did a TIOCSPGRP which
4537 struct job *jp;
4646 if (forkshell((struct job *)NULL, (union node *)NULL, FORK_NOJOB) == 0) {
5223 struct job *jp; /* job structure for command */
5249 struct job *jp;
7597 struct job *jp;
7668 struct job *jp;
7714 TRACE(("evalpipe: job done exit status %d\n", exitstatus));
8153 struct job *jp;