Mercurial > hg > CbC > CbC_xv6
diff src/pipe.cbc @ 154:343f8f3c8f18
add pipe.h
author | anatofuz |
---|---|
date | Thu, 19 Dec 2019 11:32:40 +0900 |
parents | ef44d384ad9d |
children | 7c200a8328fa |
line wrap: on
line diff
--- a/src/pipe.cbc Wed Dec 18 15:55:22 2019 +0900 +++ b/src/pipe.cbc Thu Dec 19 11:32:40 2019 +0900 @@ -11,6 +11,7 @@ #define __ncode __code # +/* struct pipe { struct spinlock lock; char data[PIPESIZE]; @@ -19,6 +20,7 @@ int readopen; // read fd is still open int writeopen; // write fd is still open }; +*/ int pipealloc(struct file **f0, struct file **f1) {