static int local_opendir(FsContext *ctx,

                         V9fsPath *fs_path, V9fsFidOpenState *fs)

{

    char buffer[PATH_MAX];

    char *path = fs_path->data;



    fs->dir = opendir(rpath(ctx, path, buffer));

    if (!fs->dir) {

        return -1;

    }

    return 0;

}

static int local_opendir(FsContext *ctx,

                         V9fsPath *fs_path, V9fsFidOpenState *fs)

{

    char buffer[PATH_MAX];

    char *path = fs_path->data;



    fs->dir = opendir(rpath(ctx, path, buffer));

    if (!fs->dir) {

        return -1;

    }

    return 0;

}

static int FUNC_0(FsContext *VAR_0,

                         V9fsPath *VAR_1, V9fsFidOpenState *VAR_2)

{

    char VAR_3[PATH_MAX];

    char *VAR_4 = VAR_1->data;



    VAR_2->dir = opendir(rpath(VAR_0, VAR_4, VAR_3));

    if (!VAR_2->dir) {

        return -1;

    }

    return 0;

}

static int FUNC_0(FsContext *VAR_0,
V9fsPath *VAR_1, V9fsFidOpenState *VAR_2)
{ char VAR_3[PATH_MAX]; char *VAR_4 = VAR_1->data; VAR_2->dir = opendir(rpath(VAR_0, VAR_4, VAR_3)); if (!VAR_2->dir) { return -1; } return 0; }