Mercurial > hg > CbC > CbC_xv6
view src/interface/file.dg @ 166:a70c436936e4
impl cbc_sleep
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 16 Jan 2020 15:52:47 +0900 |
parents | eda7ea83f4f3 |
children | e0255e66e646 |
line wrap: on
line source
typedef struct file <Impl> { union Data* file; int ref; // reference count char readable; char writable; unsigned int off; struct stat* st; char* addr; int n; __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;