xref: /openbsd/usr.bin/make/job.h (revision 8932bfb7)
1 #ifndef _JOB_H_
2 #define _JOB_H_
3 
4 /*	$OpenBSD: job.h,v 1.25 2010/07/19 19:46:44 espie Exp $	*/
5 /*	$NetBSD: job.h,v 1.5 1996/11/06 17:59:10 christos Exp $ */
6 
7 /*
8  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
9  * Copyright (c) 1988, 1989 by Adam de Boor
10  * Copyright (c) 1989 by Berkeley Softworks
11  * All rights reserved.
12  *
13  * This code is derived from software contributed to Berkeley by
14  * Adam de Boor.
15  *
16  * Redistribution and use in source and binary forms, with or without
17  * modification, are permitted provided that the following conditions
18  * are met:
19  * 1. Redistributions of source code must retain the above copyright
20  *    notice, this list of conditions and the following disclaimer.
21  * 2. Redistributions in binary form must reproduce the above copyright
22  *    notice, this list of conditions and the following disclaimer in the
23  *    documentation and/or other materials provided with the distribution.
24  * 3. Neither the name of the University nor the names of its contributors
25  *    may be used to endorse or promote products derived from this software
26  *    without specific prior written permission.
27  *
28  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
29  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
30  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
31  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
32  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
34  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
37  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38  * SUCH DAMAGE.
39  *
40  *	from: @(#)job.h 8.1 (Berkeley) 6/6/93
41  */
42 
43 /*-
44  * job.h --
45  *	Definitions pertaining to the running of jobs in parallel mode.
46  */
47 
48 extern void Job_Make(GNode *);
49 extern void Job_Init(int);
50 extern bool can_start_job(void);
51 extern bool Job_Empty(void);
52 extern int Job_Finish(void);
53 #ifdef CLEANUP
54 extern void Job_End(void);
55 #else
56 #define Job_End()
57 #endif
58 extern void Job_Wait(void);
59 extern void Job_AbortAll(void);
60 extern void print_errors(void);
61 extern void handle_running_jobs(void);
62 extern void parallel_handler(int);
63 
64 #endif /* _JOB_H_ */
65