static int v9fs_synth_readdir_r(FsContext *ctx, V9fsFidOpenState *fs,

                                struct dirent *entry, struct dirent **result)

{

    int ret;

    V9fsSynthOpenState *synth_open = fs->private;

    V9fsSynthNode *node = synth_open->node;

    ret = v9fs_synth_get_dentry(node, entry, result, synth_open->offset);

    if (!ret && *result != NULL) {

        synth_open->offset++;

    }

    return ret;

}

static int v9fs_synth_readdir_r(FsContext *ctx, V9fsFidOpenState *fs,

                                struct dirent *entry, struct dirent **result)

{

    int ret;

    V9fsSynthOpenState *synth_open = fs->private;

    V9fsSynthNode *node = synth_open->node;

    ret = v9fs_synth_get_dentry(node, entry, result, synth_open->offset);

    if (!ret && *result != NULL) {

        synth_open->offset++;

    }

    return ret;

}

static int FUNC_0(FsContext *VAR_0, V9fsFidOpenState *VAR_1,

                                struct dirent *VAR_2, struct dirent **VAR_3)

{

    int VAR_4;

    V9fsSynthOpenState *synth_open = VAR_1->private;

    V9fsSynthNode *node = synth_open->node;

    VAR_4 = v9fs_synth_get_dentry(node, VAR_2, VAR_3, synth_open->offset);

    if (!VAR_4 && *VAR_3 != NULL) {

        synth_open->offset++;

    }

    return VAR_4;

}

static int FUNC_0(FsContext *VAR_0, V9fsFidOpenState *VAR_1,
struct dirent *VAR_2, struct dirent **VAR_3)
{ int VAR_4; V9fsSynthOpenState *synth_open = VAR_1->private; V9fsSynthNode *node = synth_open->node; VAR_4 = v9fs_synth_get_dentry(node, VAR_2, VAR_3, synth_open->offset); if (!VAR_4 && *VAR_3 != NULL) { synth_open->offset++; } return VAR_4; }