changeset 334:65c061fed881

clean_fs.dg
author anatofuz
date Sat, 15 Feb 2020 20:23:17 +0900
parents e64c8734a802
children 98a9b99df4dc
files src/interface/fs.dg
diffstat 1 files changed, 2 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- 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<Type,Impl> {
-    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(...);