Skip to content

Replace readdir_r with readdir #2673

@asomers

Description

@asomers

Nix commit f9ebcb7 in 2018 added a dir module that internally made use of readdir_r. Even at that time readdir_r was already deprecated. But Nix accepted that change on the grounds that "the Rust standard library does it too". But that's no longer the case. The Rust standard library has switched to plain readdir for Fuchsia and Linux. It will probably soon switch for FreeBSD too. Nix should follow suit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions