1: #
   2: /*
   3: **  pipes.h
   4: **
   5: **	Interprocess pipe format and associated manifest constants
   6: */
   7: 
   8: # define    PBUFSIZ     120 /* length of pipe buffer */
   9: # define    HDRSIZ      8   /* length of pipe header */
  10: 
  11: /* -- PIPE PARAMETERS -- */
  12: # define    NORM_STAT   0   /* HDRSTAT: data block */
  13: # define    LAST_STAT   1   /* HDRSTAT: last block of cmnd */
  14: # define    ERR_STAT    2   /* HDRSTAT: error block (sync) */
  15: # define    SYNC_STAT   3   /* sync on delete signal */
  16: 
  17: struct pipfrmt          /* interprocess pipe format: */
  18: {
  19:     char    exec_id;    /* target overlay id */
  20:     char    func_id;    /* command id in target overlay */
  21:     int err_id;     /* error status
  22: 				    0 - no errors
  23: 				    non zero, error identifier	*/
  24:     char    hdrstat;    /* block status word
  25: 				    0 - good block in command
  26: 				    1 - last block in command	*/
  27:     char    buf_len;    /* # of useful bytes in PBUF
  28: 					values 0 to 120.
  29: 					rdpipe effectively
  30: 					concatenates significant
  31: 					parts of blocks.	*/
  32:     char    param_id;   /* one byte param available to calling pgm */
  33:     char    expansion;  /* reserved for expansion */
  34:     char    pbuf[PBUFSIZ];  /* pipe data buffer */
  35:     int pbuf_pt;    /* next available slot in PBUF */
  36: };
  37: 
  38: 
  39: /* modes for rdpipe and wrpipe */
  40: # define    P_PRIME     0   /* prime the pipe */
  41: # define    P_NORM      1   /* normal read or write */
  42: # define    P_SYNC      2   /* read for sync */
  43: # define    P_END       2   /* write a sync block */
  44: # define    P_EXECID    3   /* read execid */
  45: # define    P_FUNCID    4   /* read funcid */
  46: # define    P_FLUSH     3   /* write non-sync block */
  47: # define    P_WRITE     4   /* write block, previous type */
  48: # define    P_INT       5   /* synchronize on delete interrupt */
  49: # define    P_PARAM     6   /* set/get param field */
  50: 
  51: /* pipe descriptors */
  52: extern int  R_up;       /* Read from process n-1 */
  53: extern int  W_up;       /* Write to process n-1 */
  54: extern int  R_down;     /* Read from process n+1 */
  55: extern int  W_down;     /* Write to process n+1 */
  56: extern int  R_front;    /* Read from front end */
  57: extern int  W_front;    /* Write to front end */

Defined struct's

pipfrmt defined in line 17; used 152 times

Defined macros

ERR_STAT defined in line 14; never used
P_NORM defined in line 41; used 65 times
P_PARAM defined in line 49; used 1 times
P_WRITE defined in line 47; used 1 times

Usage of this include

pipes.h used 81 times
Last modified: 1980-12-17
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 3694
Valid CSS Valid XHTML 1.0 Strict