static void v9fs_renameat(void *opaque)

{

    ssize_t err = 0;

    size_t offset = 7;

    V9fsPDU *pdu = opaque;

    V9fsState *s = pdu->s;

    int32_t olddirfid, newdirfid;

    V9fsString old_name, new_name;



    pdu_unmarshal(pdu, offset, "dsds", &olddirfid,

                  &old_name, &newdirfid, &new_name);



    v9fs_path_write_lock(s);

    err = v9fs_complete_renameat(pdu, olddirfid,

                                 &old_name, newdirfid, &new_name);

    v9fs_path_unlock(s);

    if (!err) {

        err = offset;

    }

    complete_pdu(s, pdu, err);

    v9fs_string_free(&old_name);

    v9fs_string_free(&new_name);

}

static void v9fs_renameat(void *opaque)

{

    ssize_t err = 0;

    size_t offset = 7;

    V9fsPDU *pdu = opaque;

    V9fsState *s = pdu->s;

    int32_t olddirfid, newdirfid;

    V9fsString old_name, new_name;



    pdu_unmarshal(pdu, offset, "dsds", &olddirfid,

                  &old_name, &newdirfid, &new_name);



    v9fs_path_write_lock(s);

    err = v9fs_complete_renameat(pdu, olddirfid,

                                 &old_name, newdirfid, &new_name);

    v9fs_path_unlock(s);

    if (!err) {

        err = offset;

    }

    complete_pdu(s, pdu, err);

    v9fs_string_free(&old_name);

    v9fs_string_free(&new_name);

}

static void FUNC_0(void *VAR_0)

{

    ssize_t err = 0;

    size_t offset = 7;

    V9fsPDU *pdu = VAR_0;

    V9fsState *s = pdu->s;

    int32_t olddirfid, newdirfid;

    V9fsString old_name, new_name;



    pdu_unmarshal(pdu, offset, "dsds", &olddirfid,

                  &old_name, &newdirfid, &new_name);



    v9fs_path_write_lock(s);

    err = v9fs_complete_renameat(pdu, olddirfid,

                                 &old_name, newdirfid, &new_name);

    v9fs_path_unlock(s);

    if (!err) {

        err = offset;

    }

    complete_pdu(s, pdu, err);

    v9fs_string_free(&old_name);

    v9fs_string_free(&new_name);

}

static void FUNC_0(void *VAR_0)
{ ssize_t err = 0; size_t offset = 7; V9fsPDU *pdu = VAR_0; V9fsState *s = pdu->s; int32_t olddirfid, newdirfid; V9fsString old_name, new_name; pdu_unmarshal(pdu, offset, "dsds", &olddirfid,
&old_name, &newdirfid, &new_name); v9fs_path_write_lock(s); err = v9fs_complete_renameat(pdu, olddirfid,
&old_name, newdirfid, &new_name); v9fs_path_unlock(s); if (!err) { err = offset; } complete_pdu(s, pdu, err); v9fs_string_free(&old_name); v9fs_string_free(&new_name); }