struct job *jobtab; /* array of jobs */
int njobs; /* size of array */
-MKINIT short backgndpid = -1; /* pid of last background process */
+MKINIT pid_t backgndpid = -1; /* pid of last background process */
#if JOBS
int initialpgrp; /* pgrp of shell on invocation */
-short curjob; /* current job */
+pid_t curjob; /* current job */
#endif
#ifdef __STDC__
*/
struct procstat {
- short pid; /* process id */
+ pid_t pid; /* process id */
short status; /* status flags (defined above) */
char *cmd; /* text of command being run */
};
struct job {
struct procstat ps0; /* status of process */
struct procstat *ps; /* status or processes when more than one */
- short nprocs; /* number of processes */
- short pgrp; /* process group of this job */
+ pid_t nprocs; /* number of processes */
+ pid_t pgrp; /* process group of this job */
char state; /* true if job is finished */
char used; /* true if this entry is in used */
char changed; /* true if status has changed */
#endif
};
-extern short backgndpid; /* pid of last background process */
+extern pid_t backgndpid; /* pid of last background process */
#ifdef __STDC__