int v9fs_co_mkdir(V9fsState *s, char *name, mode_t mode, uid_t uid, gid_t gid)

{

    int err;

    FsCred cred;



    cred_init(&cred);

    cred.fc_mode = mode;

    cred.fc_uid = uid;

    cred.fc_gid = gid;

    v9fs_co_run_in_worker(

        {

            err = s->ops->mkdir(&s->ctx, name, &cred);

            if (err < 0) {

                err = -errno;

            }

        });

    return err;

}

int v9fs_co_mkdir(V9fsState *s, char *name, mode_t mode, uid_t uid, gid_t gid)

{

    int err;

    FsCred cred;



    cred_init(&cred);

    cred.fc_mode = mode;

    cred.fc_uid = uid;

    cred.fc_gid = gid;

    v9fs_co_run_in_worker(

        {

            err = s->ops->mkdir(&s->ctx, name, &cred);

            if (err < 0) {

                err = -errno;

            }

        });

    return err;

}

int FUNC_0(V9fsState *VAR_0, char *VAR_1, mode_t VAR_2, uid_t VAR_3, gid_t VAR_4)

{

    int VAR_5;

    FsCred cred;



    cred_init(&cred);

    cred.fc_mode = VAR_2;

    cred.fc_uid = VAR_3;

    cred.fc_gid = VAR_4;

    v9fs_co_run_in_worker(

        {

            VAR_5 = VAR_0->ops->mkdir(&VAR_0->ctx, VAR_1, &cred);

            if (VAR_5 < 0) {

                VAR_5 = -errno;

            }

        });

    return VAR_5;

}

int FUNC_0(V9fsState *VAR_0, char *VAR_1, mode_t VAR_2, uid_t VAR_3, gid_t VAR_4)
{ int VAR_5; FsCred cred; cred_init(&cred); cred.fc_mode = VAR_2; cred.fc_uid = VAR_3; cred.fc_gid = VAR_4; v9fs_co_run_in_worker(
{ VAR_5 = VAR_0->ops->mkdir(&VAR_0->ctx, VAR_1, &cred); if (VAR_5 < 0) { VAR_5 = -errno; } }); return VAR_5; }