--- researchv9/jerq/include/jerqproc.h 2018/04/24 17:21:59 1.1 +++ researchv9/jerq/include/jerqproc.h 2018/04/24 17:31:29 1.1.1.2 @@ -1,17 +1,15 @@ #include +#ifndef PROC_H +#define PROC_H extern int NPROC; -#define STKSIZ 4096 +#define STKSIZ (4096-sizeof(struct _*)) #define CBSIZE 64 /* NPROC*CBSIZE <= queue.h/NCHARS */ #ifndef QUEUE_H -struct cbuf { /* duplicated from queue.h for simplicity */ - struct cbuf *next; - short word; -}; struct clist { - struct cbuf *c_tail; - struct cbuf *c_head; + long c_tail; + long c_head; short c_cc; short state; }; @@ -46,8 +44,15 @@ struct Proc { unsigned char *cbufpin, *cbufpout; struct ttychars ttychars; /* chars for tty driver emulation */ int stack[STKSIZ/sizeof(int)]; /* int for alignment */ + struct Font *defaultfont; }; +struct Nqueue { /* structure used by putname / getname */ + struct Nqueue *next; + struct Proc *proc; + long data; + char name[4]; +}; #ifndef MUX_H # ifdef TASK_C @@ -93,3 +98,4 @@ struct udata { #define MOVED 256 /* layer got moved */ #define RESHAPED 2048 /* layer got reshaped */ #endif MUXTERM +#endif