int v9fs_co_mknod(V9fsState *s, V9fsString *path, uid_t uid,

                  gid_t gid, dev_t dev, mode_t mode)

{

    int err;

    FsCred cred;



    cred_init(&cred);

    cred.fc_uid  = uid;

    cred.fc_gid  = gid;

    cred.fc_mode = mode;

    cred.fc_rdev = dev;

    v9fs_co_run_in_worker(

        {

            err = s->ops->mknod(&s->ctx, path->data, &cred);

            if (err < 0) {

                err = -errno;

            }

        });

    return err;

}

int v9fs_co_mknod(V9fsState *s, V9fsString *path, uid_t uid,

                  gid_t gid, dev_t dev, mode_t mode)

{

    int err;

    FsCred cred;



    cred_init(&cred);

    cred.fc_uid  = uid;

    cred.fc_gid  = gid;

    cred.fc_mode = mode;

    cred.fc_rdev = dev;

    v9fs_co_run_in_worker(

        {

            err = s->ops->mknod(&s->ctx, path->data, &cred);

            if (err < 0) {

                err = -errno;

            }

        });

    return err;

}

int FUNC_0(V9fsState *VAR_0, V9fsString *VAR_1, uid_t VAR_2,

                  gid_t VAR_3, dev_t VAR_4, mode_t VAR_5)

{

    int VAR_6;

    FsCred cred;



    cred_init(&cred);

    cred.fc_uid  = VAR_2;

    cred.fc_gid  = VAR_3;

    cred.fc_mode = VAR_5;

    cred.fc_rdev = VAR_4;

    v9fs_co_run_in_worker(

        {

            VAR_6 = VAR_0->ops->mknod(&VAR_0->ctx, VAR_1->data, &cred);

            if (VAR_6 < 0) {

                VAR_6 = -errno;

            }

        });

    return VAR_6;

}

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