Mercurial > hg > CbC > CbC_xv6
annotate src/interface/file.dg @ 125:f103beea19f4
tweak
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 03 Dec 2019 09:32:33 +0900 |
parents | 83aadf17d3d0 |
children | c690327cabc8 |
rev | line source |
---|---|
115
83aadf17d3d0
use .dg files preferentially than .h
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
1 typedef struct file <Impl> { |
83aadf17d3d0
use .dg files preferentially than .h
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
2 enum { FD_NONE, FD_PIPE, FD_INODE } type; |
83aadf17d3d0
use .dg files preferentially than .h
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
3 int ref; // reference count |
83aadf17d3d0
use .dg files preferentially than .h
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
4 char readable; |
83aadf17d3d0
use .dg files preferentially than .h
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
5 char writable; |
83aadf17d3d0
use .dg files preferentially than .h
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
6 struct pipe *pipe; |
83aadf17d3d0
use .dg files preferentially than .h
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
7 struct inode *ip; |
83aadf17d3d0
use .dg files preferentially than .h
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
8 uint off; |
83aadf17d3d0
use .dg files preferentially than .h
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
9 } file; |