static void v9fs_post_lcreate(V9fsState *s, V9fsLcreateState *vs, int err)

{

    if (err == 0) {

        v9fs_string_copy(&vs->fidp->path, &vs->fullname);

        stat_to_qid(&vs->stbuf, &vs->qid);

        vs->offset += pdu_marshal(vs->pdu, vs->offset, "Qd", &vs->qid,

                &vs->iounit);

        err = vs->offset;

    } else {

        vs->fidp->fid_type = P9_FID_NONE;

        close(vs->fidp->fs.fd);

        err = -errno;

    }



    complete_pdu(s, vs->pdu, err);

    v9fs_string_free(&vs->name);

    v9fs_string_free(&vs->fullname);

    qemu_free(vs);

}

static void v9fs_post_lcreate(V9fsState *s, V9fsLcreateState *vs, int err)

{

    if (err == 0) {

        v9fs_string_copy(&vs->fidp->path, &vs->fullname);

        stat_to_qid(&vs->stbuf, &vs->qid);

        vs->offset += pdu_marshal(vs->pdu, vs->offset, "Qd", &vs->qid,

                &vs->iounit);

        err = vs->offset;

    } else {

        vs->fidp->fid_type = P9_FID_NONE;

        close(vs->fidp->fs.fd);

        err = -errno;

    }



    complete_pdu(s, vs->pdu, err);

    v9fs_string_free(&vs->name);

    v9fs_string_free(&vs->fullname);

    qemu_free(vs);

}

        close(vs->fidp->fs.fd);
static void FUNC_0(V9fsState *VAR_0, V9fsLcreateState *VAR_1, int VAR_2)

{

    if (VAR_2 == 0) {

        v9fs_string_copy(&VAR_1->fidp->path, &VAR_1->fullname);

        stat_to_qid(&VAR_1->stbuf, &VAR_1->qid);

        VAR_1->offset += pdu_marshal(VAR_1->pdu, VAR_1->offset, "Qd", &VAR_1->qid,

                &VAR_1->iounit);

        VAR_2 = VAR_1->offset;

    } else {

        VAR_1->fidp->fid_type = P9_FID_NONE;

        close(VAR_1->fidp->fs.fd);

        VAR_2 = -errno;

    }



    complete_pdu(VAR_0, VAR_1->pdu, VAR_2);

    v9fs_string_free(&VAR_1->name);

    v9fs_string_free(&VAR_1->fullname);

    qemu_free(VAR_1);

}

static void FUNC_0(V9fsState *VAR_0, V9fsLcreateState *VAR_1, int VAR_2)
{ if (VAR_2 == 0) { v9fs_string_copy(&VAR_1->fidp->path, &VAR_1->fullname); stat_to_qid(&VAR_1->stbuf, &VAR_1->qid); VAR_1->offset += pdu_marshal(VAR_1->pdu, VAR_1->offset, "Qd", &VAR_1->qid,
&VAR_1->iounit); VAR_2 = VAR_1->offset; } else { VAR_1->fidp->fid_type = P9_FID_NONE; close(VAR_1->fidp->fs.fd); VAR_2 = -errno; } complete_pdu(VAR_0, VAR_1->pdu, VAR_2); v9fs_string_free(&VAR_1->name); v9fs_string_free(&VAR_1->fullname); qemu_free(VAR_1); }