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

  1. # include    <useful.h>
  2. # include    "pipes.h"
  3. # include    <sccs.h>
  4.  
  5. SCCSID(@(#)pb_wphys.c    8.1    12/31/84)
  6.  
  7. /*
  8. **  PB_WPHYS -- physical write on pipe
  9. **
  10. **    Parameters:
  11. **        ppb -- a pointer to the data area.
  12. **        fd -- the file descriptor.
  13. **
  14. **    Returns:
  15. **        none
  16. **
  17. **    Side Effects:
  18. **        none
  19. **
  20. **    Called By:
  21. **        pb_write
  22. **
  23. **    Trace Flags:
  24. **        none
  25. */
  26.  
  27. pb_wphys(ppb, fd)
  28. register pb_t    *ppb;
  29. register int    fd;
  30. {
  31.     register int    i;
  32.  
  33.     i = write(fd, (char *) ppb, PB_IOSIZE);
  34.     if (i != PB_IOSIZE)
  35.     {
  36.         pb_dump(ppb, TRUE);
  37.         syserr("pb_wphys: write error: fd=%d, i=%d", fd, i);
  38.     }
  39. }
  40.