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