Mercurial > hg > Members > menikon > CbC_xv6
changeset 159:eda7ea83f4f3
impl file interface
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 14 Jan 2020 17:03:06 +0900 |
parents | d0a708a29ec7 |
children | 5de948efb678 |
files | src/inode.h src/interface/file.dg src/move_data_gears/pipe.h |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/inode.h Tue Jan 14 17:02:58 2020 +0900 +++ b/src/inode.h Tue Jan 14 17:03:06 2020 +0900 @@ -1,4 +1,4 @@ -typedef struct inode <Impl> { +typedef struct inode <Impl, Isa> impl file { uint dev; // Device number uint inum; // Inode number int ref; // Reference count
--- a/src/interface/file.dg Tue Jan 14 17:02:58 2020 +0900 +++ b/src/interface/file.dg Tue Jan 14 17:03:06 2020 +0900 @@ -7,8 +7,8 @@ struct stat* st; char* addr; int n; - __code dup(Impl* file, __code next(...)); __code stat(Impl* file, struct stat* st, __code next(...)); __code read(Impl* file, char* addr, __code next(...)); __code write(Impl* file, char* addr, int n, __code next(...)); + __code close(Impl* file,__code next(...)); } file;