# HG changeset patch # User anatofuz # Date 1581765797 -32400 # Node ID 65c061fed881b231214f550a6a1272ba05075c71 # Parent e64c8734a80289c0cdf33255e961383526649ecc clean_fs.dg diff -r e64c8734a802 -r 65c061fed881 src/interface/fs.dg --- a/src/interface/fs.dg Sun Feb 09 19:18:42 2020 +0900 +++ b/src/interface/fs.dg Sat Feb 15 20:23:17 2020 +0900 @@ -1,26 +1,4 @@ typedef struct fs { - union Data* fs; - struct superblock* sb; - uint dev; - short type; - struct inode* ip; - struct stat* st; - char* dst; - uint off; - uint n; - const char* s; - const char* t; - struct inode* dp; - char* name; - uint* poff; - uint inum; - char* path; - char* src; - int namex_val; - int strncmp_val; - dirent* de; - int ret; - uint tot; __code readsb(Impl* fs, uint dev, struct superblock* sb, __code next(...)); __code iinit(Impl* fs, __code next(...)); __code ialloc(Impl* fs, uint dev, short type, __code next(...)); @@ -34,8 +12,8 @@ __code readi(Impl* fs, struct inode* ip, char* dst, uint off, uint tot, uint n, __code next(int ret, ...)); __code writei(Impl* fs, struct inode* ip, char* src, uint off, uint tot, uint n, __code next(int ret, ...)); __code namecmp(Impl* fs, const char* s, const char* t, __code next(int strncmp_val, ...)); - __code dirlookup(Impl* fs, struct inode* dp, char* name, uint off, uint* poff, dirent* de, __code next(int ret, ...)); - __code dirlink(struct fs_impl* fs, struct inode* ip, struct dirent* de, struct inode* dp, char* name, uint off, uint inum, __code next(...)); + __code dirlookup(Impl* fs, struct inode* dp, char* name, uint off, uint* poff, struct dirent* de, __code next(int ret, ...)); + __code dirlink(Impl* fs, struct inode* ip, struct dirent* de, struct inode* dp, char* name, uint off, uint inum, __code next(...)); __code namei(Impl* fs, char* path, __code next(int namex_val, ...)); __code nameiparent(Impl* fs, char* path, char* name, __code next(int namex_val, ...)); __code next(...);