static int proxy_open2(FsContext *fs_ctx, V9fsPath *dir_path, const char *name,

                       int flags, FsCred *credp, V9fsFidOpenState *fs)

{

    V9fsString fullname;



    v9fs_string_init(&fullname);

    v9fs_string_sprintf(&fullname, "%s/%s", dir_path->data, name);



    fs->fd = v9fs_request(fs_ctx->private, T_CREATE, NULL, "sdddd",

                          &fullname, flags, credp->fc_mode,

                          credp->fc_uid, credp->fc_gid);

    v9fs_string_free(&fullname);

    if (fs->fd < 0) {

        errno = -fs->fd;

        fs->fd = -1;

    }

    return fs->fd;

}

static int proxy_open2(FsContext *fs_ctx, V9fsPath *dir_path, const char *name,

                       int flags, FsCred *credp, V9fsFidOpenState *fs)

{

    V9fsString fullname;



    v9fs_string_init(&fullname);

    v9fs_string_sprintf(&fullname, "%s/%s", dir_path->data, name);



    fs->fd = v9fs_request(fs_ctx->private, T_CREATE, NULL, "sdddd",

                          &fullname, flags, credp->fc_mode,

                          credp->fc_uid, credp->fc_gid);

    v9fs_string_free(&fullname);

    if (fs->fd < 0) {

        errno = -fs->fd;

        fs->fd = -1;

    }

    return fs->fd;

}

static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1, const char *VAR_2,

                       int VAR_3, FsCred *VAR_4, V9fsFidOpenState *VAR_5)

{

    V9fsString fullname;



    v9fs_string_init(&fullname);

    v9fs_string_sprintf(&fullname, "%s/%s", VAR_1->data, VAR_2);



    VAR_5->fd = v9fs_request(VAR_0->private, T_CREATE, NULL, "sdddd",

                          &fullname, VAR_3, VAR_4->fc_mode,

                          VAR_4->fc_uid, VAR_4->fc_gid);

    v9fs_string_free(&fullname);

    if (VAR_5->fd < 0) {

        errno = -VAR_5->fd;

        VAR_5->fd = -1;

    }

    return VAR_5->fd;

}

static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1, const char *VAR_2,
int VAR_3, FsCred *VAR_4, V9fsFidOpenState *VAR_5)
{ V9fsString fullname; v9fs_string_init(&fullname); v9fs_string_sprintf(&fullname, "%s/%s", VAR_1->data, VAR_2); VAR_5->fd = v9fs_request(VAR_0->private, T_CREATE, NULL, "sdddd",
&fullname, VAR_3, VAR_4->fc_mode,
VAR_4->fc_uid, VAR_4->fc_gid); v9fs_string_free(&fullname); if (VAR_5->fd < 0) { errno = -VAR_5->fd; VAR_5->fd = -1; } return VAR_5->fd; }