1: # include   <pipes.h>
   2: # include   <sccs.h>
   3: 
   4: SCCSID(@(#)IIpb_flush.c	8.1	12/31/84)
   5: 
   6: 
   7: /*
   8: **  IIPB_FLUSH -- flush a pipe buffer
   9: **
  10: **	This routine insures that all the data in a pipe buffer
  11: **	is flushed out to the pipe.
  12: **
  13: **	We also handle input switching in this routine.  If the
  14: **	message we are writing is not merely informational (such
  15: **	as an error message, or some sort of meta message), we
  16: **	change the input to be whatever pipe the named process
  17: **	will write back on.
  18: **
  19: **	Parameters:
  20: **		ppb -- a ptr to the pipe buffer to flush.
  21: **
  22: **	Returns:
  23: **		none
  24: **
  25: **	Side Effects:
  26: **		none
  27: **
  28: **	Trace Flags:
  29: **		none
  30: */
  31: 
  32: IIpb_flush(ppb)
  33: register pb_t   *ppb;
  34: {
  35:     /* mark this as an EOF block and flush the buffer */
  36:     ppb->pb_stat |= PB_EOF;
  37:     IIpb_write(ppb);
  38: }

Defined functions

Last modified: 1986-04-17
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 729
Valid CSS Valid XHTML 1.0 Strict