static int proxy_rename(FsContext *ctx, const char *oldpath,

                        const char *newpath)

{

    int retval;

    V9fsString oldname, newname;



    v9fs_string_init(&oldname);

    v9fs_string_init(&newname);



    v9fs_string_sprintf(&oldname, "%s", oldpath);

    v9fs_string_sprintf(&newname, "%s", newpath);

    retval = v9fs_request(ctx->private, T_RENAME, NULL, "ss",

                          &oldname, &newname);

    v9fs_string_free(&oldname);

    v9fs_string_free(&newname);

    if (retval < 0) {

        errno = -retval;

    }

    return retval;

}

static int proxy_rename(FsContext *ctx, const char *oldpath,

                        const char *newpath)

{

    int retval;

    V9fsString oldname, newname;



    v9fs_string_init(&oldname);

    v9fs_string_init(&newname);



    v9fs_string_sprintf(&oldname, "%s", oldpath);

    v9fs_string_sprintf(&newname, "%s", newpath);

    retval = v9fs_request(ctx->private, T_RENAME, NULL, "ss",

                          &oldname, &newname);

    v9fs_string_free(&oldname);

    v9fs_string_free(&newname);

    if (retval < 0) {

        errno = -retval;

    }

    return retval;

}

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

                        const char *VAR_2)

{

    int VAR_3;

    V9fsString oldname, newname;



    v9fs_string_init(&oldname);

    v9fs_string_init(&newname);



    v9fs_string_sprintf(&oldname, "%s", VAR_1);

    v9fs_string_sprintf(&newname, "%s", VAR_2);

    VAR_3 = v9fs_request(VAR_0->private, T_RENAME, NULL, "ss",

                          &oldname, &newname);

    v9fs_string_free(&oldname);

    v9fs_string_free(&newname);

    if (VAR_3 < 0) {

        errno = -VAR_3;

    }

    return VAR_3;

}

static int FUNC_0(FsContext *VAR_0, const char *VAR_1,
const char *VAR_2)
{ int VAR_3; V9fsString oldname, newname; v9fs_string_init(&oldname); v9fs_string_init(&newname); v9fs_string_sprintf(&oldname, "%s", VAR_1); v9fs_string_sprintf(&newname, "%s", VAR_2); VAR_3 = v9fs_request(VAR_0->private, T_RENAME, NULL, "ss",
&oldname, &newname); v9fs_string_free(&oldname); v9fs_string_free(&newname); if (VAR_3 < 0) { errno = -VAR_3; } return VAR_3; }