|
|
1.1 root 1: /* fifo_len.c -- Measure an internally typed fifo in bytes. */
2: #include <sys/typed.h>
3:
4:
5: /* How long is an open fifo? */
6: long
7: fifo_len(ffp)
8: FIFO *ffp;
9: {
10: /* ffp->f_offset points at the terminating NUL space. */
11: return(sizeof(typed_space) +
12: ((char *) ffp->f_offset) - ((char *)ffp->f_space));
13: } /* fifo_len() */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.