Lines Matching refs:JOBS
1 /* $NetBSD: jobs.c,v 1.19 2017/06/30 04:41:19 kamil Exp $ */
17 * - TTY_PGRP defined iff JOBS is defined - defined if there are tty
19 * - NEED_PGRP_SYNC defined iff JOBS is defined - see comment below
24 __RCSID("$NetBSD: jobs.c,v 1.19 2017/06/30 04:41:19 kamil Exp $");
49 #ifdef JOBS
82 #else /* JOBS */
83 /* These so we can use ifdef xxx instead of if defined(JOBS) && defined(xxx) */
86 #endif /* JOBS */
115 #define PJ_PAST_STOPPED 1 /* just past any stopped jobs */
121 #define JF_XXCOM 0x008 /* set for `command` jobs */
140 int_least32_t age; /* number of jobs started */
149 TTY_state ttystate; /* saved tty state for stopped jobs */
150 pid_t saved_ttypgrp; /* saved tty process group for stopped jobs */
181 static int_least32_t njobs; /* # of jobs started */
188 #ifdef JOBS
190 #endif /* JOBS */
241 #ifdef JOBS
270 #endif /* JOBS */
279 /* kill stopped, and possibly running, jobs */
296 #ifdef JOBS
303 #endif /* JOBS */
310 #ifdef JOBS
328 #endif /* JOBS */
331 #ifdef JOBS
425 #endif /* JOBS */
459 /* link process into jobs list */
526 #ifdef JOBS
582 #endif /* JOBS */
624 remove_job(j, "child"); /* in case of `jobs` command */
626 #ifdef JOBS
629 #endif /* JOBS */
653 coproc.njobs++; /* n jobs using co-process output */
675 /* start the last job: only used for `command` jobs */
691 /* wait for last job: only used for `command` jobs */
736 * don't have to worry about exited/signaled jobs
739 /* at&t ksh will wait for stopped jobs - we don't */
760 /* at&t ksh will wait for stopped jobs - we don't */
796 #ifdef JOBS
799 #endif /* JOBS */
811 #ifdef JOBS
918 #endif /* JOBS */
920 /* are there any running or stopped jobs ? */
928 #ifdef JOBS
931 #endif /* JOBS */
937 shellf("You have %s%s%s jobs\n",
947 /* list jobs for jobs built-in */
987 /* Remove jobs after printing so there won't be multiple + or - jobs */
991 remove_job(j, "jobs");
997 /* list jobs for top-level notification */
1006 #ifdef JOBS
1009 #endif /* JOBS */
1011 * multiple +/- jobs.
1043 * If jobs are compiled in then this routine expects sigchld to be blocked.
1079 * If jobs are compiled in then this routine expects sigchld to be blocked.
1108 * If jobs are compiled in then this routine expects sigchld to be blocked.
1209 #ifdef JOBS
1220 #endif /* JOBS */
1242 * If jobs are compiled in then this routine expects sigchld to be blocked.
1294 #ifdef JOBS
1298 #endif /* JOBS */
1319 * If jobs are compiled in then this routine expects sigchld to be blocked.
1382 #ifdef JOBS
1384 /* Only put stopped jobs at the front to avoid confusing
1385 * the user (don't want finished jobs effecting %+ or %-)
1402 /* Can't call j_notify() as it removes jobs. The job
1412 #endif /* JOBS */
1428 * If jobs are compiled in then this routine expects sigchld to be blocked.
1539 * If jobs are compiled in then this routine expects sigchld to be blocked.
1634 * If jobs are compiled in then this routine expects sigchld to be blocked.
1662 * If jobs are compiled in then this routine expects sigchld to be blocked.
1681 * If jobs are compiled in then this routine expects sigchld to be blocked.
1723 * If jobs are compiled in then this routine expects sigchld to be blocked.
1760 * If jobs are compiled in then this routine expects sigchld to be blocked.