Mercurial > hg > CbC > CbC_xv6
view 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 |
line wrap: on
line source
typedef struct pipe<Impl, Isa> impl file { #define PIPESIZE 512 struct spinlock lock; char data[PIPESIZE]; uint nread; // number of bytes read uint nwrite; // number of bytes written int readopen; // read fd is still open int writeopen; // write fd is still open } pipe;