static int proxy_fstat(FsContext *fs_ctx, int fid_type,

                       V9fsFidOpenState *fs, struct stat *stbuf)

{

    int fd;



    if (fid_type == P9_FID_DIR) {

        fd = dirfd(fs->dir);

    } else {

        fd = fs->fd;

    }

    return fstat(fd, stbuf);

}

static int proxy_fstat(FsContext *fs_ctx, int fid_type,

                       V9fsFidOpenState *fs, struct stat *stbuf)

{

    int fd;



    if (fid_type == P9_FID_DIR) {

        fd = dirfd(fs->dir);

    } else {

        fd = fs->fd;

    }

    return fstat(fd, stbuf);

}

static int FUNC_0(FsContext *VAR_0, int VAR_1,

                       V9fsFidOpenState *VAR_2, struct stat *VAR_3)

{

    int VAR_4;



    if (VAR_1 == P9_FID_DIR) {

        VAR_4 = dirfd(VAR_2->dir);

    } else {

        VAR_4 = VAR_2->VAR_4;

    }

    return fstat(VAR_4, VAR_3);

}

static int FUNC_0(FsContext *VAR_0, int VAR_1,
V9fsFidOpenState *VAR_2, struct stat *VAR_3)
{ int VAR_4; if (VAR_1 == P9_FID_DIR) { VAR_4 = dirfd(VAR_2->dir); } else { VAR_4 = VAR_2->VAR_4; } return fstat(VAR_4, VAR_3); }