view src/impl/fs_impl.cbc @ 298:2e71e7776062

fix generate_stub
author anatofuz
date Wed, 29 Jan 2020 21:40:55 +0900
parents 2fcabbf8ceda
children e825c247ab24
line wrap: on
line source

#include "../../context.h"
#interface "fs.dg"

// ----
// typedef struct fs_impl<Impl, Isa> impl fs{
//     union Data* fs_impl;
// 
// 
// 
// 
// } fs_impl;
// ----

fs* createfs_impl(struct Context* cbc_context) {
    struct fs* fs  = new fs();
    struct fs_impl* fs_impl = new fs_impl();
    fs->fs = (union Data*)fs_impl;
    fs_impl->fs_impl = NULL;
    fs->readsb = C_readsbfs_impl;
    fs->iinit = C_iinitfs_impl;
    fs->ialloc = C_iallocfs_impl;
    fs->iupdate = C_iupdatefs_impl;
    fs->idup = C_idupfs_impl;
    fs->ilock = C_ilockfs_impl;
    fs->iunlock = C_iunlockfs_impl;
    fs->iput = C_iputfs_impl;
    fs->iunlockput = C_iunlockputfs_impl;
    fs->stati = C_statifs_impl;
    fs->readi = C_readifs_impl;
    fs->writei = C_writeifs_impl;
    fs->namecmp = C_namecmpfs_impl;
    fs->dirlookup = C_dirlookupfs_impl;
    fs->dirlink = C_dirlinkfs_impl;
    fs->namei = C_nameifs_impl;
    fs->nameiparent = C_nameiparentfs_impl;
    return fs;
}


__code readsbfs_impl(struct fs_impl* fs, uint dev, struct superblock* sb, __code next(...)) { //:skip

    goto next(...);
}

__code iinitfs_impl(struct fs_impl* fs, __code next(...)) {

    goto next(...);
}

__code iallocfs_impl(struct fs_impl* fs, uint dev, short type, __code next(...)) {

    goto next(...);
}

__code iupdatefs_impl(struct fs_impl* fs, struct inode* ip, __code next(...)) {

    goto next(...);
}

__code idupfs_impl(struct fs_impl* fs, struct inode* ip, __code next(...)) {

    goto next(...);
}

__code ilockfs_impl(struct fs_impl* fs, struct inode* ip, __code next(...)) {

    goto next(...);
}

__code iunlockfs_impl(struct fs_impl* fs, struct inode* ip, __code next(...)) {

    goto next(...);
}

__code iputfs_impl(struct fs_impl* fs, struct inode* ip, __code next(...)) {

    goto next(...);
}

__code iunlockputfs_impl(struct fs_impl* fs, struct inode* ip, __code next(...)) {

    goto next(...);
}

__code statifs_impl(struct fs_impl* fs , struct inode* ip, struct stat* st, __code next(...)) { //:skip

    goto next(...);
}

__code readifs_impl(struct fs_impl* fs, struct inode* ip, char* dst, uint off, uint n, __code next(...)) {

    goto next(...);
}

__code writeifs_impl(struct fs_impl* fs, struct inode* ip, char* src, uint off, uint n, __code next(...)) {

    goto next(...);
}

__code namecmpfs_impl(struct fs_impl* fs, const char* s, const char* t, __code next(...)) {

    goto next(...);
}

__code dirlookupfs_impl(struct inode* dp, char* name, uint* poff, __code next(...)) {

    goto next(...);
}

__code dirlinkfs_impl(struct fs_impl* fs, struct inode* dp, char* name, uint inum, __code next(...)) {

    goto next(...);
}

__code nameifs_impl(struct fs_impl* fs, char* path, __code next(...)) {

    goto next(...);
}

__code nameiparentfs_impl(struct fs_impl* fs, char* path, char* name, __code next(...)) {

    goto next(...);
}