* Copyright (c) 1984, 1985, 1986 AT&T
* THIS IS UNPUBLISHED PROPRIETARY SOURCE
* The copyright notice above does not
* evidence any actual or intended
* publication of such source code.
* rewritten by David Korn
/* JBYTES is the number of char's needed for MAXJ bits */
#define JBYTES (1+((MAXJ-1)/(8)))
struct process
*p_next
; /* next process structure */
int p_pgrp
; /* process group */
unsigned char p_job
; /* job number of process */
unsigned char p_flag
; /* flags - see below */
unsigned short p_sig
; /* signal number */
long p_name
; /* offset into history file for command */
struct sgttyb p_stty
; /* terminal state for job */
struct termio p_stty
; /* terminal state for job */
int p_numpost
; /* number of posted jobs */
int p_numrun
; /* number of running jobs */
struct process
*p_pwlist
; /* head of process list */
unsigned char p_freejobs
[JBYTES
]; /* free jobs numbers */
int pipe
[2]; /* pipe used for synchronization */
int maxjob
; /* maximum number of channels */
extern struct jobs jobstat
;
#define J_PIPE 1 /* set when setting up a pipeline */