WebAssembly / wasi-libc

WASI libc implementation for WebAssembly
https://wasi.dev
Other
836 stars 199 forks source link

FTS Support #520

Open kateinoigakukun opened 1 month ago

kateinoigakukun commented 1 month ago

wasi-libc does not include fts(3) implementation now, and it prevents us from reusing other platforms' code while porting swift-foundation to WASI.

Can we ship https://github.com/void-linux/musl-fts licensed under BSD 3-Clause as a part of wasi-libc?

The implementation is well-matured and well-used in the Alpine ecosystem. The only change we need to apply to the implementation is not to depend on fchdir by making FTS_NOCHDIR default.

sbc100 commented 1 month ago

Since we already have some BSD-licensed parts of wasi-libc it doesn't seem unreasonable to me.

Could we include it via a submodule and upstream the FTS_NOCHDIR mod you mention?