jobs.h (209600) | jobs.h (223060) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 16 unchanged lines hidden (view full) --- 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)jobs.h 8.2 (Berkeley) 5/4/95 | 1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 16 unchanged lines hidden (view full) --- 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)jobs.h 8.2 (Berkeley) 5/4/95 |
33 * $FreeBSD: head/bin/sh/jobs.h 209600 2010-06-29 22:37:45Z jilles $ | 33 * $FreeBSD: head/bin/sh/jobs.h 223060 2011-06-13 21:03:27Z jilles $ |
34 */ 35 36/* Mode argument to forkshell. Don't change FORK_FG or FORK_BG. */ 37#define FORK_FG 0 38#define FORK_BG 1 39#define FORK_NOJOB 2 40 41#include <signal.h> /* for sig_atomic_t */ --- 41 unchanged lines hidden (view full) --- 83}; 84 85extern int job_warning; /* user was warned about stopped jobs */ 86extern int in_waitcmd; /* are we in waitcmd()? */ 87extern int in_dowait; /* are we in dowait()? */ 88extern volatile sig_atomic_t breakwaitcmd; /* break wait to process traps? */ 89 90void setjobctl(int); | 34 */ 35 36/* Mode argument to forkshell. Don't change FORK_FG or FORK_BG. */ 37#define FORK_FG 0 38#define FORK_BG 1 39#define FORK_NOJOB 2 40 41#include <signal.h> /* for sig_atomic_t */ --- 41 unchanged lines hidden (view full) --- 83}; 84 85extern int job_warning; /* user was warned about stopped jobs */ 86extern int in_waitcmd; /* are we in waitcmd()? */ 87extern int in_dowait; /* are we in dowait()? */ 88extern volatile sig_atomic_t breakwaitcmd; /* break wait to process traps? */ 89 90void setjobctl(int); |
91int fgcmd(int, char **); 92int bgcmd(int, char **); 93int jobscmd(int, char **); | |
94void showjobs(int, int); | 91void showjobs(int, int); |
95int waitcmd(int, char **); 96int jobidcmd(int, char **); | |
97struct job *makejob(union node *, int); 98pid_t forkshell(struct job *, union node *, int); 99int waitforjob(struct job *, int *); 100int stoppedjobs(void); 101int backgndpidset(void); 102pid_t backgndpidval(void); 103char *commandtext(union node *); 104 105#if ! JOBS 106#define setjobctl(on) /* do nothing */ 107#endif | 92struct job *makejob(union node *, int); 93pid_t forkshell(struct job *, union node *, int); 94int waitforjob(struct job *, int *); 95int stoppedjobs(void); 96int backgndpidset(void); 97pid_t backgndpidval(void); 98char *commandtext(union node *); 99 100#if ! JOBS 101#define setjobctl(on) /* do nothing */ 102#endif |