Skip to content

Implement blocking file I/O using new I/O subsystem #6168

Closed

Description

@brson

The new scheduler won't be ready for a long time, but we can replace core::io with a blocking implementation of the new I/O API. Need to make the implementation first though.

Activity

  1. emberian commented on Aug 5, 2013

    @emberian
    Contributor

    Newsched is in a really good place and std::rt::io::file has some stubs, marking as E-easy.

  2. olsonjeffery commented on Aug 23, 2013

    @olsonjeffery
    Contributor

    Basic file io actions are implemented in std::rt::io::file and the groundwork is laid for future expansion. What is the "definition of done" for this ticket? (fwiw, I'm moving-on to immediately begin impl'ing remaining functionality).

  3. alexcrichton commented on Oct 15, 2013

    @alexcrichton
    Member

    Basic functionality is now provided in std::rt::io::native::file. Currently there is no support for doing anything other than reading/writing existing handles. Items left to-do:

    • Creating handles (FILE* and fd_t)
    • Removing files
    • Creating directories
    • Removing a directory
    • Basic stat information: get a stat, test what a path is, test if a path exists, etc.

    These may just be nice wrappers around libc functionality, but they should be officially re-exported under std::rt::io::native::file as necessary.

  4. doy commented on Dec 31, 2013

    @doy
    Contributor

    This appears to have been fixed in 68d5510.

  5. alexcrichton commented on Dec 31, 2013

    @alexcrichton
    Member

    Good point, thanks!

  6. added a commit that references this issue on Oct 24, 2020
    0b77c35
  7. added a commit that references this issue on Aug 21, 2026
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

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions