|
|
1.1 ! root 1: #define QUEUE_H ! 2: #define NCHARS 512 ! 3: #define NULL ((char *)0) ! 4: #define STOPPED 1 ! 5: ! 6: struct cbuf { ! 7: struct cbuf *next; ! 8: short word; ! 9: }; ! 10: struct clist { ! 11: struct cbuf *c_tail; ! 12: struct cbuf *c_head; ! 13: short c_cc; ! 14: short state; ! 15: }; ! 16: ! 17: ! 18: #ifdef QUEUE_C ! 19: struct cbuf cbufs[NCHARS]; ! 20: struct clist queues[3]; ! 21: struct cbuf *freelist; ! 22: #else ! 23: extern struct cbuf cbufs[NCHARS]; ! 24: extern struct clist queues[3]; ! 25: extern struct cbuf *freelist; ! 26: #endif ! 27: ! 28: #define RCVQUEUE queues[0] /* chars from host */ ! 29: #define KBDQUEUE queues[1] /* chars from keyboard */ ! 30: #define OUTQUEUE queues[2] /* chars to send to host */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.