aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/job.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bmake/job.h')
-rw-r--r--contrib/bmake/job.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/contrib/bmake/job.h b/contrib/bmake/job.h
index a412365de572..d48424858201 100644
--- a/contrib/bmake/job.h
+++ b/contrib/bmake/job.h
@@ -1,4 +1,4 @@
-/* $NetBSD: job.h,v 1.58 2020/10/26 21:34:10 rillig Exp $ */
+/* $NetBSD: job.h,v 1.63 2020/11/14 13:27:01 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -117,25 +117,25 @@ struct pollfd;
# include "meta.h"
#endif
-typedef enum JobState {
+typedef enum JobStatus {
JOB_ST_FREE = 0, /* Job is available */
- JOB_ST_SETUP = 1, /* Job is allocated but otherwise invalid */
+ JOB_ST_SET_UP = 1, /* Job is allocated but otherwise invalid */
+ /* XXX: What about the 2? */
JOB_ST_RUNNING = 3, /* Job is running, pid valid */
JOB_ST_FINISHED = 4 /* Job is done (ie after SIGCHILD) */
-} JobState;
+} JobStatus;
typedef enum JobFlags {
+ JOB_NONE = 0,
/* Ignore non-zero exits */
- JOB_IGNERR = 0x001,
+ JOB_IGNERR = 1 << 0,
/* no output */
- JOB_SILENT = 0x002,
+ JOB_SILENT = 1 << 1,
/* Target is a special one. i.e. run it locally
* if we can't export it and maxLocal is 0 */
- JOB_SPECIAL = 0x004,
- /* Ignore "..." lines when processing commands */
- JOB_IGNDOTS = 0x008,
+ JOB_SPECIAL = 1 << 2,
/* we've sent 'set -x' */
- JOB_TRACED = 0x400
+ JOB_TRACED = 1 << 10
} JobFlags;
/* A Job manages the shell commands that are run to create a single target.
@@ -167,9 +167,9 @@ typedef struct Job {
int exit_status; /* from wait4() in signal handler */
- JobState job_state; /* status of the job entry */
+ JobStatus status;
- char job_suspended;
+ Boolean suspended;
JobFlags flags; /* Flags to control treatment of job */