jobs.c (218105) | jobs.c (218306) |
---|---|
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 --- 22 unchanged lines hidden (view full) --- 31 */ 32 33#ifndef lint 34#if 0 35static char sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95"; 36#endif 37#endif /* not lint */ 38#include <sys/cdefs.h> | 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 --- 22 unchanged lines hidden (view full) --- 31 */ 32 33#ifndef lint 34#if 0 35static char sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95"; 36#endif 37#endif /* not lint */ 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: head/bin/sh/jobs.c 218105 2011-01-30 22:57:52Z jilles $"); | 39__FBSDID("$FreeBSD: head/bin/sh/jobs.c 218306 2011-02-04 22:47:55Z jilles $"); |
40 41#include <sys/ioctl.h> 42#include <sys/param.h> 43#include <sys/resource.h> 44#include <sys/time.h> 45#include <sys/wait.h> 46#include <errno.h> 47#include <fcntl.h> --- 124 unchanged lines hidden (view full) --- 172 setsignal(SIGTTOU); 173 setsignal(SIGTTIN); 174 } 175 jobctl = on; 176} 177#endif 178 179 | 40 41#include <sys/ioctl.h> 42#include <sys/param.h> 43#include <sys/resource.h> 44#include <sys/time.h> 45#include <sys/wait.h> 46#include <errno.h> 47#include <fcntl.h> --- 124 unchanged lines hidden (view full) --- 172 setsignal(SIGTTOU); 173 setsignal(SIGTTIN); 174 } 175 jobctl = on; 176} 177#endif 178 179 |
180#ifdef mkinit 181INCLUDE <sys/types.h> 182INCLUDE <stdlib.h> 183 184SHELLPROC { 185 backgndpid = -1; 186 bgjob = NULL; | |
187#if JOBS | 180#if JOBS |
188 jobctl = 0; 189#endif 190} 191 192#endif 193 194 195 196#if JOBS | |
197int 198fgcmd(int argc __unused, char **argv) 199{ 200 struct job *jp; 201 pid_t pgrp; 202 int status; 203 204 jp = getjob(argv[1]); --- 1166 unchanged lines hidden --- | 181int 182fgcmd(int argc __unused, char **argv) 183{ 184 struct job *jp; 185 pid_t pgrp; 186 int status; 187 188 jp = getjob(argv[1]); --- 1166 unchanged lines hidden --- |