File:  [Research Unix] / researchv9 / jerq / include / queue.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:59 2018 UTC (8 years, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv9-SUN3_old, researchv9-SUN3, HEAD
researchv9-SUN3(old)

#define	QUEUE_H
#define	NCHARS	2560
#define NULL ((char *)0)

#define	STOPPED		1
#define	QPRIORITY	2

struct clist {
	long	c_tail;
	long	c_head;
	short	c_cc;
	short	state;
};

#ifdef QUEUE_C
short	cbuf_next[NCHARS];
char	cbuf_word[NCHARS];
struct clist queues[3];
int freelist, freemark;
#else
extern short	cbuf_next[NCHARS];
extern char	cbuf_word[NCHARS];
extern struct clist queues[3];
extern int freelist, freemark;
#endif

#define	RCVQUEUE	queues[0]	/* chars from host */
#define	KBDQUEUE	queues[1]	/* chars from keyboard */
#define	OUTQUEUE	queues[2]	/* chars to send to host */

unix.superglobalmegacorp.com

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