/* rb.h - define ring-buffers	*/

struct rb
{
	unsigned	rb_len;		/* length of a unit (chars)	*/
	char *		rb_in;		/* next slot to fill		*/
					/* NULL means buffer is empty	*/
					/* else never outside buffer	*/
	char *		rb_out;		/* next slot to empty		*/
					/* never points outside buffer	*/
	char *		rb_beg;		/* 1st char of ring buffer	*/
	char *		rb_end;		/* just after last char of buf	*/
};

/* end: rb.h */
