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

make stdio configurable #102

Merged
merged 4 commits into from
Mar 14, 2020
Merged

make stdio configurable #102

merged 4 commits into from
Mar 14, 2020

Commits on Mar 13, 2020

  1. simplify uvwasi_fd_table_init() signature

    Simplify the signature of uvwasi_fd_table_init() to make it
    easier to configure stdio.
    cjihrig committed Mar 13, 2020
    Configuration menu
    Copy the full SHA
    cab34ec View commit details
    Browse the repository at this point in the history
  2. refactor stdio setup logic

    This commit refactors the code that configures the stdio
    descriptors. Instead of setting them up in a loop, use a
    function. This will make it simpler to add the stdio as
    configurable options.
    cjihrig committed Mar 13, 2020
    Configuration menu
    Copy the full SHA
    df4a051 View commit details
    Browse the repository at this point in the history
  3. support passing stdio descriptors

    This commit requires the stdio file descriptors to be explicitly
    defined. This allows embedders to run multiple WASI applications
    in the same process (assuming they also monkey patch the
    uvwasi_proc_exit() functionality to not force the process to
    exit).
    cjihrig committed Mar 13, 2020
    Configuration menu
    Copy the full SHA
    4d5fd1f View commit details
    Browse the repository at this point in the history
  4. rename std* for Windows

    Windows doesn't seem to like the use of stdin, stdout, or stderr
    as struct members.
    cjihrig committed Mar 13, 2020
    Configuration menu
    Copy the full SHA
    cdd8c08 View commit details
    Browse the repository at this point in the history