Mercurial > hg > Members > menikon > CbC_xv6
diff src/interface/SysRead.h @ 96:d5c4016c65b8
implement read interfacce
author | anatofuz |
---|---|
date | Sat, 09 Nov 2019 19:56:07 +0900 |
parents | src/interface/CbCSysFile.h@bc5bcfd2f6d6 |
children | 547c20b052dc |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/interface/SysRead.h Sat Nov 09 19:56:07 2019 +0900 @@ -0,0 +1,9 @@ +typedef struct SysRead<Type, Impl>{ + union Data* sys_read; + struct UInteger* num; + int n; + char *p; + __code read(__code next(...)); + __code ret(Impl* cbc_sys_file, UInteger* num); + __code next(...); +} SysRead;