fixed bug in realloc: copy the min size of the new and old block.
[unix-history] / usr / src / bin / csh / proc.h
index 2b06910..712e83a 100644 (file)
@@ -4,7 +4,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)proc.h      5.5 (Berkeley) %G%
+ *     @(#)proc.h      5.7 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -21,7 +21,7 @@ struct process {
     struct directory *p_cwd;   /* cwd of the job (only in head) */
     short unsigned p_flags;    /* various job status flags */
     char    p_reason;          /* reason for entering this state */
     struct directory *p_cwd;   /* cwd of the job (only in head) */
     short unsigned p_flags;    /* various job status flags */
     char    p_reason;          /* reason for entering this state */
-    char    p_index;           /* shorthand job index */
+    int     p_index;           /* shorthand job index */
     int     p_pid;
     int     p_jobid;           /* pid of job leader */
     /* if a job is stopped/background p_jobid gives its pgrp */
     int     p_pid;
     int     p_jobid;           /* pid of job leader */
     /* if a job is stopped/background p_jobid gives its pgrp */
@@ -44,7 +44,7 @@ struct process {
 #define        PAWAITED        (1<<7)  /* top level is waiting for it */
 #define        PFOREGND        (1<<8)  /* started in shells pgrp */
 #define        PDUMPED         (1<<9)  /* process dumped core */
 #define        PAWAITED        (1<<7)  /* top level is waiting for it */
 #define        PFOREGND        (1<<8)  /* started in shells pgrp */
 #define        PDUMPED         (1<<9)  /* process dumped core */
-#define        PDIAG           (1<<10) /* diagnostic output also piped out */
+#define        PERR            (1<<10) /* diagnostic output also piped out */
 #define        PPOU            (1<<11) /* piped output */
 #define        PREPORTED       (1<<12) /* status has been reported */
 #define        PINTERRUPTED    (1<<13) /* job stopped via interrupt signal */
 #define        PPOU            (1<<11) /* piped output */
 #define        PREPORTED       (1<<12) /* status has been reported */
 #define        PINTERRUPTED    (1<<13) /* job stopped via interrupt signal */
@@ -72,4 +72,4 @@ struct process *pcurrjob;     /* current job */
 struct process *pcurrent;      /* current job in table */
 struct process *pprevious;     /* previous job in table */
 
 struct process *pcurrent;      /* current job in table */
 struct process *pprevious;     /* previous job in table */
 
-short   pmaxindex;             /* current maximum job index */
+int    pmaxindex;              /* current maximum job index */