This commit is contained in:
rsc 2007-08-09 16:56:40 +00:00
parent 4249490230
commit 22330658ff

8
pipe.c
View file

@ -10,10 +10,10 @@
#define PIPESIZE 512 #define PIPESIZE 512
struct pipe { struct pipe {
int readopen; // read fd is still open int readopen; // read fd is still open
int writeopen; // write fd is still open int writeopen; // write fd is still open
int writep; // next index to write int writep; // next index to write
int readp; // next index to read int readp; // next index to read
struct spinlock lock; struct spinlock lock;
char data[PIPESIZE]; char data[PIPESIZE];
}; };