home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / ingres04.lzh / source / libq / IIpb_write.c < prev    next >
Encoding:
C/C++ Source or Header  |  1985-01-23  |  661 b   |  42 lines

  1. # include    <ingres.h>
  2. # include    "IIglobals.h"
  3. # include    <sccs.h>
  4.  
  5. SCCSID(@(#)IIpb_write.c    8.1    12/31/84)
  6.  
  7.  
  8. /*
  9. **  IIPB_WRITE -- Write pipe block
  10. **
  11. **    Writes the block specified by ppb down to the PARSER
  12. **
  13. **    Parameters:
  14. **        ppb -- a ptr to the pipe block to write.
  15. **
  16. **    Returns:
  17. **        none
  18. **
  19. **    Side Effects:
  20. **        none
  21. */
  22.  
  23. IIpb_write(ppb)
  24. register pb_t    *ppb;
  25. {
  26.     register int    i;
  27.     register int    ofd;
  28.  
  29.     /* mark the block as coming from this process */
  30.     ppb->pb_from = PB_FRONT;
  31.  
  32.     /* normal message */
  33.     i = ppb->pb_proc;
  34.     IIpb_wphys(ppb, IIw_down);
  35.  
  36.  
  37.     /* reset some exciting pointers */
  38.     ppb->pb_xptr = ppb->pb_data;
  39.     ppb->pb_nleft = PB_DBSIZE;
  40.     ppb->pb_nused = 0;
  41. }
  42.