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

Add more WASI libc bindings #1325

Merged
merged 14 commits into from Apr 25, 2019
Merged

Add more WASI libc bindings #1325

merged 14 commits into from Apr 25, 2019

Commits on Apr 23, 2019

  1. Copy the full SHA
    58ba812 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    1168782 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    3aa0188 View commit details
    Browse the repository at this point in the history
  4. Recognize WASI as either a target_env or a target_os.

    Rustc is changing it to be target_os; for now, recognize both.
    sunfishcode committed Apr 23, 2019
    Copy the full SHA
    30ed983 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    49c0dc9 View commit details
    Browse the repository at this point in the history
  6. Don't make opaque types like FILE and DIR copyable.

    Also, locale_t is a typedef for a pointer to an opaque struct, so
    represent it that way explicitly.
    sunfishcode committed Apr 23, 2019
    Copy the full SHA
    6b524b3 View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    a625c69 View commit details
    Browse the repository at this point in the history
  8. Fix dirent to match WASI libc's definition.

    dirent contains a flexible array member, so don't test its sizeof, don't
    allow it to be copied, and don't represent it with an artificial size.
    sunfishcode committed Apr 23, 2019
    Copy the full SHA
    ef7ae73 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2019

  1. Update to the latest wasi-sysroot.

    This contains several fixes, including the FD_ISSET signature change
    that the previous patch in this PR needs.
    sunfishcode committed Apr 24, 2019
    Copy the full SHA
    8a5b230 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    edd541e View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    4d0e84b View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    7ba5e34 View commit details
    Browse the repository at this point in the history
  5. Remove fd_set, select, and pselect entirely for now.

    fd_set isn't automatically copyable. While it will be possible to fix
    that, for now just remove these so that they don't block other changes.
    sunfishcode committed Apr 24, 2019
    Copy the full SHA
    599c0f7 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    13ddc16 View commit details
    Browse the repository at this point in the history