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,143 @@
|
|
|
1
|
+
#ifndef _COMPLEX_H
|
|
2
|
+
#define _COMPLEX_H
|
|
3
|
+
|
|
4
|
+
#ifdef __cplusplus
|
|
5
|
+
extern "C" {
|
|
6
|
+
#endif
|
|
7
|
+
|
|
8
|
+
#define complex _Complex
|
|
9
|
+
#ifdef __GNUC__
|
|
10
|
+
#define _Complex_I (__extension__ (0.0f+1.0fi))
|
|
11
|
+
#else
|
|
12
|
+
#define _Complex_I (0.0f+1.0fi)
|
|
13
|
+
#endif
|
|
14
|
+
#define I _Complex_I
|
|
15
|
+
|
|
16
|
+
double complex cacos(double complex);
|
|
17
|
+
float complex cacosf(float complex);
|
|
18
|
+
long double complex cacosl(long double complex);
|
|
19
|
+
|
|
20
|
+
double complex casin(double complex);
|
|
21
|
+
float complex casinf(float complex);
|
|
22
|
+
long double complex casinl(long double complex);
|
|
23
|
+
|
|
24
|
+
double complex catan(double complex);
|
|
25
|
+
float complex catanf(float complex);
|
|
26
|
+
long double complex catanl(long double complex);
|
|
27
|
+
|
|
28
|
+
double complex ccos(double complex);
|
|
29
|
+
float complex ccosf(float complex);
|
|
30
|
+
long double complex ccosl(long double complex);
|
|
31
|
+
|
|
32
|
+
double complex csin(double complex);
|
|
33
|
+
float complex csinf(float complex);
|
|
34
|
+
long double complex csinl(long double complex);
|
|
35
|
+
|
|
36
|
+
double complex ctan(double complex);
|
|
37
|
+
float complex ctanf(float complex);
|
|
38
|
+
long double complex ctanl(long double complex);
|
|
39
|
+
|
|
40
|
+
double complex cacosh(double complex);
|
|
41
|
+
float complex cacoshf(float complex);
|
|
42
|
+
long double complex cacoshl(long double complex);
|
|
43
|
+
|
|
44
|
+
double complex casinh(double complex);
|
|
45
|
+
float complex casinhf(float complex);
|
|
46
|
+
long double complex casinhl(long double complex);
|
|
47
|
+
|
|
48
|
+
double complex catanh(double complex);
|
|
49
|
+
float complex catanhf(float complex);
|
|
50
|
+
long double complex catanhl(long double complex);
|
|
51
|
+
|
|
52
|
+
double complex ccosh(double complex);
|
|
53
|
+
float complex ccoshf(float complex);
|
|
54
|
+
long double complex ccoshl(long double complex);
|
|
55
|
+
|
|
56
|
+
double complex csinh(double complex);
|
|
57
|
+
float complex csinhf(float complex);
|
|
58
|
+
long double complex csinhl(long double complex);
|
|
59
|
+
|
|
60
|
+
double complex ctanh(double complex);
|
|
61
|
+
float complex ctanhf(float complex);
|
|
62
|
+
long double complex ctanhl(long double complex);
|
|
63
|
+
|
|
64
|
+
double complex cexp(double complex);
|
|
65
|
+
float complex cexpf(float complex);
|
|
66
|
+
long double complex cexpl(long double complex);
|
|
67
|
+
|
|
68
|
+
double complex clog(double complex);
|
|
69
|
+
float complex clogf(float complex);
|
|
70
|
+
long double complex clogl(long double complex);
|
|
71
|
+
|
|
72
|
+
double cabs(double complex);
|
|
73
|
+
float cabsf(float complex);
|
|
74
|
+
long double cabsl(long double complex);
|
|
75
|
+
|
|
76
|
+
double complex cpow(double complex, double complex);
|
|
77
|
+
float complex cpowf(float complex, float complex);
|
|
78
|
+
long double complex cpowl(long double complex, long double complex);
|
|
79
|
+
|
|
80
|
+
double complex csqrt(double complex);
|
|
81
|
+
float complex csqrtf(float complex);
|
|
82
|
+
long double complex csqrtl(long double complex);
|
|
83
|
+
|
|
84
|
+
double carg(double complex);
|
|
85
|
+
float cargf(float complex);
|
|
86
|
+
long double cargl(long double complex);
|
|
87
|
+
|
|
88
|
+
double cimag(double complex);
|
|
89
|
+
float cimagf(float complex);
|
|
90
|
+
long double cimagl(long double complex);
|
|
91
|
+
|
|
92
|
+
double complex conj(double complex);
|
|
93
|
+
float complex conjf(float complex);
|
|
94
|
+
long double complex conjl(long double complex);
|
|
95
|
+
|
|
96
|
+
double complex cproj(double complex);
|
|
97
|
+
float complex cprojf(float complex);
|
|
98
|
+
long double complex cprojl(long double complex);
|
|
99
|
+
|
|
100
|
+
double creal(double complex);
|
|
101
|
+
float crealf(float complex);
|
|
102
|
+
long double creall(long double complex);
|
|
103
|
+
|
|
104
|
+
#ifdef __wasilibc_unmodified_upstream /* Use the compiler's real/imag operators rather than union type punning */
|
|
105
|
+
#ifndef __cplusplus
|
|
106
|
+
#define __CIMAG(x, t) \
|
|
107
|
+
(+(union { _Complex t __z; t __xy[2]; }){(_Complex t)(x)}.__xy[1])
|
|
108
|
+
|
|
109
|
+
#define creal(x) ((double)(x))
|
|
110
|
+
#define crealf(x) ((float)(x))
|
|
111
|
+
#define creall(x) ((long double)(x))
|
|
112
|
+
|
|
113
|
+
#define cimag(x) __CIMAG(x, double)
|
|
114
|
+
#define cimagf(x) __CIMAG(x, float)
|
|
115
|
+
#define cimagl(x) __CIMAG(x, long double)
|
|
116
|
+
#endif
|
|
117
|
+
#else
|
|
118
|
+
#define creal(x) (__builtin_creal(x))
|
|
119
|
+
#define crealf(x) (__builtin_crealf(x))
|
|
120
|
+
#define creall(x) (__builtin_creall(x))
|
|
121
|
+
|
|
122
|
+
#define cimag(x) (__builtin_cimag(x))
|
|
123
|
+
#define cimagf(x) (__builtin_cimagf(x))
|
|
124
|
+
#define cimagl(x) (__builtin_cimagl(x))
|
|
125
|
+
#endif
|
|
126
|
+
|
|
127
|
+
#if __STDC_VERSION__ >= 201112L
|
|
128
|
+
#if defined(_Imaginary_I)
|
|
129
|
+
#define __CMPLX(x, y, t) ((t)(x) + _Imaginary_I*(t)(y))
|
|
130
|
+
#elif defined(__clang__)
|
|
131
|
+
#define __CMPLX(x, y, t) (+(_Complex t){ (t)(x), (t)(y) })
|
|
132
|
+
#else
|
|
133
|
+
#define __CMPLX(x, y, t) (__builtin_complex((t)(x), (t)(y)))
|
|
134
|
+
#endif
|
|
135
|
+
#define CMPLX(x, y) __CMPLX(x, y, double)
|
|
136
|
+
#define CMPLXF(x, y) __CMPLX(x, y, float)
|
|
137
|
+
#define CMPLXL(x, y) __CMPLX(x, y, long double)
|
|
138
|
+
#endif
|
|
139
|
+
|
|
140
|
+
#ifdef __cplusplus
|
|
141
|
+
}
|
|
142
|
+
#endif
|
|
143
|
+
#endif
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#ifndef _CPIO_H
|
|
2
|
+
#define _CPIO_H
|
|
3
|
+
|
|
4
|
+
#define MAGIC "070707"
|
|
5
|
+
|
|
6
|
+
#define C_IRUSR 000400
|
|
7
|
+
#define C_IWUSR 000200
|
|
8
|
+
#define C_IXUSR 000100
|
|
9
|
+
#define C_IRGRP 000040
|
|
10
|
+
#define C_IWGRP 000020
|
|
11
|
+
#define C_IXGRP 000010
|
|
12
|
+
#define C_IROTH 000004
|
|
13
|
+
#define C_IWOTH 000002
|
|
14
|
+
#define C_IXOTH 000001
|
|
15
|
+
|
|
16
|
+
#define C_ISUID 004000
|
|
17
|
+
#define C_ISGID 002000
|
|
18
|
+
#define C_ISVTX 001000
|
|
19
|
+
|
|
20
|
+
#define C_ISBLK 060000
|
|
21
|
+
#define C_ISCHR 020000
|
|
22
|
+
#define C_ISDIR 040000
|
|
23
|
+
#define C_ISFIFO 010000
|
|
24
|
+
#define C_ISSOCK 0140000
|
|
25
|
+
#define C_ISLNK 0120000
|
|
26
|
+
#define C_ISCTG 0110000
|
|
27
|
+
#define C_ISREG 0100000
|
|
28
|
+
|
|
29
|
+
#endif
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#ifndef _CRYPT_H
|
|
2
|
+
#define _CRYPT_H
|
|
3
|
+
|
|
4
|
+
#ifdef __cplusplus
|
|
5
|
+
extern "C" {
|
|
6
|
+
#endif
|
|
7
|
+
|
|
8
|
+
struct crypt_data {
|
|
9
|
+
int initialized;
|
|
10
|
+
char __buf[256];
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
char *crypt(const char *, const char *);
|
|
14
|
+
char *crypt_r(const char *, const char *, struct crypt_data *);
|
|
15
|
+
|
|
16
|
+
#ifdef __cplusplus
|
|
17
|
+
}
|
|
18
|
+
#endif
|
|
19
|
+
|
|
20
|
+
#endif
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
#ifndef _CTYPE_H
|
|
2
|
+
#define _CTYPE_H
|
|
3
|
+
|
|
4
|
+
#ifdef __cplusplus
|
|
5
|
+
extern "C" {
|
|
6
|
+
#endif
|
|
7
|
+
|
|
8
|
+
#include <features.h>
|
|
9
|
+
|
|
10
|
+
int isalnum(int);
|
|
11
|
+
int isalpha(int);
|
|
12
|
+
int isblank(int);
|
|
13
|
+
int iscntrl(int);
|
|
14
|
+
int isdigit(int);
|
|
15
|
+
int isgraph(int);
|
|
16
|
+
int islower(int);
|
|
17
|
+
int isprint(int);
|
|
18
|
+
int ispunct(int);
|
|
19
|
+
int isspace(int);
|
|
20
|
+
int isupper(int);
|
|
21
|
+
int isxdigit(int);
|
|
22
|
+
int tolower(int);
|
|
23
|
+
int toupper(int);
|
|
24
|
+
|
|
25
|
+
#ifndef __cplusplus
|
|
26
|
+
static __inline int __isspace(int _c)
|
|
27
|
+
{
|
|
28
|
+
return _c == ' ' || (unsigned)_c-'\t' < 5;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
#define isalpha(a) (0 ? isalpha(a) : (((unsigned)(a)|32)-'a') < 26)
|
|
32
|
+
#define isdigit(a) (0 ? isdigit(a) : ((unsigned)(a)-'0') < 10)
|
|
33
|
+
#define islower(a) (0 ? islower(a) : ((unsigned)(a)-'a') < 26)
|
|
34
|
+
#define isupper(a) (0 ? isupper(a) : ((unsigned)(a)-'A') < 26)
|
|
35
|
+
#define isprint(a) (0 ? isprint(a) : ((unsigned)(a)-0x20) < 0x5f)
|
|
36
|
+
#define isgraph(a) (0 ? isgraph(a) : ((unsigned)(a)-0x21) < 0x5e)
|
|
37
|
+
#define isspace(a) __isspace(a)
|
|
38
|
+
#endif
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|
|
42
|
+
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
|
|
43
|
+
|| defined(_BSD_SOURCE)
|
|
44
|
+
|
|
45
|
+
#define __NEED_locale_t
|
|
46
|
+
#include <bits/alltypes.h>
|
|
47
|
+
|
|
48
|
+
int isalnum_l(int, locale_t);
|
|
49
|
+
int isalpha_l(int, locale_t);
|
|
50
|
+
int isblank_l(int, locale_t);
|
|
51
|
+
int iscntrl_l(int, locale_t);
|
|
52
|
+
int isdigit_l(int, locale_t);
|
|
53
|
+
int isgraph_l(int, locale_t);
|
|
54
|
+
int islower_l(int, locale_t);
|
|
55
|
+
int isprint_l(int, locale_t);
|
|
56
|
+
int ispunct_l(int, locale_t);
|
|
57
|
+
int isspace_l(int, locale_t);
|
|
58
|
+
int isupper_l(int, locale_t);
|
|
59
|
+
int isxdigit_l(int, locale_t);
|
|
60
|
+
int tolower_l(int, locale_t);
|
|
61
|
+
int toupper_l(int, locale_t);
|
|
62
|
+
|
|
63
|
+
int isascii(int);
|
|
64
|
+
int toascii(int);
|
|
65
|
+
#define _tolower(a) ((a)|0x20)
|
|
66
|
+
#define _toupper(a) ((a)&0x5f)
|
|
67
|
+
#ifndef __cplusplus
|
|
68
|
+
#define isascii(a) (0 ? isascii(a) : (unsigned)(a) < 128)
|
|
69
|
+
#endif
|
|
70
|
+
|
|
71
|
+
#endif
|
|
72
|
+
|
|
73
|
+
#ifdef __cplusplus
|
|
74
|
+
}
|
|
75
|
+
#endif
|
|
76
|
+
|
|
77
|
+
#endif
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
#ifndef _DIRENT_H
|
|
2
|
+
#define _DIRENT_H
|
|
3
|
+
|
|
4
|
+
#ifdef __wasilibc_unmodified_upstream /* Use alternate WASI libc headers */
|
|
5
|
+
#else
|
|
6
|
+
#include <__header_dirent.h>
|
|
7
|
+
#endif
|
|
8
|
+
#ifdef __cplusplus
|
|
9
|
+
extern "C" {
|
|
10
|
+
#endif
|
|
11
|
+
|
|
12
|
+
#include <features.h>
|
|
13
|
+
|
|
14
|
+
#define __NEED_ino_t
|
|
15
|
+
#define __NEED_off_t
|
|
16
|
+
#define __NEED_size_t
|
|
17
|
+
#define __NEED_ssize_t
|
|
18
|
+
|
|
19
|
+
#include <bits/alltypes.h>
|
|
20
|
+
|
|
21
|
+
#include <bits/dirent.h>
|
|
22
|
+
|
|
23
|
+
typedef unsigned short reclen_t;
|
|
24
|
+
|
|
25
|
+
struct posix_dent {
|
|
26
|
+
ino_t d_ino;
|
|
27
|
+
off_t d_off;
|
|
28
|
+
reclen_t d_reclen;
|
|
29
|
+
unsigned char d_type;
|
|
30
|
+
char d_name[];
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
#ifdef __wasilibc_unmodified_upstream /* Use alternate WASI libc headers */
|
|
34
|
+
typedef struct __dirstream DIR;
|
|
35
|
+
#else
|
|
36
|
+
#include <__typedef_DIR.h>
|
|
37
|
+
#endif
|
|
38
|
+
|
|
39
|
+
#define d_fileno d_ino
|
|
40
|
+
|
|
41
|
+
int closedir(DIR *);
|
|
42
|
+
DIR *fdopendir(int);
|
|
43
|
+
DIR *opendir(const char *);
|
|
44
|
+
struct dirent *readdir(DIR *);
|
|
45
|
+
#ifdef __wasilibc_unmodified_upstream /* readdir_r is obsolete */
|
|
46
|
+
int readdir_r(DIR *__restrict, struct dirent *__restrict, struct dirent **__restrict);
|
|
47
|
+
#endif
|
|
48
|
+
void rewinddir(DIR *);
|
|
49
|
+
int dirfd(DIR *);
|
|
50
|
+
|
|
51
|
+
#ifdef __wasilibc_unmodified_upstream /* not implemented in wasi-libc yet */
|
|
52
|
+
ssize_t posix_getdents(int, void *, size_t, int);
|
|
53
|
+
#endif
|
|
54
|
+
|
|
55
|
+
int alphasort(const struct dirent **, const struct dirent **);
|
|
56
|
+
int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct dirent **, const struct dirent **));
|
|
57
|
+
|
|
58
|
+
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
|
59
|
+
void seekdir(DIR *, long);
|
|
60
|
+
long telldir(DIR *);
|
|
61
|
+
#endif
|
|
62
|
+
|
|
63
|
+
#ifdef __wasilibc_unmodified_upstream /* Use alternate WASI libc headers */
|
|
64
|
+
#define DT_UNKNOWN 0
|
|
65
|
+
#define DT_FIFO 1
|
|
66
|
+
#define DT_CHR 2
|
|
67
|
+
#define DT_DIR 4
|
|
68
|
+
#define DT_BLK 6
|
|
69
|
+
#define DT_REG 8
|
|
70
|
+
#define DT_LNK 10
|
|
71
|
+
#define DT_SOCK 12
|
|
72
|
+
#define DT_WHT 14
|
|
73
|
+
|
|
74
|
+
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
|
75
|
+
#define IFTODT(x) ((x)>>12 & 017)
|
|
76
|
+
#define DTTOIF(x) ((x)<<12)
|
|
77
|
+
#endif
|
|
78
|
+
int getdents(int, struct dirent *, size_t);
|
|
79
|
+
#endif
|
|
80
|
+
|
|
81
|
+
#ifdef _GNU_SOURCE
|
|
82
|
+
int versionsort(const struct dirent **, const struct dirent **);
|
|
83
|
+
#endif
|
|
84
|
+
|
|
85
|
+
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
|
|
86
|
+
#define dirent64 dirent
|
|
87
|
+
#define readdir64 readdir
|
|
88
|
+
#ifdef __wasilibc_unmodified_upstream /* readdir_r is obsolete */
|
|
89
|
+
#define readdir64_r readdir_r
|
|
90
|
+
#endif
|
|
91
|
+
#define scandir64 scandir
|
|
92
|
+
#define alphasort64 alphasort
|
|
93
|
+
#define versionsort64 versionsort
|
|
94
|
+
#define off64_t off_t
|
|
95
|
+
#define ino64_t ino_t
|
|
96
|
+
#define getdents64 getdents
|
|
97
|
+
#endif
|
|
98
|
+
|
|
99
|
+
#ifdef __cplusplus
|
|
100
|
+
}
|
|
101
|
+
#endif
|
|
102
|
+
|
|
103
|
+
#endif
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
#ifndef _DLFCN_H
|
|
2
|
+
#define _DLFCN_H
|
|
3
|
+
|
|
4
|
+
#ifdef __cplusplus
|
|
5
|
+
extern "C" {
|
|
6
|
+
#endif
|
|
7
|
+
|
|
8
|
+
#include <features.h>
|
|
9
|
+
|
|
10
|
+
#define RTLD_LAZY 1
|
|
11
|
+
#define RTLD_NOW 2
|
|
12
|
+
#define RTLD_NOLOAD 4
|
|
13
|
+
#define RTLD_NODELETE 4096
|
|
14
|
+
#define RTLD_GLOBAL 256
|
|
15
|
+
#ifdef __wasilibc_unmodified_upstream
|
|
16
|
+
#define RTLD_LOCAL 0
|
|
17
|
+
#else
|
|
18
|
+
/* For WASI, we give `RTLD_LOCAL` a non-zero value, avoiding ambiguity and
|
|
19
|
+
* allowing us to defer the decision of whether `RTLD_LOCAL` or `RTLD_GLOBAL`
|
|
20
|
+
* should be the default when neither is specified.
|
|
21
|
+
*/
|
|
22
|
+
#define RTLD_LOCAL 8
|
|
23
|
+
#endif
|
|
24
|
+
|
|
25
|
+
#define RTLD_NEXT ((void *)-1)
|
|
26
|
+
#define RTLD_DEFAULT ((void *)0)
|
|
27
|
+
|
|
28
|
+
#ifdef __wasilibc_unmodified_upstream
|
|
29
|
+
#define RTLD_DI_LINKMAP 2
|
|
30
|
+
#endif
|
|
31
|
+
|
|
32
|
+
int dlclose(void *);
|
|
33
|
+
char *dlerror(void);
|
|
34
|
+
void *dlopen(const char *, int);
|
|
35
|
+
void *dlsym(void *__restrict, const char *__restrict);
|
|
36
|
+
|
|
37
|
+
#if defined(__wasilibc_unmodified_upstream) && (defined(_GNU_SOURCE) || defined(_BSD_SOURCE))
|
|
38
|
+
typedef struct {
|
|
39
|
+
const char *dli_fname;
|
|
40
|
+
void *dli_fbase;
|
|
41
|
+
const char *dli_sname;
|
|
42
|
+
void *dli_saddr;
|
|
43
|
+
} Dl_info;
|
|
44
|
+
int dladdr(const void *, Dl_info *);
|
|
45
|
+
int dlinfo(void *, int, void *);
|
|
46
|
+
#endif
|
|
47
|
+
|
|
48
|
+
#if _REDIR_TIME64
|
|
49
|
+
__REDIR(dlsym, __dlsym_time64);
|
|
50
|
+
#endif
|
|
51
|
+
|
|
52
|
+
#ifdef __cplusplus
|
|
53
|
+
}
|
|
54
|
+
#endif
|
|
55
|
+
|
|
56
|
+
#endif
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
#ifndef _ENDIAN_H
|
|
2
|
+
#define _ENDIAN_H
|
|
3
|
+
|
|
4
|
+
#include <features.h>
|
|
5
|
+
|
|
6
|
+
#define __NEED_uint16_t
|
|
7
|
+
#define __NEED_uint32_t
|
|
8
|
+
#define __NEED_uint64_t
|
|
9
|
+
|
|
10
|
+
#include <bits/alltypes.h>
|
|
11
|
+
|
|
12
|
+
#define __PDP_ENDIAN 3412
|
|
13
|
+
|
|
14
|
+
#define BIG_ENDIAN __BIG_ENDIAN
|
|
15
|
+
#define LITTLE_ENDIAN __LITTLE_ENDIAN
|
|
16
|
+
#define PDP_ENDIAN __PDP_ENDIAN
|
|
17
|
+
#define BYTE_ORDER __BYTE_ORDER
|
|
18
|
+
|
|
19
|
+
static __inline uint16_t __bswap16(uint16_t __x)
|
|
20
|
+
{
|
|
21
|
+
return __x<<8 | __x>>8;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
static __inline uint32_t __bswap32(uint32_t __x)
|
|
25
|
+
{
|
|
26
|
+
return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static __inline uint64_t __bswap64(uint64_t __x)
|
|
30
|
+
{
|
|
31
|
+
return __bswap32(__x)+0ULL<<32 | __bswap32(__x>>32);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
|
35
|
+
#define htobe16(x) __bswap16(x)
|
|
36
|
+
#define be16toh(x) __bswap16(x)
|
|
37
|
+
#define htobe32(x) __bswap32(x)
|
|
38
|
+
#define be32toh(x) __bswap32(x)
|
|
39
|
+
#define htobe64(x) __bswap64(x)
|
|
40
|
+
#define be64toh(x) __bswap64(x)
|
|
41
|
+
#define htole16(x) (uint16_t)(x)
|
|
42
|
+
#define le16toh(x) (uint16_t)(x)
|
|
43
|
+
#define htole32(x) (uint32_t)(x)
|
|
44
|
+
#define le32toh(x) (uint32_t)(x)
|
|
45
|
+
#define htole64(x) (uint64_t)(x)
|
|
46
|
+
#define le64toh(x) (uint64_t)(x)
|
|
47
|
+
#else
|
|
48
|
+
#define htobe16(x) (uint16_t)(x)
|
|
49
|
+
#define be16toh(x) (uint16_t)(x)
|
|
50
|
+
#define htobe32(x) (uint32_t)(x)
|
|
51
|
+
#define be32toh(x) (uint32_t)(x)
|
|
52
|
+
#define htobe64(x) (uint64_t)(x)
|
|
53
|
+
#define be64toh(x) (uint64_t)(x)
|
|
54
|
+
#define htole16(x) __bswap16(x)
|
|
55
|
+
#define le16toh(x) __bswap16(x)
|
|
56
|
+
#define htole32(x) __bswap32(x)
|
|
57
|
+
#define le32toh(x) __bswap32(x)
|
|
58
|
+
#define htole64(x) __bswap64(x)
|
|
59
|
+
#define le64toh(x) __bswap64(x)
|
|
60
|
+
#endif
|
|
61
|
+
|
|
62
|
+
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
|
63
|
+
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
|
64
|
+
#define betoh16(x) __bswap16(x)
|
|
65
|
+
#define betoh32(x) __bswap32(x)
|
|
66
|
+
#define betoh64(x) __bswap64(x)
|
|
67
|
+
#define letoh16(x) (uint16_t)(x)
|
|
68
|
+
#define letoh32(x) (uint32_t)(x)
|
|
69
|
+
#define letoh64(x) (uint64_t)(x)
|
|
70
|
+
#else
|
|
71
|
+
#define betoh16(x) (uint16_t)(x)
|
|
72
|
+
#define betoh32(x) (uint32_t)(x)
|
|
73
|
+
#define betoh64(x) (uint64_t)(x)
|
|
74
|
+
#define letoh16(x) __bswap16(x)
|
|
75
|
+
#define letoh32(x) __bswap32(x)
|
|
76
|
+
#define letoh64(x) __bswap64(x)
|
|
77
|
+
#endif
|
|
78
|
+
#endif
|
|
79
|
+
|
|
80
|
+
#endif
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#ifndef _ERR_H
|
|
2
|
+
#define _ERR_H
|
|
3
|
+
|
|
4
|
+
#include <features.h>
|
|
5
|
+
#include <stdarg.h>
|
|
6
|
+
|
|
7
|
+
#ifdef __cplusplus
|
|
8
|
+
extern "C" {
|
|
9
|
+
#endif
|
|
10
|
+
|
|
11
|
+
void warn(const char *, ...);
|
|
12
|
+
void vwarn(const char *, va_list);
|
|
13
|
+
void warnx(const char *, ...);
|
|
14
|
+
void vwarnx(const char *, va_list);
|
|
15
|
+
|
|
16
|
+
_Noreturn void err(int, const char *, ...);
|
|
17
|
+
_Noreturn void verr(int, const char *, va_list);
|
|
18
|
+
_Noreturn void errx(int, const char *, ...);
|
|
19
|
+
_Noreturn void verrx(int, const char *, va_list);
|
|
20
|
+
|
|
21
|
+
#ifdef __cplusplus
|
|
22
|
+
}
|
|
23
|
+
#endif
|
|
24
|
+
|
|
25
|
+
#endif
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
#ifndef _ERRNO_H
|
|
2
|
+
#define _ERRNO_H
|
|
3
|
+
|
|
4
|
+
#ifdef __cplusplus
|
|
5
|
+
extern "C" {
|
|
6
|
+
#endif
|
|
7
|
+
|
|
8
|
+
#include <features.h>
|
|
9
|
+
|
|
10
|
+
#ifdef __wasilibc_unmodified_upstream /* Use alternate WASI libc headers */
|
|
11
|
+
#include <bits/errno.h>
|
|
12
|
+
#else
|
|
13
|
+
#include <__errno_values.h>
|
|
14
|
+
#endif
|
|
15
|
+
|
|
16
|
+
#ifdef __GNUC__
|
|
17
|
+
__attribute__((const))
|
|
18
|
+
#endif
|
|
19
|
+
int *__errno_location(void);
|
|
20
|
+
|
|
21
|
+
// Cross-module TLS does not work in WASIp3, so declaring an `extern` to some
|
|
22
|
+
// data doesn't work for errno. On other platforms though that's been the
|
|
23
|
+
// historical default so that's left in place.
|
|
24
|
+
#if !defined(__wasip1__) && !defined(__wasip2__)
|
|
25
|
+
#define errno (*__errno_location())
|
|
26
|
+
#else
|
|
27
|
+
extern _Thread_local int errno;
|
|
28
|
+
#define errno errno
|
|
29
|
+
#endif
|
|
30
|
+
|
|
31
|
+
#ifdef _GNU_SOURCE
|
|
32
|
+
extern char *program_invocation_short_name, *program_invocation_name;
|
|
33
|
+
#endif
|
|
34
|
+
|
|
35
|
+
#ifdef __cplusplus
|
|
36
|
+
}
|
|
37
|
+
#endif
|
|
38
|
+
|
|
39
|
+
#endif
|
|
40
|
+
|