[BACK]Return to job.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Diff for /src/usr.bin/make/job.h between version 1.9 and 1.10

version 1.9, 2001/05/03 13:41:06 version 1.10, 2001/05/23 12:34:45
Line 1 
Line 1 
   #ifndef _JOB_H_
   #define _JOB_H_
   
 /*      $OpenPackages$ */  /*      $OpenPackages$ */
 /*      $OpenBSD$       */  /*      $OpenBSD$       */
 /*      $NetBSD: job.h,v 1.5 1996/11/06 17:59:10 christos Exp $ */  /*      $NetBSD: job.h,v 1.5 1996/11/06 17:59:10 christos Exp $ */
Line 47 
Line 50 
  *      Definitions pertaining to the running of jobs in parallel mode.   *      Definitions pertaining to the running of jobs in parallel mode.
  *      Exported from job.c for the use of remote-execution modules.   *      Exported from job.c for the use of remote-execution modules.
  */   */
 #ifndef _JOB_H_  
 #define _JOB_H_  
   
 #define TMPPAT  "/tmp/makeXXXXXXXXXX"  #define TMPPAT  "/tmp/makeXXXXXXXXXX"
   
 /*  /*
Line 175 
Line 175 
  * a case, errCheck becomes a printf template for echoing the command,   * a case, errCheck becomes a printf template for echoing the command,
  * should echoing be on and ignErr becomes another printf template for   * should echoing be on and ignErr becomes another printf template for
  * executing the command while ignoring the return status. If either of these   * executing the command while ignoring the return status. If either of these
  * strings is empty when hasErrCtl is FALSE, the command will be executed   * strings is empty when hasErrCtl is false, the command will be executed
  * anyway as is and if it causes an error, so be it.   * anyway as is and if it causes an error, so be it.
  */   */
 typedef struct Shell_ {  typedef struct Shell_ {
Line 185 
Line 185 
                                  * source of a .SHELL target. For user-defined                                   * source of a .SHELL target. For user-defined
                                  * shells, this is the full path of the shell.                                   * shells, this is the full path of the shell.
                                  */                                   */
     Boolean       hasEchoCtl;   /* True if both echoOff and echoOn defined */      bool          hasEchoCtl;   /* True if both echoOff and echoOn defined */
     char          *echoOff;     /* command to turn off echo */      char          *echoOff;     /* command to turn off echo */
     char          *echoOn;      /* command to turn it back on again */      char          *echoOn;      /* command to turn it back on again */
     char          *noPrint;     /* command to skip when printing output from      char          *noPrint;     /* command to skip when printing output from
                                  * shell. This is usually the command which                                   * shell. This is usually the command which
                                  * was executed to turn off echoing */                                   * was executed to turn off echoing */
     int           noPLen;       /* length of noPrint command */      int           noPLen;       /* length of noPrint command */
     Boolean       hasErrCtl;    /* set if can control error checking for      bool          hasErrCtl;    /* set if can control error checking for
                                  * individual commands */                                   * individual commands */
     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 */
Line 216 
Line 216 
 extern int      nJobs;          /* Number of jobs running (local and remote) */  extern int      nJobs;          /* Number of jobs running (local and remote) */
 extern int      nLocal;         /* Number of jobs running locally */  extern int      nLocal;         /* Number of jobs running locally */
 extern LIST     jobs;           /* List of active job descriptors */  extern LIST     jobs;           /* List of active job descriptors */
 extern Boolean  jobFull;        /* Non-zero if no more jobs should/will start*/  extern bool     jobFull;        /* Non-zero if no more jobs should/will start*/
 extern LIST     stoppedJobs;    /* List of jobs that are stopped or didn't  extern LIST     stoppedJobs;    /* List of jobs that are stopped or didn't
                                  * quite get started */                                   * quite get started */
 #endif  #endif
   
   
 extern void Job_Touch(GNode *, Boolean);  extern void Job_Touch(GNode *, bool);
 extern Boolean Job_CheckCommands(GNode *,  extern bool Job_CheckCommands(GNode *,
         void (*abortProc )(char *, ...));          void (*abortProc )(char *, ...));
 extern void Job_CatchChildren(Boolean);  extern void Job_CatchChildren(bool);
 extern void Job_CatchOutput(void);  extern void Job_CatchOutput(void);
 extern void Job_Make(GNode *);  extern void Job_Make(GNode *);
 extern void Job_Init(int, int);  extern void Job_Init(int, int);
 extern Boolean Job_Full(void);  extern bool Job_Full(void);
 extern Boolean Job_Empty(void);  extern bool Job_Empty(void);
 extern ReturnStatus Job_ParseShell(char *);  extern bool Job_ParseShell(char *);
 extern int Job_Finish(void);  extern int Job_Finish(void);
   #ifdef CLEANUP
 extern void Job_End(void);  extern void Job_End(void);
   #else
   #define Job_End()
   #endif
 extern void Job_Wait(void);  extern void Job_Wait(void);
 extern void Job_AbortAll(void);  extern void Job_AbortAll(void);
 extern void JobFlagForMigration(int);  extern void JobFlagForMigration(int);

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10