Mercurial > hg > CbC > CbC_xv6
annotate src/impl/pipe.h @ 164:9c501dca25e3
add file_impl_pipe.cbc
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 15 Jan 2020 18:53:32 +0900 |
parents | 06bf68d3b83b |
children | 21e83548d738 |
rev | line source |
---|---|
161 | 1 typedef struct pipe<Impl, Isa> impl file { |
154 | 2 #define PIPESIZE 512 |
3 struct spinlock lock; | |
4 char data[PIPESIZE]; | |
5 uint nread; // number of bytes read | |
6 uint nwrite; // number of bytes written | |
7 int readopen; // read fd is still open | |
8 int writeopen; // write fd is still open | |
9 } pipe; |