From 5195be912eb257c05a0c97e561e72f01af2583ff Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 1 Sep 1996 10:22:36 +0000 Subject: Merge of 4.4-Lite2 sh source, plus some gcc -Wall cleaning. This is a merge of parallel duplicate work by Steve Price and myself. :-] There are some changes to the build that are my fault... mkinit.c was trying (poorly) to duplicate some of the work that make(1) is designed to do. The Makefile hackery is my fault too, the depend list was incomplete because of some explicit OBJS+= entries, so mkdep wasn't picking up their source file #includes. This closes a pile of /bin/sh PR's, but not all of them.. Submitted by: Steve Price , peter --- bin/sh/jobs.h | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) (limited to 'bin/sh/jobs.h') diff --git a/bin/sh/jobs.h b/bin/sh/jobs.h index fd08023..fa42549 100644 --- a/bin/sh/jobs.h +++ b/bin/sh/jobs.h @@ -33,8 +33,8 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#)jobs.h 8.1 (Berkeley) 5/31/93 - * $Id$ + * @(#)jobs.h 8.2 (Berkeley) 5/4/95 + * $Id: jobs.h,v 1.2 1994/09/24 02:57:42 davidg Exp $ */ /* Mode argument to forkshell. Don't change FORK_FG or FORK_BG. */ @@ -78,22 +78,18 @@ struct job { extern short backgndpid; /* pid of last background process */ extern int job_warning; /* user was warned about stopped jobs */ - -#ifdef __STDC__ -void setjobctl(int); -void showjobs(int); -struct job *makejob(union node *, int); -int forkshell(struct job *, union node *, int); -int waitforjob(struct job *); -char *commandtext(union node *); -#else -void setjobctl(); -void showjobs(); -struct job *makejob(); -int forkshell(); -int waitforjob(); -char *commandtext(); -#endif +void setjobctl __P((int)); +int fgcmd __P((int, char **)); +int bgcmd __P((int, char **)); +int jobscmd __P((int, char **)); +void showjobs __P((int)); +int waitcmd __P((int, char **)); +int jobidcmd __P((int, char **)); +struct job *makejob __P((union node *, int)); +int forkshell __P((struct job *, union node *, int)); +int waitforjob __P((struct job *)); +int stoppedjobs __P((void)); +char *commandtext __P((union node *)); #if ! JOBS #define setjobctl(on) /* do nothing */ -- cgit v1.1