static int proxy_renameat(FsContext *ctx, V9fsPath *olddir,

                          const char *old_name, V9fsPath *newdir,

                          const char *new_name)

{

    int ret;

    V9fsString old_full_name, new_full_name;



    v9fs_string_init(&old_full_name);

    v9fs_string_init(&new_full_name);



    v9fs_string_sprintf(&old_full_name, "%s/%s", olddir->data, old_name);

    v9fs_string_sprintf(&new_full_name, "%s/%s", newdir->data, new_name);



    ret = proxy_rename(ctx, old_full_name.data, new_full_name.data);

    v9fs_string_free(&old_full_name);

    v9fs_string_free(&new_full_name);

    return ret;

}

static int proxy_renameat(FsContext *ctx, V9fsPath *olddir,

                          const char *old_name, V9fsPath *newdir,

                          const char *new_name)

{

    int ret;

    V9fsString old_full_name, new_full_name;



    v9fs_string_init(&old_full_name);

    v9fs_string_init(&new_full_name);



    v9fs_string_sprintf(&old_full_name, "%s/%s", olddir->data, old_name);

    v9fs_string_sprintf(&new_full_name, "%s/%s", newdir->data, new_name);



    ret = proxy_rename(ctx, old_full_name.data, new_full_name.data);

    v9fs_string_free(&old_full_name);

    v9fs_string_free(&new_full_name);

    return ret;

}

static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1,

                          const char *VAR_2, V9fsPath *VAR_3,

                          const char *VAR_4)

{

    int VAR_5;

    V9fsString old_full_name, new_full_name;



    v9fs_string_init(&old_full_name);

    v9fs_string_init(&new_full_name);



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

    v9fs_string_sprintf(&new_full_name, "%s/%s", VAR_3->data, VAR_4);



    VAR_5 = proxy_rename(VAR_0, old_full_name.data, new_full_name.data);

    v9fs_string_free(&old_full_name);

    v9fs_string_free(&new_full_name);

    return VAR_5;

}

static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1,
const char *VAR_2, V9fsPath *VAR_3,
const char *VAR_4)
{ int VAR_5; V9fsString old_full_name, new_full_name; v9fs_string_init(&old_full_name); v9fs_string_init(&new_full_name); v9fs_string_sprintf(&old_full_name, "%s/%s", VAR_1->data, VAR_2); v9fs_string_sprintf(&new_full_name, "%s/%s", VAR_3->data, VAR_4); VAR_5 = proxy_rename(VAR_0, old_full_name.data, new_full_name.data); v9fs_string_free(&old_full_name); v9fs_string_free(&new_full_name); return VAR_5; }