File:  [MW Coherent from dump] / coherent / d / PS2_KERNEL / coh.286 / fifo_len.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:39 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/* fifo_len.c -- Measure an internally typed fifo in bytes.  */
#include <sys/typed.h>


/* How long is an open fifo?  */
long
fifo_len(ffp)
	FIFO *ffp;
{
	/* ffp->f_offset points at the terminating NUL space.  */
	return(sizeof(typed_space) +
		((char *) ffp->f_offset) - ((char *)ffp->f_space));
} /* fifo_len() */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.