shellsim-c-toolchain 0.1.25__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- shellsim_c_toolchain/__init__.py +75 -0
- shellsim_c_toolchain/_assets/tcc/SHELLSIM-LIBC-LICENSE +21 -0
- shellsim_c_toolchain/_assets/tcc/include/float.h +75 -0
- shellsim_c_toolchain/_assets/tcc/include/stdalign.h +16 -0
- shellsim_c_toolchain/_assets/tcc/include/stdarg.h +14 -0
- shellsim_c_toolchain/_assets/tcc/include/stdatomic.h +171 -0
- shellsim_c_toolchain/_assets/tcc/include/stdbool.h +11 -0
- shellsim_c_toolchain/_assets/tcc/include/stddef.h +39 -0
- shellsim_c_toolchain/_assets/tcc/include/stdnoreturn.h +7 -0
- shellsim_c_toolchain/_assets/tcc/include/tccdefs.h +346 -0
- shellsim_c_toolchain/_assets/tcc/include/tgmath.h +89 -0
- shellsim_c_toolchain/_assets/tcc/include/varargs.h +12 -0
- shellsim_c_toolchain/_assets/tcc/shellsim_libc.c +42 -0
- shellsim_c_toolchain/_assets/tcc/tcc-shellsim.wasm +0 -0
- shellsim_c_toolchain/_assets/tcc/wasm32-libtcc1.a +0 -0
- shellsim_c_toolchain/_assets/tinycc-22a2e10-source.tar.gz +0 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__errno_values.h +84 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__fd_set.h +67 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__function___isatty.h +14 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__functions_malloc.h +29 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__functions_memcpy.h +24 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_dirent.h +44 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_fcntl.h +69 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_inttypes.h +184 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_netinet_in.h +32 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_poll.h +33 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_stdlib.h +21 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_string.h +26 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_sys_ioctl.h +17 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_sys_resource.h +19 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_sys_socket.h +81 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_sys_stat.h +15 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_time.h +31 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_unistd.h +29 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__macro_FD_SETSIZE.h +6 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__macro_PAGESIZE.h +26 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__mode_t.h +38 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__seek.h +8 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_dirent.h +14 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_in6_addr.h +8 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_in_addr.h +10 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_iovec.h +12 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_msghdr.h +16 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_pollfd.h +10 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_rusage.h +12 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_sockaddr.h +11 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_sockaddr_in.h +14 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_sockaddr_in6.h +16 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_sockaddr_storage.h +11 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_sockaddr_un.h +10 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_stat.h +35 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_timespec.h +12 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_timeval.h +13 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_tm.h +19 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_tms.h +13 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_DIR.h +6 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_blkcnt_t.h +7 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_blksize_t.h +6 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_clock_t.h +7 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_clockid_t.h +6 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_dev_t.h +7 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_fd_set.h +14 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_gid_t.h +6 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_in_addr_t.h +6 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_in_port_t.h +6 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_ino_t.h +7 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_mode_t.h +6 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_nfds_t.h +6 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_nlink_t.h +7 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_off_t.h +7 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_sa_family_t.h +6 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_sigset_t.h +7 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_socklen_t.h +6 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_ssize_t.h +7 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_suseconds_t.h +8 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_time_t.h +7 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_uid_t.h +6 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/alloca.h +19 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/ar.h +25 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/arpa/ftp.h +35 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/arpa/inet.h +31 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/arpa/nameser.h +526 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/arpa/nameser_compat.h +2 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/arpa/telnet.h +251 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/arpa/tftp.h +31 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/assert.h +23 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/alltypes.h +461 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/dirent.h +1 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/fcntl.h +1 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/fenv.h +10 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/float.h +16 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/hwcap.h +0 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/io.h +0 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/ioctl.h +1 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/ioctl_fix.h +0 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/ipcstat.h +1 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/limits.h +1 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/mman.h +0 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/poll.h +0 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/posix.h +2 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/reg.h +0 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/resource.h +0 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/setjmp.h +1 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/signal.h +40 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/socket.h +0 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/stat.h +22 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/stdint.h +29 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/byteswap.h +26 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/complex.h +143 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/cpio.h +29 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/crypt.h +20 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/ctype.h +77 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/dirent.h +103 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/dlfcn.h +56 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/endian.h +80 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/err.h +25 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/errno.h +40 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/fcntl.h +250 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/features.h +40 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/fenv.h +28 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/float.h +56 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/fmtmsg.h +47 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/fnmatch.h +24 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/fts.h +155 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/ftw.h +45 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/getopt.h +30 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/glob.h +54 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/iconv.h +24 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/ifaddrs.h +35 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/inttypes.h +233 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/iso646.h +20 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/langinfo.h +98 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/libgen.h +15 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/limits.h +174 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/locale.h +93 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/malloc.h +33 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/math.h +459 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/memory.h +1 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/monetary.h +23 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/mqueue.h +41 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/netinet/icmp6.h +305 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/netinet/igmp.h +45 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/netinet/in.h +434 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/netinet/in_systm.h +9 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/netinet/ip.h +199 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/netinet/ip6.h +141 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/netinet/ip_icmp.h +193 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/netinet/tcp.h +305 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/netinet/udp.h +46 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/netpacket/packet.h +62 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/nl_types.h +22 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/poll.h +69 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/pthread.h +267 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/regex.h +62 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sched.h +151 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/search.h +63 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/semaphore.h +39 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/setjmp.h +55 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/signal.h +339 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/stdalign.h +20 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/stdbool.h +14 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/stdc-predef.h +18 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/stdint.h +117 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/stdio.h +259 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/stdio_ext.h +34 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/stdlib.h +217 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/stdnoreturn.h +7 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/string.h +123 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/strings.h +40 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/stropts.h +139 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/dir.h +2 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/errno.h +2 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/eventfd.h +26 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/fcntl.h +2 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/file.h +21 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/ioctl.h +124 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/mman.h +161 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/param.h +37 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/poll.h +2 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/random.h +27 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/reg.h +18 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/resource.h +126 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/select.h +54 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/signal.h +2 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/socket.h +454 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/stat.h +223 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/statvfs.h +57 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/stropts.h +1 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/syscall.h +10 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/sysinfo.h +36 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/time.h +84 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/timeb.h +28 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/times.h +34 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/timex.h +103 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/ttydefaults.h +34 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/types.h +85 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/uio.h +58 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/un.h +39 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/utsname.h +29 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/syscall.h +1 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sysexits.h +21 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/tar.h +33 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/tgmath.h +270 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/threads.h +93 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/time.h +204 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/uchar.h +29 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/unistd.h +593 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/utime.h +29 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/values.h +39 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wasi/api.h +34 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wasi/libc-busywait.h +15 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wasi/libc-environ.h +36 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wasi/libc-find-relpath.h +75 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wasi/libc-nocwd.h +61 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wasi/libc.h +136 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wasi/version.h +24 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wasi/wasip1.h +2130 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wasi/wasip2.h +10 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wasi/wasip3.h +10 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wchar.h +214 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wctype.h +79 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/lib/wasm32-wasip1/libc-printscan-long-double.a +0 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/lib/wasm32-wasip1/libc.a +0 -0
- shellsim_c_toolchain/_assets/wasi-sysroot/lib/wasm32-wasip1/libsetjmp.a +0 -0
- shellsim_c_toolchain-0.1.25.dist-info/METADATA +33 -0
- shellsim_c_toolchain-0.1.25.dist-info/RECORD +239 -0
- shellsim_c_toolchain-0.1.25.dist-info/WHEEL +5 -0
- shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSE +201 -0
- shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSES/README.md +31 -0
- shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSES/tinycc-LGPL-2.1.txt +502 -0
- shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSES/tinycc-shellsim-libc-LICENSE +21 -0
- shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSES/wasi-libc-CLOUDLIBC-LICENSE +22 -0
- shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSES/wasi-libc-FTS-COPYING +26 -0
- shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSES/wasi-libc-LICENSE +17 -0
- shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSES/wasi-libc-LICENSE-APACHE +201 -0
- shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSES/wasi-libc-LICENSE-APACHE-LLVM +219 -0
- shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSES/wasi-libc-LICENSE-MIT +23 -0
- shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSES/wasi-libc-MUSL-COPYRIGHT +193 -0
- shellsim_c_toolchain-0.1.25.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#ifndef __wasilibc___functions_memcpy_h
|
|
2
|
+
#define __wasilibc___functions_memcpy_h
|
|
3
|
+
|
|
4
|
+
#define __need_size_t
|
|
5
|
+
#define __need_NULL
|
|
6
|
+
#include <stddef.h>
|
|
7
|
+
|
|
8
|
+
#ifdef __cplusplus
|
|
9
|
+
extern "C" {
|
|
10
|
+
#endif
|
|
11
|
+
|
|
12
|
+
void *memcpy(void *__restrict__ __dst, const void *__restrict__ __src,
|
|
13
|
+
size_t __n)
|
|
14
|
+
__attribute__((__nothrow__, __leaf__, __nonnull__(1, 2)));
|
|
15
|
+
void *memmove(void *__dst, const void *__src, size_t __n)
|
|
16
|
+
__attribute__((__nothrow__, __leaf__, __nonnull__(1, 2)));
|
|
17
|
+
void *memset(void *__dst, int __c, size_t __n)
|
|
18
|
+
__attribute__((__nothrow__, __leaf__, __nonnull__(1)));
|
|
19
|
+
|
|
20
|
+
#ifdef __cplusplus
|
|
21
|
+
}
|
|
22
|
+
#endif
|
|
23
|
+
|
|
24
|
+
#endif
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
#ifndef __wasilibc___header_dirent_h
|
|
2
|
+
#define __wasilibc___header_dirent_h
|
|
3
|
+
|
|
4
|
+
#define DT_UNKNOWN 0
|
|
5
|
+
#define DT_BLK 1
|
|
6
|
+
#define DT_CHR 2
|
|
7
|
+
#define DT_DIR 3
|
|
8
|
+
#define DT_REG 4
|
|
9
|
+
#define DT_FIFO 6
|
|
10
|
+
#define DT_LNK 7
|
|
11
|
+
#define DT_SOCK 20
|
|
12
|
+
|
|
13
|
+
#define IFTODT(x) (__wasilibc_iftodt(x))
|
|
14
|
+
#define DTTOIF(x) (__wasilibc_dttoif(x))
|
|
15
|
+
|
|
16
|
+
#include <__struct_dirent.h>
|
|
17
|
+
#include <__typedef_DIR.h>
|
|
18
|
+
|
|
19
|
+
#ifdef __cplusplus
|
|
20
|
+
extern "C" {
|
|
21
|
+
#endif
|
|
22
|
+
|
|
23
|
+
int __wasilibc_iftodt(int x);
|
|
24
|
+
int __wasilibc_dttoif(int x);
|
|
25
|
+
|
|
26
|
+
int closedir(DIR *);
|
|
27
|
+
DIR *opendir(const char *);
|
|
28
|
+
DIR *fdopendir(int);
|
|
29
|
+
int fdclosedir(DIR *);
|
|
30
|
+
struct dirent *readdir(DIR *);
|
|
31
|
+
void rewinddir(DIR *);
|
|
32
|
+
void seekdir(DIR *, long);
|
|
33
|
+
long telldir(DIR *);
|
|
34
|
+
DIR *opendirat(int, const char *);
|
|
35
|
+
void rewinddir(DIR *);
|
|
36
|
+
int scandirat(int, const char *, struct dirent ***,
|
|
37
|
+
int (*)(const struct dirent *),
|
|
38
|
+
int (*)(const struct dirent **, const struct dirent **));
|
|
39
|
+
|
|
40
|
+
#ifdef __cplusplus
|
|
41
|
+
}
|
|
42
|
+
#endif
|
|
43
|
+
|
|
44
|
+
#endif
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
#ifndef __wasilibc___header_fcntl_h
|
|
2
|
+
#define __wasilibc___header_fcntl_h
|
|
3
|
+
|
|
4
|
+
#include <__mode_t.h>
|
|
5
|
+
#include <__seek.h>
|
|
6
|
+
|
|
7
|
+
#define O_APPEND 0x0001
|
|
8
|
+
#define O_DSYNC 0x0002
|
|
9
|
+
#define O_NONBLOCK 0x0004
|
|
10
|
+
#define O_RSYNC 0x0008
|
|
11
|
+
#define O_SYNC 0x0010
|
|
12
|
+
#define O_CREAT (0x0001 << 12)
|
|
13
|
+
#define O_DIRECTORY (0x0002 << 12)
|
|
14
|
+
#define O_EXCL (0x0004 << 12)
|
|
15
|
+
#define O_TRUNC (0x0008 << 12)
|
|
16
|
+
|
|
17
|
+
#define O_NOFOLLOW (0x01000000)
|
|
18
|
+
#define O_EXEC (0x02000000)
|
|
19
|
+
#define O_RDONLY (0x04000000)
|
|
20
|
+
#define O_SEARCH (0x08000000)
|
|
21
|
+
#define O_WRONLY (0x10000000)
|
|
22
|
+
|
|
23
|
+
/*
|
|
24
|
+
* O_CLOEXEC is defined to be zero, as WASI has no exec-style functions.
|
|
25
|
+
*/
|
|
26
|
+
#define O_CLOEXEC (0)
|
|
27
|
+
|
|
28
|
+
/*
|
|
29
|
+
* O_TTY_INIT is defined to be zero, meaning that WASI implementations are
|
|
30
|
+
* expected to always initialize a terminal the first time it's opened.
|
|
31
|
+
*/
|
|
32
|
+
#define O_TTY_INIT (0)
|
|
33
|
+
|
|
34
|
+
#define O_NOCTTY (0)
|
|
35
|
+
|
|
36
|
+
#define O_RDWR (O_RDONLY | O_WRONLY)
|
|
37
|
+
#define O_ACCMODE (O_EXEC | O_RDWR | O_SEARCH)
|
|
38
|
+
|
|
39
|
+
#define POSIX_FADV_NORMAL 0
|
|
40
|
+
#define POSIX_FADV_SEQUENTIAL 1
|
|
41
|
+
#define POSIX_FADV_RANDOM 2
|
|
42
|
+
#define POSIX_FADV_WILLNEED 3
|
|
43
|
+
#define POSIX_FADV_DONTNEED 4
|
|
44
|
+
#define POSIX_FADV_NOREUSE 5
|
|
45
|
+
|
|
46
|
+
#define F_GETFD (1)
|
|
47
|
+
#define F_SETFD (2)
|
|
48
|
+
#define F_GETFL (3)
|
|
49
|
+
#define F_SETFL (4)
|
|
50
|
+
#define F_DUPFD (5)
|
|
51
|
+
#define F_DUPFD_CLOEXEC (6)
|
|
52
|
+
#define F_GETLK (7)
|
|
53
|
+
#define F_SETLK (8)
|
|
54
|
+
#define F_SETLKW (9)
|
|
55
|
+
|
|
56
|
+
#define F_RDLCK (0)
|
|
57
|
+
#define F_WRLCK (1)
|
|
58
|
+
#define F_UNLCK (2)
|
|
59
|
+
|
|
60
|
+
#define FD_CLOEXEC (1)
|
|
61
|
+
|
|
62
|
+
#define AT_EACCESS (0x0)
|
|
63
|
+
#define AT_SYMLINK_NOFOLLOW (0x1)
|
|
64
|
+
#define AT_SYMLINK_FOLLOW (0x2)
|
|
65
|
+
#define AT_REMOVEDIR (0x4)
|
|
66
|
+
|
|
67
|
+
#define AT_FDCWD (-2)
|
|
68
|
+
|
|
69
|
+
#endif
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
#ifndef __wasilibc___include_inttypes_h
|
|
2
|
+
#define __wasilibc___include_inttypes_h
|
|
3
|
+
|
|
4
|
+
#include <stdint.h>
|
|
5
|
+
|
|
6
|
+
#define __need_wchar_t
|
|
7
|
+
#include <stddef.h>
|
|
8
|
+
|
|
9
|
+
#ifdef __cplusplus
|
|
10
|
+
extern "C" {
|
|
11
|
+
#endif
|
|
12
|
+
|
|
13
|
+
typedef struct {
|
|
14
|
+
intmax_t quot, rem;
|
|
15
|
+
} imaxdiv_t;
|
|
16
|
+
|
|
17
|
+
intmax_t imaxabs(intmax_t);
|
|
18
|
+
imaxdiv_t imaxdiv(intmax_t, intmax_t);
|
|
19
|
+
intmax_t strtoimax(const char *__restrict, char **__restrict, int);
|
|
20
|
+
uintmax_t strtoumax(const char *__restrict, char **__restrict, int);
|
|
21
|
+
intmax_t wcstoimax(const wchar_t *__restrict, wchar_t **__restrict, int);
|
|
22
|
+
uintmax_t wcstoumax(const wchar_t *__restrict, wchar_t **__restrict, int);
|
|
23
|
+
|
|
24
|
+
#define PRId16 __INT16_FMTd__
|
|
25
|
+
#define PRIi16 __INT16_FMTi__
|
|
26
|
+
#define PRId32 __INT32_FMTd__
|
|
27
|
+
#define PRIi32 __INT32_FMTi__
|
|
28
|
+
#define PRId64 __INT64_FMTd__
|
|
29
|
+
#define PRIi64 __INT64_FMTi__
|
|
30
|
+
#define PRId8 __INT8_FMTd__
|
|
31
|
+
#define PRIi8 __INT8_FMTi__
|
|
32
|
+
#define PRIdMAX __INTMAX_FMTd__
|
|
33
|
+
#define PRIiMAX __INTMAX_FMTi__
|
|
34
|
+
#define PRIdPTR __INTPTR_FMTd__
|
|
35
|
+
#define PRIiPTR __INTPTR_FMTi__
|
|
36
|
+
#define PRIdFAST16 __INT_FAST16_FMTd__
|
|
37
|
+
#define PRIiFAST16 __INT_FAST16_FMTi__
|
|
38
|
+
#define PRIdFAST32 __INT_FAST32_FMTd__
|
|
39
|
+
#define PRIiFAST32 __INT_FAST32_FMTi__
|
|
40
|
+
#define PRIdFAST64 __INT_FAST64_FMTd__
|
|
41
|
+
#define PRIiFAST64 __INT_FAST64_FMTi__
|
|
42
|
+
#define PRIdFAST8 __INT_FAST8_FMTd__
|
|
43
|
+
#define PRIiFAST8 __INT_FAST8_FMTi__
|
|
44
|
+
#define PRIdLEAST16 __INT_LEAST16_FMTd__
|
|
45
|
+
#define PRIiLEAST16 __INT_LEAST16_FMTi__
|
|
46
|
+
#define PRIdLEAST32 __INT_LEAST32_FMTd__
|
|
47
|
+
#define PRIiLEAST32 __INT_LEAST32_FMTi__
|
|
48
|
+
#define PRIdLEAST64 __INT_LEAST64_FMTd__
|
|
49
|
+
#define PRIiLEAST64 __INT_LEAST64_FMTi__
|
|
50
|
+
#define PRIdLEAST8 __INT_LEAST8_FMTd__
|
|
51
|
+
#define PRIiLEAST8 __INT_LEAST8_FMTi__
|
|
52
|
+
#define PRIX16 __UINT16_FMTX__
|
|
53
|
+
#define PRIo16 __UINT16_FMTo__
|
|
54
|
+
#define PRIu16 __UINT16_FMTu__
|
|
55
|
+
#define PRIx16 __UINT16_FMTx__
|
|
56
|
+
#define PRIX32 __UINT32_FMTX__
|
|
57
|
+
#define PRIo32 __UINT32_FMTo__
|
|
58
|
+
#define PRIu32 __UINT32_FMTu__
|
|
59
|
+
#define PRIx32 __UINT32_FMTx__
|
|
60
|
+
#define PRIX64 __UINT64_FMTX__
|
|
61
|
+
#define PRIo64 __UINT64_FMTo__
|
|
62
|
+
#define PRIu64 __UINT64_FMTu__
|
|
63
|
+
#define PRIx64 __UINT64_FMTx__
|
|
64
|
+
#define PRIX8 __UINT8_FMTX__
|
|
65
|
+
#define PRIo8 __UINT8_FMTo__
|
|
66
|
+
#define PRIu8 __UINT8_FMTu__
|
|
67
|
+
#define PRIx8 __UINT8_FMTx__
|
|
68
|
+
#define PRIXMAX __UINTMAX_FMTX__
|
|
69
|
+
#define PRIoMAX __UINTMAX_FMTo__
|
|
70
|
+
#define PRIuMAX __UINTMAX_FMTu__
|
|
71
|
+
#define PRIxMAX __UINTMAX_FMTx__
|
|
72
|
+
#define PRIXPTR __UINTPTR_FMTX__
|
|
73
|
+
#define PRIoPTR __UINTPTR_FMTo__
|
|
74
|
+
#define PRIuPTR __UINTPTR_FMTu__
|
|
75
|
+
#define PRIxPTR __UINTPTR_FMTx__
|
|
76
|
+
#define PRIXFAST16 __UINT_FAST16_FMTX__
|
|
77
|
+
#define PRIoFAST16 __UINT_FAST16_FMTo__
|
|
78
|
+
#define PRIuFAST16 __UINT_FAST16_FMTu__
|
|
79
|
+
#define PRIxFAST16 __UINT_FAST16_FMTx__
|
|
80
|
+
#define PRIXFAST32 __UINT_FAST32_FMTX__
|
|
81
|
+
#define PRIoFAST32 __UINT_FAST32_FMTo__
|
|
82
|
+
#define PRIuFAST32 __UINT_FAST32_FMTu__
|
|
83
|
+
#define PRIxFAST32 __UINT_FAST32_FMTx__
|
|
84
|
+
#define PRIXFAST64 __UINT_FAST64_FMTX__
|
|
85
|
+
#define PRIoFAST64 __UINT_FAST64_FMTo__
|
|
86
|
+
#define PRIuFAST64 __UINT_FAST64_FMTu__
|
|
87
|
+
#define PRIxFAST64 __UINT_FAST64_FMTx__
|
|
88
|
+
#define PRIXFAST8 __UINT_FAST8_FMTX__
|
|
89
|
+
#define PRIoFAST8 __UINT_FAST8_FMTo__
|
|
90
|
+
#define PRIuFAST8 __UINT_FAST8_FMTu__
|
|
91
|
+
#define PRIxFAST8 __UINT_FAST8_FMTx__
|
|
92
|
+
#define PRIXLEAST16 __UINT_LEAST16_FMTX__
|
|
93
|
+
#define PRIoLEAST16 __UINT_LEAST16_FMTo__
|
|
94
|
+
#define PRIuLEAST16 __UINT_LEAST16_FMTu__
|
|
95
|
+
#define PRIxLEAST16 __UINT_LEAST16_FMTx__
|
|
96
|
+
#define PRIXLEAST32 __UINT_LEAST32_FMTX__
|
|
97
|
+
#define PRIoLEAST32 __UINT_LEAST32_FMTo__
|
|
98
|
+
#define PRIuLEAST32 __UINT_LEAST32_FMTu__
|
|
99
|
+
#define PRIxLEAST32 __UINT_LEAST32_FMTx__
|
|
100
|
+
#define PRIXLEAST64 __UINT_LEAST64_FMTX__
|
|
101
|
+
#define PRIoLEAST64 __UINT_LEAST64_FMTo__
|
|
102
|
+
#define PRIuLEAST64 __UINT_LEAST64_FMTu__
|
|
103
|
+
#define PRIxLEAST64 __UINT_LEAST64_FMTx__
|
|
104
|
+
#define PRIXLEAST8 __UINT_LEAST8_FMTX__
|
|
105
|
+
#define PRIoLEAST8 __UINT_LEAST8_FMTo__
|
|
106
|
+
#define PRIuLEAST8 __UINT_LEAST8_FMTu__
|
|
107
|
+
#define PRIxLEAST8 __UINT_LEAST8_FMTx__
|
|
108
|
+
|
|
109
|
+
#define SCNd16 __INT16_FMTd__
|
|
110
|
+
#define SCNi16 __INT16_FMTi__
|
|
111
|
+
#define SCNd32 __INT32_FMTd__
|
|
112
|
+
#define SCNi32 __INT32_FMTi__
|
|
113
|
+
#define SCNd64 __INT64_FMTd__
|
|
114
|
+
#define SCNi64 __INT64_FMTi__
|
|
115
|
+
#define SCNd8 __INT8_FMTd__
|
|
116
|
+
#define SCNi8 __INT8_FMTi__
|
|
117
|
+
#define SCNdMAX __INTMAX_FMTd__
|
|
118
|
+
#define SCNiMAX __INTMAX_FMTi__
|
|
119
|
+
#define SCNdPTR __INTPTR_FMTd__
|
|
120
|
+
#define SCNiPTR __INTPTR_FMTi__
|
|
121
|
+
#define SCNdFAST16 __INT_FAST16_FMTd__
|
|
122
|
+
#define SCNiFAST16 __INT_FAST16_FMTi__
|
|
123
|
+
#define SCNdFAST32 __INT_FAST32_FMTd__
|
|
124
|
+
#define SCNiFAST32 __INT_FAST32_FMTi__
|
|
125
|
+
#define SCNdFAST64 __INT_FAST64_FMTd__
|
|
126
|
+
#define SCNiFAST64 __INT_FAST64_FMTi__
|
|
127
|
+
#define SCNdFAST8 __INT_FAST8_FMTd__
|
|
128
|
+
#define SCNiFAST8 __INT_FAST8_FMTi__
|
|
129
|
+
#define SCNdLEAST16 __INT_LEAST16_FMTd__
|
|
130
|
+
#define SCNiLEAST16 __INT_LEAST16_FMTi__
|
|
131
|
+
#define SCNdLEAST32 __INT_LEAST32_FMTd__
|
|
132
|
+
#define SCNiLEAST32 __INT_LEAST32_FMTi__
|
|
133
|
+
#define SCNdLEAST64 __INT_LEAST64_FMTd__
|
|
134
|
+
#define SCNiLEAST64 __INT_LEAST64_FMTi__
|
|
135
|
+
#define SCNdLEAST8 __INT_LEAST8_FMTd__
|
|
136
|
+
#define SCNiLEAST8 __INT_LEAST8_FMTi__
|
|
137
|
+
#define SCNo16 __UINT16_FMTo__
|
|
138
|
+
#define SCNu16 __UINT16_FMTu__
|
|
139
|
+
#define SCNx16 __UINT16_FMTx__
|
|
140
|
+
#define SCNo32 __UINT32_FMTo__
|
|
141
|
+
#define SCNu32 __UINT32_FMTu__
|
|
142
|
+
#define SCNx32 __UINT32_FMTx__
|
|
143
|
+
#define SCNo64 __UINT64_FMTo__
|
|
144
|
+
#define SCNu64 __UINT64_FMTu__
|
|
145
|
+
#define SCNx64 __UINT64_FMTx__
|
|
146
|
+
#define SCNo8 __UINT8_FMTo__
|
|
147
|
+
#define SCNu8 __UINT8_FMTu__
|
|
148
|
+
#define SCNx8 __UINT8_FMTx__
|
|
149
|
+
#define SCNoMAX __UINTMAX_FMTo__
|
|
150
|
+
#define SCNuMAX __UINTMAX_FMTu__
|
|
151
|
+
#define SCNxMAX __UINTMAX_FMTx__
|
|
152
|
+
#define SCNoPTR __UINTPTR_FMTo__
|
|
153
|
+
#define SCNuPTR __UINTPTR_FMTu__
|
|
154
|
+
#define SCNxPTR __UINTPTR_FMTx__
|
|
155
|
+
#define SCNoFAST16 __UINT_FAST16_FMTo__
|
|
156
|
+
#define SCNuFAST16 __UINT_FAST16_FMTu__
|
|
157
|
+
#define SCNxFAST16 __UINT_FAST16_FMTx__
|
|
158
|
+
#define SCNoFAST32 __UINT_FAST32_FMTo__
|
|
159
|
+
#define SCNuFAST32 __UINT_FAST32_FMTu__
|
|
160
|
+
#define SCNxFAST32 __UINT_FAST32_FMTx__
|
|
161
|
+
#define SCNoFAST64 __UINT_FAST64_FMTo__
|
|
162
|
+
#define SCNuFAST64 __UINT_FAST64_FMTu__
|
|
163
|
+
#define SCNxFAST64 __UINT_FAST64_FMTx__
|
|
164
|
+
#define SCNoFAST8 __UINT_FAST8_FMTo__
|
|
165
|
+
#define SCNuFAST8 __UINT_FAST8_FMTu__
|
|
166
|
+
#define SCNxFAST8 __UINT_FAST8_FMTx__
|
|
167
|
+
#define SCNoLEAST16 __UINT_LEAST16_FMTo__
|
|
168
|
+
#define SCNuLEAST16 __UINT_LEAST16_FMTu__
|
|
169
|
+
#define SCNxLEAST16 __UINT_LEAST16_FMTx__
|
|
170
|
+
#define SCNoLEAST32 __UINT_LEAST32_FMTo__
|
|
171
|
+
#define SCNuLEAST32 __UINT_LEAST32_FMTu__
|
|
172
|
+
#define SCNxLEAST32 __UINT_LEAST32_FMTx__
|
|
173
|
+
#define SCNoLEAST64 __UINT_LEAST64_FMTo__
|
|
174
|
+
#define SCNuLEAST64 __UINT_LEAST64_FMTu__
|
|
175
|
+
#define SCNxLEAST64 __UINT_LEAST64_FMTx__
|
|
176
|
+
#define SCNoLEAST8 __UINT_LEAST8_FMTo__
|
|
177
|
+
#define SCNuLEAST8 __UINT_LEAST8_FMTu__
|
|
178
|
+
#define SCNxLEAST8 __UINT_LEAST8_FMTx__
|
|
179
|
+
|
|
180
|
+
#ifdef __cplusplus
|
|
181
|
+
}
|
|
182
|
+
#endif
|
|
183
|
+
|
|
184
|
+
#endif
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#ifndef __wasilibc___header_netinet_in_h
|
|
2
|
+
#define __wasilibc___header_netinet_in_h
|
|
3
|
+
|
|
4
|
+
#include <__struct_in6_addr.h>
|
|
5
|
+
#include <__struct_in_addr.h>
|
|
6
|
+
#include <__struct_sockaddr_in.h>
|
|
7
|
+
#include <__struct_sockaddr_in6.h>
|
|
8
|
+
|
|
9
|
+
#define IPPROTO_IP 0
|
|
10
|
+
#define IPPROTO_ICMP 1
|
|
11
|
+
#define IPPROTO_TCP 6
|
|
12
|
+
#define IPPROTO_UDP 17
|
|
13
|
+
#define IPPROTO_IPV6 41
|
|
14
|
+
#define IPPROTO_RAW 255
|
|
15
|
+
|
|
16
|
+
#define IN6ADDR_ANY_INIT \
|
|
17
|
+
{ \
|
|
18
|
+
{ \
|
|
19
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
|
|
20
|
+
0x00, 0x00, 0x00, 0x00 \
|
|
21
|
+
} \
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
#define IN6ADDR_LOOPBACK_INIT \
|
|
25
|
+
{ \
|
|
26
|
+
{ \
|
|
27
|
+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
|
|
28
|
+
0x00, 0x00, 0x00, 0x01 \
|
|
29
|
+
} \
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
#endif
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#ifndef __wasilibc___header_poll_h
|
|
2
|
+
#define __wasilibc___header_poll_h
|
|
3
|
+
|
|
4
|
+
#include <__struct_pollfd.h>
|
|
5
|
+
#include <__typedef_nfds_t.h>
|
|
6
|
+
|
|
7
|
+
#define POLLRDNORM 0x1
|
|
8
|
+
#define POLLWRNORM 0x2
|
|
9
|
+
|
|
10
|
+
#define POLLIN POLLRDNORM
|
|
11
|
+
#define POLLOUT POLLWRNORM
|
|
12
|
+
|
|
13
|
+
// POLLPRI is defined for source compatibility. WASI has no out-of-band
|
|
14
|
+
// data, so POLLPRI is never reported in revents. poll() silently strips
|
|
15
|
+
// it when other events are present and returns ENOSYS when it is the
|
|
16
|
+
// only requested event.
|
|
17
|
+
#define POLLPRI 0x0200
|
|
18
|
+
|
|
19
|
+
#define POLLERR 0x1000
|
|
20
|
+
#define POLLHUP 0x2000
|
|
21
|
+
#define POLLNVAL 0x4000
|
|
22
|
+
|
|
23
|
+
#ifdef __cplusplus
|
|
24
|
+
extern "C" {
|
|
25
|
+
#endif
|
|
26
|
+
|
|
27
|
+
int poll(struct pollfd[], nfds_t, int);
|
|
28
|
+
|
|
29
|
+
#ifdef __cplusplus
|
|
30
|
+
}
|
|
31
|
+
#endif
|
|
32
|
+
|
|
33
|
+
#endif
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#ifndef __wasilibc___header_stdlib_h
|
|
2
|
+
#define __wasilibc___header_stdlib_h
|
|
3
|
+
|
|
4
|
+
#define __need_size_t
|
|
5
|
+
#include <stddef.h>
|
|
6
|
+
|
|
7
|
+
#include <__functions_malloc.h>
|
|
8
|
+
|
|
9
|
+
#ifdef __cplusplus
|
|
10
|
+
extern "C" {
|
|
11
|
+
#endif
|
|
12
|
+
|
|
13
|
+
void abort(void) __attribute__((__noreturn__));
|
|
14
|
+
void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
|
|
15
|
+
void _Exit(int) __attribute__((__noreturn__));
|
|
16
|
+
|
|
17
|
+
#ifdef __cplusplus
|
|
18
|
+
}
|
|
19
|
+
#endif
|
|
20
|
+
|
|
21
|
+
#endif
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#ifndef __wasilibc___header_string_h
|
|
2
|
+
#define __wasilibc___header_string_h
|
|
3
|
+
|
|
4
|
+
#define __need_size_t
|
|
5
|
+
#define __need_NULL
|
|
6
|
+
#include <stddef.h>
|
|
7
|
+
|
|
8
|
+
#include <__functions_memcpy.h>
|
|
9
|
+
|
|
10
|
+
#ifdef __cplusplus
|
|
11
|
+
extern "C" {
|
|
12
|
+
#endif
|
|
13
|
+
|
|
14
|
+
size_t strlen(const char *)
|
|
15
|
+
__attribute__((__nothrow__, __leaf__, __pure__, __nonnull__(1)));
|
|
16
|
+
char *strdup(const char *) __attribute__((__nothrow__, __nonnull__(1)));
|
|
17
|
+
int strcmp(const char *, const char *)
|
|
18
|
+
__attribute__((__nothrow__, __pure__, __nonnull__(1, 2)));
|
|
19
|
+
void *memchr(const void *, int, size_t)
|
|
20
|
+
__attribute__((__nothrow__, __pure__, __nonnull__(1)));
|
|
21
|
+
|
|
22
|
+
#ifdef __cplusplus
|
|
23
|
+
}
|
|
24
|
+
#endif
|
|
25
|
+
|
|
26
|
+
#endif
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#ifndef __wasilibc___header_sys_ioctl_h
|
|
2
|
+
#define __wasilibc___header_sys_ioctl_h
|
|
3
|
+
|
|
4
|
+
#define FIONREAD 1
|
|
5
|
+
#define FIONBIO 2
|
|
6
|
+
|
|
7
|
+
#ifdef __cplusplus
|
|
8
|
+
extern "C" {
|
|
9
|
+
#endif
|
|
10
|
+
|
|
11
|
+
int ioctl(int, int, ...);
|
|
12
|
+
|
|
13
|
+
#ifdef __cplusplus
|
|
14
|
+
}
|
|
15
|
+
#endif
|
|
16
|
+
|
|
17
|
+
#endif
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#ifndef __wasilibc___header_sys_resource_h
|
|
2
|
+
#define __wasilibc___header_sys_resource_h
|
|
3
|
+
|
|
4
|
+
#include <__struct_rusage.h>
|
|
5
|
+
|
|
6
|
+
#define RUSAGE_SELF 1
|
|
7
|
+
#define RUSAGE_CHILDREN 2
|
|
8
|
+
|
|
9
|
+
#ifdef __cplusplus
|
|
10
|
+
extern "C" {
|
|
11
|
+
#endif
|
|
12
|
+
|
|
13
|
+
int getrusage(int who, struct rusage *usage);
|
|
14
|
+
|
|
15
|
+
#ifdef __cplusplus
|
|
16
|
+
}
|
|
17
|
+
#endif
|
|
18
|
+
|
|
19
|
+
#endif
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
#ifndef __wasilibc___header_sys_socket_h
|
|
2
|
+
#define __wasilibc___header_sys_socket_h
|
|
3
|
+
|
|
4
|
+
#include <__struct_msghdr.h>
|
|
5
|
+
#include <__struct_sockaddr.h>
|
|
6
|
+
#include <__struct_sockaddr_storage.h>
|
|
7
|
+
|
|
8
|
+
#include <wasi/version.h>
|
|
9
|
+
|
|
10
|
+
#define SHUT_RD 1
|
|
11
|
+
#define SHUT_WR 2
|
|
12
|
+
#define SHUT_RDWR (SHUT_RD | SHUT_WR)
|
|
13
|
+
|
|
14
|
+
#if defined(__wasip1__)
|
|
15
|
+
#include <wasi/api.h>
|
|
16
|
+
#define MSG_PEEK __WASI_RIFLAGS_RECV_PEEK
|
|
17
|
+
#define MSG_WAITALL __WASI_RIFLAGS_RECV_WAITALL
|
|
18
|
+
#define MSG_TRUNC __WASI_ROFLAGS_RECV_DATA_TRUNCATED
|
|
19
|
+
#elif defined(__wasip2__) || defined(__wasip3__)
|
|
20
|
+
#define MSG_DONTWAIT 0x0040
|
|
21
|
+
#define MSG_NOSIGNAL 0x4000
|
|
22
|
+
#define MSG_PEEK 0x0002
|
|
23
|
+
#define MSG_WAITALL 0x0100
|
|
24
|
+
#define MSG_TRUNC 0x0020
|
|
25
|
+
|
|
26
|
+
#define SOL_IP 0
|
|
27
|
+
#define SOL_TCP 6
|
|
28
|
+
#define SOL_UDP 17
|
|
29
|
+
#define SOL_IPV6 41
|
|
30
|
+
|
|
31
|
+
#define SOMAXCONN 128
|
|
32
|
+
|
|
33
|
+
#define SO_REUSEADDR 2
|
|
34
|
+
#define SO_ERROR 4
|
|
35
|
+
#define SO_SNDBUF 7
|
|
36
|
+
#define SO_RCVBUF 8
|
|
37
|
+
#define SO_KEEPALIVE 9
|
|
38
|
+
#define SO_ACCEPTCONN 30
|
|
39
|
+
#define SO_PROTOCOL 38
|
|
40
|
+
#define SO_DOMAIN 39
|
|
41
|
+
|
|
42
|
+
#if __LONG_MAX == 0x7fffffff
|
|
43
|
+
#define SO_RCVTIMEO 66
|
|
44
|
+
#define SO_SNDTIMEO 67
|
|
45
|
+
#else
|
|
46
|
+
#define SO_RCVTIMEO 20
|
|
47
|
+
#define SO_SNDTIMEO 21
|
|
48
|
+
#endif
|
|
49
|
+
|
|
50
|
+
#else
|
|
51
|
+
#error "Unknown WASI version"
|
|
52
|
+
#endif
|
|
53
|
+
|
|
54
|
+
#define SOCK_DGRAM 5
|
|
55
|
+
#define SOCK_STREAM 6
|
|
56
|
+
|
|
57
|
+
#define SOCK_NONBLOCK (0x00004000)
|
|
58
|
+
#define SOCK_CLOEXEC (0x00002000)
|
|
59
|
+
|
|
60
|
+
#define SOL_SOCKET 0x7fffffff
|
|
61
|
+
|
|
62
|
+
#define SO_TYPE 3
|
|
63
|
+
|
|
64
|
+
#define PF_UNSPEC 0
|
|
65
|
+
#define PF_INET 1
|
|
66
|
+
#define PF_INET6 2
|
|
67
|
+
|
|
68
|
+
#define AF_UNSPEC PF_UNSPEC
|
|
69
|
+
#define AF_INET PF_INET
|
|
70
|
+
#define AF_INET6 PF_INET6
|
|
71
|
+
#define AF_UNIX 3
|
|
72
|
+
|
|
73
|
+
#ifdef __cplusplus
|
|
74
|
+
extern "C" {
|
|
75
|
+
#endif
|
|
76
|
+
|
|
77
|
+
#ifdef __cplusplus
|
|
78
|
+
}
|
|
79
|
+
#endif
|
|
80
|
+
|
|
81
|
+
#endif
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#ifndef __wasilibc___header_sys_stat_h
|
|
2
|
+
#define __wasilibc___header_sys_stat_h
|
|
3
|
+
|
|
4
|
+
#include <__struct_stat.h>
|
|
5
|
+
|
|
6
|
+
#define st_atime st_atim.tv_sec
|
|
7
|
+
#define st_mtime st_mtim.tv_sec
|
|
8
|
+
#define st_ctime st_ctim.tv_sec
|
|
9
|
+
|
|
10
|
+
#include <__mode_t.h>
|
|
11
|
+
|
|
12
|
+
#define UTIME_NOW (-1)
|
|
13
|
+
#define UTIME_OMIT (-2)
|
|
14
|
+
|
|
15
|
+
#endif
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#ifndef __wasilibc___header_time_h
|
|
2
|
+
#define __wasilibc___header_time_h
|
|
3
|
+
|
|
4
|
+
#define __need_size_t
|
|
5
|
+
#define __need_NULL
|
|
6
|
+
#include <stddef.h>
|
|
7
|
+
|
|
8
|
+
#include <__struct_timespec.h>
|
|
9
|
+
#include <__struct_tm.h>
|
|
10
|
+
#include <__typedef_clockid_t.h>
|
|
11
|
+
#include <__typedef_time_t.h>
|
|
12
|
+
|
|
13
|
+
#define TIMER_ABSTIME 1
|
|
14
|
+
|
|
15
|
+
extern const struct __clockid _CLOCK_MONOTONIC;
|
|
16
|
+
#define CLOCK_MONOTONIC (&_CLOCK_MONOTONIC)
|
|
17
|
+
extern const struct __clockid _CLOCK_REALTIME;
|
|
18
|
+
#define CLOCK_REALTIME (&_CLOCK_REALTIME)
|
|
19
|
+
|
|
20
|
+
/*
|
|
21
|
+
* TIME_UTC is the only standardized time base value.
|
|
22
|
+
*/
|
|
23
|
+
#define TIME_UTC 1
|
|
24
|
+
|
|
25
|
+
/*
|
|
26
|
+
* Note that XSI specifies CLOCKS_PER_SEC to be 1000000, rather than
|
|
27
|
+
* 1000000000; the clock API is providing more precision than XSI specifies.
|
|
28
|
+
*/
|
|
29
|
+
#define CLOCKS_PER_SEC ((clock_t)1000000000)
|
|
30
|
+
|
|
31
|
+
#endif
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#ifndef __wasilibc___header_unistd_h
|
|
2
|
+
#define __wasilibc___header_unistd_h
|
|
3
|
+
|
|
4
|
+
struct stat;
|
|
5
|
+
|
|
6
|
+
#include <__seek.h>
|
|
7
|
+
#include <inttypes.h>
|
|
8
|
+
|
|
9
|
+
#define F_OK (0)
|
|
10
|
+
#define X_OK (1)
|
|
11
|
+
#define W_OK (2)
|
|
12
|
+
#define R_OK (4)
|
|
13
|
+
|
|
14
|
+
#ifdef __cplusplus
|
|
15
|
+
extern "C" {
|
|
16
|
+
#endif
|
|
17
|
+
|
|
18
|
+
int close(int fd);
|
|
19
|
+
int faccessat(int, const char *, int, int);
|
|
20
|
+
int fstatat(int, const char *__restrict, struct stat *__restrict, int);
|
|
21
|
+
int renameat(int, const char *, int, const char *);
|
|
22
|
+
int openat(int, const char *, int, ...);
|
|
23
|
+
void *sbrk(intptr_t increment);
|
|
24
|
+
|
|
25
|
+
#ifdef __cplusplus
|
|
26
|
+
}
|
|
27
|
+
#endif
|
|
28
|
+
|
|
29
|
+
#endif
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#ifndef __wasilibc___macro_PAGESIZE_h
|
|
2
|
+
#define __wasilibc___macro_PAGESIZE_h
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
* Without custom-page-sizes proposal, the page size in WebAssembly
|
|
6
|
+
* is fixed at 64 KiB.
|
|
7
|
+
*
|
|
8
|
+
* The LLVM versions with a support of custom-page-sizes proposal
|
|
9
|
+
* provides __wasm_first_page_end global to allow page-size-agnostic
|
|
10
|
+
* objects.
|
|
11
|
+
*
|
|
12
|
+
* If this ever needs to be a value outside the range of an `int`, the
|
|
13
|
+
* `getpagesize` function which returns this value will need special
|
|
14
|
+
* consideration. POSIX has deprecated `getpagesize` in favor of
|
|
15
|
+
* `sysconf(_SC_PAGESIZE)` which does not have this problem.
|
|
16
|
+
*/
|
|
17
|
+
// FIXME(#778): `__wasm_first_page_end` is broken for PIC as of this writing and
|
|
18
|
+
// will likely require `wasm-ld` changes, at which point we can re-enable it.
|
|
19
|
+
#if __clang_major__ >= 22 && !defined __pic__
|
|
20
|
+
extern char __wasm_first_page_end;
|
|
21
|
+
#define PAGESIZE ((unsigned long)&__wasm_first_page_end)
|
|
22
|
+
#else
|
|
23
|
+
#define PAGESIZE (0x10000)
|
|
24
|
+
#endif
|
|
25
|
+
|
|
26
|
+
#endif
|