Skip to content

At least portions of std::sys should be public #18897

Closed
@emberian

Description

@emberian
Member

Right now it is impossible to use MemoryMap with a file because AsFileDesc is in sys_common and thus private.

We should figure out which portions of sys should be public.

Activity

emberian

emberian commented on Nov 12, 2014

@emberian
MemberAuthor
Arcterus

Arcterus commented on Nov 12, 2014

@Arcterus
Contributor

We need AsFileDesc to fix the uutils build as well (without resorting to hacks).

aturon

aturon commented on Nov 12, 2014

@aturon
Member

Yes, exposing file descriptors is very much part of the plan, though they will likely not be exposed directly via sys. More on this very soon.

added a commit that references this issue on Jan 20, 2025

Merge pull request rust-lang#18897 from duncanawoods/master

88ae089
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @emberian@aturon@Arcterus@huonw

      Issue actions

        At least portions of `std::sys` should be public · Issue #18897 · rust-lang/rust