]> git.proxmox.com Git - wasi-libc.git/commit
Revamp and simplify the libpreopen code. (#110)
authorDan Gohman <sunfish@mozilla.com>
Mon, 4 Nov 2019 22:56:35 +0000 (14:56 -0800)
committerGitHub <noreply@github.com>
Mon, 4 Nov 2019 22:56:35 +0000 (14:56 -0800)
commit7fcc4f29df3c04c202616a9f7aa552f404807728
tree32428fd42b3ac4d213851c690b56d6055b351f62
parenteb7230cf94944d60caa5c45d63944b8ee4e6fd2b
Revamp and simplify the libpreopen code. (#110)

wasi-libc's copy of libpreopen has evolved so many local changes that
it's no longer worth keeping the upstream code structure and marking
changes with __wasilibc_unmodified_upstream.

This PR merges the source files into a single file, removes all
__wasilibc_unmodified_upstream code, eliminates the ability to
allocate multiple preopen lists, eliminates the need for
__wasilibc_init_preopen, eliminates the non-standard eaccess, and
makes several other cleanups. It also enables NDEBUG so that internal
assertions are disabled in release builds.
12 files changed:
Makefile
expected/wasm32-wasi/defined-symbols.txt
expected/wasm32-wasi/predefined-macros.txt
libc-bottom-half/crt/crt1.c
libc-bottom-half/libpreopen/include/libpreopen.h [deleted file]
libc-bottom-half/libpreopen/lib/internal.h [deleted file]
libc-bottom-half/libpreopen/lib/libpreopen.c [deleted file]
libc-bottom-half/libpreopen/lib/po_err.c [deleted file]
libc-bottom-half/libpreopen/lib/po_libc_wrappers.c [deleted file]
libc-bottom-half/libpreopen/lib/po_map.c [deleted file]
libc-bottom-half/libpreopen/libpreopen.c [new file with mode: 0644]
libc-top-half/musl/src/regex/tre.h