|
|
1.1 ! root 1: # include <pipes.h> ! 2: # include <sccs.h> ! 3: ! 4: SCCSID(@(#)IIpb_flush.c 7.1 2/5/81) ! 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: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.