static int local_name_to_path(FsContext *ctx, V9fsPath *dir_path,

                              const char *name, V9fsPath *target)

{

    if (dir_path) {

        v9fs_path_sprintf(target, "%s/%s", dir_path->data, name);

    } else {

        v9fs_path_sprintf(target, "%s", name);

    }

    return 0;

}

static int local_name_to_path(FsContext *ctx, V9fsPath *dir_path,

                              const char *name, V9fsPath *target)

{

    if (dir_path) {

        v9fs_path_sprintf(target, "%s/%s", dir_path->data, name);

    } else {

        v9fs_path_sprintf(target, "%s", name);

    }

    return 0;

}

    } else {
static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1,

                              const char *VAR_2, V9fsPath *VAR_3)

{

    if (VAR_1) {

        v9fs_path_sprintf(VAR_3, "%s/%s", VAR_1->data, VAR_2);

    } else {

        v9fs_path_sprintf(VAR_3, "%s", VAR_2);

    }

    return 0;

}

static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1,
const char *VAR_2, V9fsPath *VAR_3)
{ if (VAR_1) { v9fs_path_sprintf(VAR_3, "%s/%s", VAR_1->data, VAR_2); } else { v9fs_path_sprintf(VAR_3, "%s", VAR_2); } return 0; }