Mercurial > hg > Members > menikon > CbC_xv6
changeset 192:000e247dc51d
tweak
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 21 Jan 2020 20:12:16 +0900 |
parents | 64a1b9b8f08e |
children | a961a3378174 14aa35b56347 |
files | src/impl/file_impl_pipe.cbc src/impl/pipe.h |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/impl/file_impl_pipe.cbc Tue Jan 21 20:06:28 2020 +0900 +++ b/src/impl/file_impl_pipe.cbc Tue Jan 21 20:12:16 2020 +0900 @@ -45,6 +45,9 @@ pipe->nwrite = 0; pipe->readopen = 0; pipe->writeopen = 0; + pipe->ref = 0; + pipe->readable = 0; + pipe->writable = 0; pipe->off = 0; pipe->int = 0; pipe->n = 0; @@ -67,6 +70,7 @@ return file; } + __code statpipe(struct pipe* file, struct stat* st, __code next(...)) { //:skip goto next(...);
--- a/src/impl/pipe.h Tue Jan 21 20:06:28 2020 +0900 +++ b/src/impl/pipe.h Tue Jan 21 20:12:16 2020 +0900 @@ -8,9 +8,9 @@ int readopen; // read fd is still open int writeopen; // write fd is still open - int ref; // reference count - char readable; - char writable; + int ref; // reference count + char readable; + char writable; unsigned int off; // interface field