zig/lib/libc/include/wasm-wasi-musl
Alex Rønne Petersen 05d8b565ad 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.
2025-02-21 09:23:50 +01:00
..
arpa wasi-libc: Deduplicate sources and headers with regards to upstream musl. 2025-02-21 09:23:50 +01:00
bits wasi-libc: Deduplicate sources and headers with regards to upstream musl. 2025-02-21 09:23:50 +01:00
netinet wasi-libc: Deduplicate sources and headers with regards to upstream musl. 2025-02-21 09:23:50 +01:00
sys wasi-libc: Deduplicate sources and headers with regards to upstream musl. 2025-02-21 09:23:50 +01:00
wasi Re-add lazy preopen changes 2025-01-29 11:54:08 +01:00
__errno.h Update wasi-libc to d03829489904d38c624f6de9983190f1e5e7c9c5 2025-01-29 11:54:02 +01:00
__errno_values.h
__fd_set.h
__function___isatty.h
__functions_malloc.h
__functions_memcpy.h
__header_dirent.h Update wasi-libc to d03829489904d38c624f6de9983190f1e5e7c9c5 2025-01-29 11:54:02 +01:00
__header_fcntl.h
__header_inttypes.h
__header_netinet_in.h
__header_poll.h
__header_stdlib.h
__header_string.h
__header_sys_ioctl.h
__header_sys_resource.h
__header_sys_socket.h Update wasi-libc to d03829489904d38c624f6de9983190f1e5e7c9c5 2025-01-29 11:54:02 +01:00
__header_sys_stat.h
__header_time.h
__header_unistd.h
__macro_FD_SETSIZE.h
__macro_PAGESIZE.h
__mode_t.h Update wasi-libc to d03829489904d38c624f6de9983190f1e5e7c9c5 2025-01-29 11:54:02 +01:00
__seek.h
__struct_dirent.h
__struct_in6_addr.h
__struct_in_addr.h
__struct_iovec.h
__struct_msghdr.h
__struct_pollfd.h
__struct_rusage.h
__struct_sockaddr.h Update wasi-libc to d03829489904d38c624f6de9983190f1e5e7c9c5 2025-01-29 11:54:02 +01:00
__struct_sockaddr_in.h Update wasi-libc to d03829489904d38c624f6de9983190f1e5e7c9c5 2025-01-29 11:54:02 +01:00
__struct_sockaddr_in6.h Update wasi-libc to d03829489904d38c624f6de9983190f1e5e7c9c5 2025-01-29 11:54:02 +01:00
__struct_sockaddr_storage.h Update wasi-libc to d03829489904d38c624f6de9983190f1e5e7c9c5 2025-01-29 11:54:02 +01:00
__struct_sockaddr_un.h Update wasi-libc to d03829489904d38c624f6de9983190f1e5e7c9c5 2025-01-29 11:54:02 +01:00
__struct_stat.h
__struct_timespec.h
__struct_timeval.h
__struct_tm.h
__struct_tms.h
__typedef_blkcnt_t.h
__typedef_blksize_t.h
__typedef_clock_t.h
__typedef_clockid_t.h
__typedef_dev_t.h
__typedef_DIR.h
__typedef_fd_set.h
__typedef_gid_t.h
__typedef_in_addr_t.h
__typedef_in_port_t.h
__typedef_ino_t.h
__typedef_mode_t.h
__typedef_nfds_t.h
__typedef_nlink_t.h
__typedef_off_t.h
__typedef_sa_family_t.h
__typedef_sigset_t.h
__typedef_socklen_t.h
__typedef_ssize_t.h
__typedef_suseconds_t.h
__typedef_time_t.h
__typedef_uid_t.h
__wasi_snapshot.h Update wasi-libc to d03829489904d38c624f6de9983190f1e5e7c9c5 2025-01-29 11:54:02 +01:00
complex.h
dirent.h
dlfcn.h Add libdl shims from wasi-libc 2025-01-29 12:48:56 +01:00
errno.h
fcntl.h
fenv.h
float.h
ftw.h
glob.h
ifaddrs.h
inttypes.h
limits.h
locale.h
malloc.h
math.h
poll.h
sched.h
setjmp.h Update wasi-libc to d03829489904d38c624f6de9983190f1e5e7c9c5 2025-01-29 11:54:02 +01:00
signal.h
stdc-predef.h
stdio.h
stdlib.h Update wasi-libc to d03829489904d38c624f6de9983190f1e5e7c9c5 2025-01-29 11:54:02 +01:00
string.h
strings.h
time.h
unistd.h Update wasi-libc to d03829489904d38c624f6de9983190f1e5e7c9c5 2025-01-29 11:54:02 +01:00
wchar.h