version 1.2, 1996/06/26 05:36:34 |
version 1.3, 1996/11/30 21:08:57 |
|
|
/* $OpenBSD$ */ |
/* $OpenBSD$ */ |
/* $NetBSD: job.h,v 1.4 1995/06/14 15:19:26 christos Exp $ */ |
/* $NetBSD: job.h,v 1.5 1996/11/06 17:59:10 christos Exp $ */ |
|
|
/* |
/* |
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California. |
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California. |
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
* |
* |
* from: @(#)job.h 5.3 (Berkeley) 6/1/90 |
* from: @(#)job.h 8.1 (Berkeley) 6/6/93 |
*/ |
*/ |
|
|
/*- |
/*- |
|
|
/* |
/* |
* The SEL_ constants determine the maximum amount of time spent in select |
* The SEL_ constants determine the maximum amount of time spent in select |
* before coming out to see if a child has finished. SEL_SEC is the number of |
* before coming out to see if a child has finished. SEL_SEC is the number of |
* seconds and SEL_USEC is the number of micro-seconds |
* seconds and SEL_USEC is the number of micro-seconds |
*/ |
*/ |
#define SEL_SEC 0 |
#define SEL_SEC 0 |
#define SEL_USEC 500000 |
#define SEL_USEC 500000 |
|
|
|
|
/*- |
/*- |
* Job Table definitions. |
* Job Table definitions. |
* |
* |
* Each job has several things associated with it: |
* Each job has several things associated with it: |
* 1) The process id of the child shell |
* 1) The process id of the child shell |
|
|
* 6) An identifier provided by and for the exclusive use of the |
* 6) An identifier provided by and for the exclusive use of the |
* Rmt module. |
* Rmt module. |
* 7) A word of flags which determine how the module handles errors, |
* 7) A word of flags which determine how the module handles errors, |
* echoing, etc. for the job |
* echoing, etc. for the job |
* |
* |
* The job "table" is kept as a linked Lst in 'jobs', with the number of |
* The job "table" is kept as a linked Lst in 'jobs', with the number of |
* active jobs maintained in the 'nJobs' variable. At no time will this |
* active jobs maintained in the 'nJobs' variable. At no time will this |
* exceed the value of 'maxJobs', initialized by the Job_Init function. |
* exceed the value of 'maxJobs', initialized by the Job_Init function. |
* |
* |
* When a job is finished, the Make_Update function is called on each of the |
* When a job is finished, the Make_Update function is called on each of the |
* parents of the node which was just remade. This takes care of the upward |
* parents of the node which was just remade. This takes care of the upward |
|
|
* if we can't export it and maxLocal is 0 */ |
* if we can't export it and maxLocal is 0 */ |
#define JOB_IGNDOTS 0x008 /* Ignore "..." lines when processing |
#define JOB_IGNDOTS 0x008 /* Ignore "..." lines when processing |
* commands */ |
* commands */ |
#define JOB_REMOTE 0x010 /* Job is running remotely */ |
#define JOB_REMOTE 0x010 /* Job is running remotely */ |
#define JOB_FIRST 0x020 /* Job is first job for the node */ |
#define JOB_FIRST 0x020 /* Job is first job for the node */ |
#define JOB_REMIGRATE 0x040 /* Job needs to be remigrated */ |
#define JOB_REMIGRATE 0x040 /* Job needs to be remigrated */ |
#define JOB_RESTART 0x080 /* Job needs to be completely restarted */ |
#define JOB_RESTART 0x080 /* Job needs to be completely restarted */ |
|
|
char *errCheck; /* string to turn error checking on */ |
char *errCheck; /* string to turn error checking on */ |
char *ignErr; /* string to turn off error checking */ |
char *ignErr; /* string to turn off error checking */ |
/* |
/* |
* command-line flags |
* command-line flags |
*/ |
*/ |
char *echo; /* echo commands */ |
char *echo; /* echo commands */ |
char *exit; /* exit on error */ |
char *exit; /* exit on error */ |