1 This code is based on musl revision 1691b23955590d1eb66a11158fdd91c86337e886
2 from git://git.musl-libc.org/musl.
4 Whole files which are unused are omitted. Changes to upstream code are wrapped
5 in preprocessor directives controlled by the macro `__wasilibc_unmodified_upstream`.
7 Some major known missing areas include:
15 - environment variables
18 - TIOCGWINSZ (because cloudabi lacks it; affects isatty, line buffering for stdout)
19 - O\_CLOEXEC, O\_NOCTTY (because cloudabi lacks them)