static int local_opendir(FsContext *ctx,

                         V9fsPath *fs_path, V9fsFidOpenState *fs)

{

    int dirfd;

    DIR *stream;



    dirfd = local_opendir_nofollow(ctx, fs_path->data);

    if (dirfd == -1) {

        return -1;

    }



    stream = fdopendir(dirfd);

    if (!stream) {


        return -1;

    }

    fs->dir.stream = stream;

    return 0;

}
static int local_opendir(FsContext *ctx,

                         V9fsPath *fs_path, V9fsFidOpenState *fs)

{

    int dirfd;

    DIR *stream;



    dirfd = local_opendir_nofollow(ctx, fs_path->data);

    if (dirfd == -1) {

        return -1;

    }



    stream = fdopendir(dirfd);

    if (!stream) {


        return -1;

    }

    fs->dir.stream = stream;

    return 0;

}
static int FUNC_0(FsContext *VAR_0,

                         V9fsPath *VAR_1, V9fsFidOpenState *VAR_2)

{

    int VAR_3;

    DIR *stream;



    VAR_3 = local_opendir_nofollow(VAR_0, VAR_1->data);

    if (VAR_3 == -1) {

        return -1;

    }



    stream = fdopendir(VAR_3);

    if (!stream) {


        return -1;

    }

    VAR_2->dir.stream = stream;

    return 0;

}
static int FUNC_0(FsContext *VAR_0,
V9fsPath *VAR_1, V9fsFidOpenState *VAR_2)
{ int VAR_3; DIR *stream; VAR_3 = local_opendir_nofollow(VAR_0, VAR_1->data); if (VAR_3 == -1) { return -1; } stream = fdopendir(VAR_3); if (!stream) { return -1; } VAR_2->dir.stream = stream; return 0; }