wasi-libc/libc-bottom-half
Dan Gohman cd74e1d988
Correct the version of #136 on master (#141)
* Add the WASI repo as a submodule.

Also, add the witx filenames to the generated output, and just have
`cargo run` auto-generate the api.h header, rather than using clap.

* Switch witx to a path dependency.

* Add a test.

* Add a test that the generated file is in sync with the generator.

* Enable CI testing with Github Actions.

* Fix the name of the wasi-headers directory.

* Enable submodules.

* Add a diff mechanism to help explain failures.

* Sort the inputs for display.

* More debugging.

* More debugging.

* Add a .gitattributes file forcing text files to be eol=lf.

Most editors these days can deal with eof=lf files, even on Windows, and
this avoids trouble with headers and other generated files differing in
line endings.
2019-11-21 20:55:26 -08:00
..
cloudlibc Wasi snapshot preview1 (#140) 2019-11-21 20:06:00 -08:00
crt Wasi snapshot preview1 (#140) 2019-11-21 20:06:00 -08:00
headers Correct the version of #136 on master (#141) 2019-11-21 20:55:26 -08:00
libpreopen Wasi snapshot preview1 (#140) 2019-11-21 20:06:00 -08:00
mman Use consistent style for wasi-libc C source files. (#131) 2019-11-08 11:59:57 -08:00
sources Wasi snapshot preview1 (#140) 2019-11-21 20:06:00 -08:00
README.md Update to libpreopen 8835639f27fc42d32096d59d294a0bbb857dc368. 2019-05-09 09:16:56 -07:00

"WASI" the WebAssembly System Interface.

WASI libc is conceptually the lower half of a traditional libc implementation. It provides C interfaces to the low-level WASI syscalls.

This is largely based on CloudABI, cloudlibc, and libpreopen, however we use just the low-level syscall wrappers rather than all of cloudlibc and libpreopen, and we have several customizations for use in a WebAssembly sysroot.

The upstream repositories and versions used here are:

cloudlibc - https://github.com/NuxiNL/cloudlibc 8835639f27fc42d32096d59d294a0bbb857dc368 libpreopen - https://github.com/musec/libpreopen b29e9287cc75a7db7291ce3eb468a3d2bad8ceb1

Whole files which are unused are omitted. Changes to upstream code are wrapped in preprocessor directives controlled by the macro __wasilibc_unmodified_upstream, except that CloudABI names have also been renamed to WASI names without annotations.

WASI libc currently depends on the basics and dlmalloc components of reference-sysroot.