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

Initial Eio_posix backend #448

Merged
merged 14 commits into from
Mar 7, 2023
Merged

Initial Eio_posix backend #448

merged 14 commits into from
Mar 7, 2023

Commits on Mar 2, 2023

  1. Initial Eio_posix backend

    Co-authored-by: Christiano Haesbaert <haesbaert@haesbaert.org>
    talex5 and haesbaert committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    4926768 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2023

  1. eio_posix: do not include sys/random.h on non-Linux systems

    It is not used by arc4random callers (that's stdlib.h) and there
    is no sys/random.h on OpenBSD.
    avsm committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    e19bc4a View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2023

  1. Ensure errno isn't changed by caml_stat_free

    Some older compilers can do this.
    
    Suggested by Anil Madhavapeddy <anil@recoil.org>.
    talex5 committed Mar 6, 2023
    Configuration menu
    Copy the full SHA
    3b0ae13 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e2eeba0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a696a23 View commit details
    Browse the repository at this point in the history
  4. Fix comment about read_dir

    talex5 committed Mar 6, 2023
    Configuration menu
    Copy the full SHA
    4b58f8b View commit details
    Browse the repository at this point in the history
  5. Improve error handling creating sockets and pipes

    If e.g. `socketpair` fails, we now return the exception to the calling
    fiber rather than aborting the event loop. Also, attach FDs to switches
    before setting non-blocking mode, in case that fails (requested by Anil
    Madhavapeddy).
    talex5 committed Mar 6, 2023
    Configuration menu
    Copy the full SHA
    3f3aab4 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2023

  1. Clean up C stubs

    haesbaert authored and talex5 committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    eab5587 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4cc9e13 View commit details
    Browse the repository at this point in the history
  3. It's ok to include stdlib unconditionally

    While here re-arrange include order, sys; std; caml.
    haesbaert committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    6939cd1 View commit details
    Browse the repository at this point in the history
  4. Fix missing ; in fs.md

    With this tests pass in eio-posix for me.
    haesbaert committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    2c90835 View commit details
    Browse the repository at this point in the history
  5. Lower poll_maxi when we can

    We inflate maxi to account the highest index we're tracking, if we're about to
    unregister the highest one, find the new highest.
    haesbaert committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    7576297 View commit details
    Browse the repository at this point in the history
  6. Ensure standard streams are unique

    Doesn't matter too much, but might be useful if someone wants to compare
    them for equality.
    polytypic authored and talex5 committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    8164a13 View commit details
    Browse the repository at this point in the history
  7. Remove EINPROGRESS from do_nonblocking

    It's only returned for `connect`, which does its own thing.
    haesbaert authored and talex5 committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    8118c1f View commit details
    Browse the repository at this point in the history