1141104Sharti/*-
294589Sobrien * Copyright (c) 1988, 1989, 1990, 1993
394589Sobrien *	The Regents of the University of California.  All rights reserved.
45814Sjkh * Copyright (c) 1988, 1989 by Adam de Boor
51590Srgrimes * Copyright (c) 1989 by Berkeley Softworks
61590Srgrimes * All rights reserved.
71590Srgrimes *
81590Srgrimes * This code is derived from software contributed to Berkeley by
91590Srgrimes * Adam de Boor.
101590Srgrimes *
111590Srgrimes * Redistribution and use in source and binary forms, with or without
121590Srgrimes * modification, are permitted provided that the following conditions
131590Srgrimes * are met:
141590Srgrimes * 1. Redistributions of source code must retain the above copyright
151590Srgrimes *    notice, this list of conditions and the following disclaimer.
161590Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
171590Srgrimes *    notice, this list of conditions and the following disclaimer in the
181590Srgrimes *    documentation and/or other materials provided with the distribution.
191590Srgrimes * 3. All advertising materials mentioning features or use of this software
201590Srgrimes *    must display the following acknowledgement:
211590Srgrimes *	This product includes software developed by the University of
221590Srgrimes *	California, Berkeley and its contributors.
231590Srgrimes * 4. Neither the name of the University nor the names of its contributors
241590Srgrimes *    may be used to endorse or promote products derived from this software
251590Srgrimes *    without specific prior written permission.
261590Srgrimes *
271590Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
281590Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
291590Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
301590Srgrimes * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
311590Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
321590Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
331590Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
341590Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
351590Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
361590Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
371590Srgrimes * SUCH DAMAGE.
381590Srgrimes *
3994589Sobrien *	@(#)job.h	8.1 (Berkeley) 6/6/93
4050477Speter * $FreeBSD$
411590Srgrimes */
421590Srgrimes
43141104Sharti#ifndef job_h_4678dfd1
44141104Sharti#define	job_h_4678dfd1
45141104Sharti
461590Srgrimes/*-
471590Srgrimes * job.h --
481590Srgrimes *	Definitions pertaining to the running of jobs in parallel mode.
491590Srgrimes */
501590Srgrimes
51141104Sharti#include <stdio.h>
52141104Sharti
53146177Sharti#include "util.h"
54141104Sharti
55146056Shartistruct Buffer;
56141104Shartistruct GNode;
57146056Shartistruct Lst;
58141104Sharti
59141104Shartivoid Job_Touch(struct GNode *, Boolean);
60141104ShartiBoolean Job_CheckCommands(struct GNode *, void (*abortProc)(const char *, ...));
6192921Simpvoid Job_CatchChildren(Boolean);
62137606Sphkvoid Job_CatchOutput(int flag);
63141104Shartivoid Job_Make(struct GNode *);
64137572Sphkvoid Job_Init(int);
6592921SimpBoolean Job_Full(void);
6692921SimpBoolean Job_Empty(void);
67186279Sfjoevoid Job_Finish(void);
6892921Simpvoid Job_Wait(void);
6992921Simpvoid Job_AbortAll(void);
70186559Sobrienvoid Job_SetPrefix(void);
715814Sjkh
72146144Shartivoid Proc_Init(void);
73146144Sharti
74146054Shartistruct Buffer *Cmd_Exec(const char *, const char **);
75146054Sharti
76167330Sfjoeint Compat_Make(struct GNode *gn, struct GNode *pgn);
77167330Sfjoevoid Compat_InstallSignalHandlers(void);
78146056Shartivoid Compat_Run(struct Lst *);
79146056Sharti
80141104Sharti#endif /* job_h_4678dfd1 */
81