Skip to content

Commit 05d8b56

Browse files
committed
wasi-libc: Deduplicate sources and headers with regards to upstream musl.
Unfortunately some duplicate files must remain in lib/libc/wasi/libc-top-half because they include internal headers *in the same directory* which have edits relative to upstream musl. Because C is an amazing language, there is no way to make it so that e.g. upstream musl's src/stdio/fputc.c includes wasi-libc's src/stdio/putc.h instead of the upstream putc.h. The preprocessor always searches the current directory first for quote includes. Anyway, this still takes us from 2.9M to 1.4M for the combination of lib/libc/wasi and lib/libc/include/wasm-wasi-musl, so I still call it a win.
1 parent 31e7c95 commit 05d8b56

File tree

777 files changed

+650
-44229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

777 files changed

+650
-44229
lines changed

lib/libc/include/wasm-wasi-musl/alloca.h

Lines changed: 0 additions & 19 deletions
This file was deleted.

lib/libc/include/wasm-wasi-musl/ar.h

Lines changed: 0 additions & 25 deletions
This file was deleted.

lib/libc/include/wasm-wasi-musl/arpa/ftp.h

Lines changed: 0 additions & 35 deletions
This file was deleted.

lib/libc/include/wasm-wasi-musl/arpa/telnet.h

Lines changed: 0 additions & 251 deletions
This file was deleted.

lib/libc/include/wasm-wasi-musl/assert.h

Lines changed: 0 additions & 23 deletions
This file was deleted.

lib/libc/include/wasm-wasi-musl/bits/float.h

Lines changed: 0 additions & 16 deletions
This file was deleted.

lib/libc/include/wasm-wasi-musl/bits/hwcap.h

Whitespace-only changes.

lib/libc/include/wasm-wasi-musl/bits/io.h

Whitespace-only changes.

lib/libc/include/wasm-wasi-musl/bits/ioctl_fix.h

Whitespace-only changes.

lib/libc/include/wasm-wasi-musl/bits/ipcstat.h

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/libc/include/wasm-wasi-musl/bits/mman.h

Whitespace-only changes.

lib/libc/include/wasm-wasi-musl/bits/poll.h

Whitespace-only changes.

lib/libc/include/wasm-wasi-musl/bits/reg.h

Lines changed: 0 additions & 2 deletions
This file was deleted.

lib/libc/include/wasm-wasi-musl/bits/resource.h

Whitespace-only changes.

lib/libc/include/wasm-wasi-musl/bits/socket.h

Whitespace-only changes.

0 commit comments

Comments
 (0)