Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement select. #1162

Merged
merged 25 commits into from
Oct 12, 2024
Merged

Implement select. #1162

merged 25 commits into from
Oct 12, 2024

Commits on Sep 14, 2024

  1. Implement select.

    Add a `select` function, defined only on platforms where it doesn't
    have an `FD_SETSIZE` limitation.
    sunfishcode committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    fff5c2a View commit details
    Browse the repository at this point in the history
  2. Fix test hangs on macos.

    In the `waitpid` tests, ensure that the child process has exited, as
    dropping `Command` otherwise leaves the process running. This fixes
    test hangs on macos.
    sunfishcode committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    dd44e09 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    11a0802 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    51c0763 View commit details
    Browse the repository at this point in the history
  5. rustfmt

    sunfishcode committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    e683784 View commit details
    Browse the repository at this point in the history
  6. More comments.

    sunfishcode committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    faacb14 View commit details
    Browse the repository at this point in the history
  7. More comments.

    sunfishcode committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    c6b92bd View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f249fc3 View commit details
    Browse the repository at this point in the history
  9. Switch to a safe API.

    sunfishcode committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    d0667e2 View commit details
    Browse the repository at this point in the history
  10. Support select on Linux and Windows too.

    And make `select` unsafe due to I/O safety.
    sunfishcode committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    592ccda View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2024

  1. Configuration menu
    Copy the full SHA
    4a1ae31 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0d51384 View commit details
    Browse the repository at this point in the history
  3. Compile fixes.

    sunfishcode committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    a20c734 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. Minor code cleanup.

    sunfishcode committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    be71be7 View commit details
    Browse the repository at this point in the history
  2. Drop Windows support.

    Windows has a different `FD_SET` representation. Supporting it might be
    possible, though the documentation is ambiguous about whether it supports
    arbitrary `FD_SETSIZE` values. But even if so, it would require a more
    elaborate abstraction, so just drop it for now.
    sunfishcode committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    680ec5e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    791cd74 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

  1. Re-enable Windows support.

    This uses a trick where we still allow users to allocate a
    `FdSetElement` array, but we just allocate a `FD_SET` on Windows
    out of it.
    sunfishcode committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    52381f0 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. Support WASI.

    sunfishcode committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    d3714c9 View commit details
    Browse the repository at this point in the history
  2. Fix compilation.

    sunfishcode committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    2ca56ec View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

  1. Configuration menu
    Copy the full SHA
    8130b4c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7ce5bdf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f321b9a View commit details
    Browse the repository at this point in the history
  4. Various fixes.

    sunfishcode committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    d56f394 View commit details
    Browse the repository at this point in the history
  5. Fix test compilation.

    sunfishcode committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    974bc80 View commit details
    Browse the repository at this point in the history
  6. Fix imports.

    sunfishcode committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    489d9d3 View commit details
    Browse the repository at this point in the history