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.
Files changed (239) hide show
  1. shellsim_c_toolchain/__init__.py +75 -0
  2. shellsim_c_toolchain/_assets/tcc/SHELLSIM-LIBC-LICENSE +21 -0
  3. shellsim_c_toolchain/_assets/tcc/include/float.h +75 -0
  4. shellsim_c_toolchain/_assets/tcc/include/stdalign.h +16 -0
  5. shellsim_c_toolchain/_assets/tcc/include/stdarg.h +14 -0
  6. shellsim_c_toolchain/_assets/tcc/include/stdatomic.h +171 -0
  7. shellsim_c_toolchain/_assets/tcc/include/stdbool.h +11 -0
  8. shellsim_c_toolchain/_assets/tcc/include/stddef.h +39 -0
  9. shellsim_c_toolchain/_assets/tcc/include/stdnoreturn.h +7 -0
  10. shellsim_c_toolchain/_assets/tcc/include/tccdefs.h +346 -0
  11. shellsim_c_toolchain/_assets/tcc/include/tgmath.h +89 -0
  12. shellsim_c_toolchain/_assets/tcc/include/varargs.h +12 -0
  13. shellsim_c_toolchain/_assets/tcc/shellsim_libc.c +42 -0
  14. shellsim_c_toolchain/_assets/tcc/tcc-shellsim.wasm +0 -0
  15. shellsim_c_toolchain/_assets/tcc/wasm32-libtcc1.a +0 -0
  16. shellsim_c_toolchain/_assets/tinycc-22a2e10-source.tar.gz +0 -0
  17. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__errno_values.h +84 -0
  18. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__fd_set.h +67 -0
  19. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__function___isatty.h +14 -0
  20. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__functions_malloc.h +29 -0
  21. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__functions_memcpy.h +24 -0
  22. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_dirent.h +44 -0
  23. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_fcntl.h +69 -0
  24. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_inttypes.h +184 -0
  25. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_netinet_in.h +32 -0
  26. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_poll.h +33 -0
  27. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_stdlib.h +21 -0
  28. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_string.h +26 -0
  29. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_sys_ioctl.h +17 -0
  30. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_sys_resource.h +19 -0
  31. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_sys_socket.h +81 -0
  32. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_sys_stat.h +15 -0
  33. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_time.h +31 -0
  34. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__header_unistd.h +29 -0
  35. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__macro_FD_SETSIZE.h +6 -0
  36. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__macro_PAGESIZE.h +26 -0
  37. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__mode_t.h +38 -0
  38. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__seek.h +8 -0
  39. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_dirent.h +14 -0
  40. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_in6_addr.h +8 -0
  41. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_in_addr.h +10 -0
  42. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_iovec.h +12 -0
  43. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_msghdr.h +16 -0
  44. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_pollfd.h +10 -0
  45. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_rusage.h +12 -0
  46. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_sockaddr.h +11 -0
  47. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_sockaddr_in.h +14 -0
  48. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_sockaddr_in6.h +16 -0
  49. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_sockaddr_storage.h +11 -0
  50. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_sockaddr_un.h +10 -0
  51. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_stat.h +35 -0
  52. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_timespec.h +12 -0
  53. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_timeval.h +13 -0
  54. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_tm.h +19 -0
  55. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__struct_tms.h +13 -0
  56. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_DIR.h +6 -0
  57. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_blkcnt_t.h +7 -0
  58. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_blksize_t.h +6 -0
  59. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_clock_t.h +7 -0
  60. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_clockid_t.h +6 -0
  61. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_dev_t.h +7 -0
  62. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_fd_set.h +14 -0
  63. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_gid_t.h +6 -0
  64. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_in_addr_t.h +6 -0
  65. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_in_port_t.h +6 -0
  66. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_ino_t.h +7 -0
  67. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_mode_t.h +6 -0
  68. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_nfds_t.h +6 -0
  69. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_nlink_t.h +7 -0
  70. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_off_t.h +7 -0
  71. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_sa_family_t.h +6 -0
  72. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_sigset_t.h +7 -0
  73. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_socklen_t.h +6 -0
  74. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_ssize_t.h +7 -0
  75. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_suseconds_t.h +8 -0
  76. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_time_t.h +7 -0
  77. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/__typedef_uid_t.h +6 -0
  78. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/alloca.h +19 -0
  79. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/ar.h +25 -0
  80. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/arpa/ftp.h +35 -0
  81. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/arpa/inet.h +31 -0
  82. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/arpa/nameser.h +526 -0
  83. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/arpa/nameser_compat.h +2 -0
  84. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/arpa/telnet.h +251 -0
  85. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/arpa/tftp.h +31 -0
  86. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/assert.h +23 -0
  87. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/alltypes.h +461 -0
  88. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/dirent.h +1 -0
  89. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/fcntl.h +1 -0
  90. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/fenv.h +10 -0
  91. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/float.h +16 -0
  92. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/hwcap.h +0 -0
  93. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/io.h +0 -0
  94. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/ioctl.h +1 -0
  95. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/ioctl_fix.h +0 -0
  96. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/ipcstat.h +1 -0
  97. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/limits.h +1 -0
  98. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/mman.h +0 -0
  99. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/poll.h +0 -0
  100. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/posix.h +2 -0
  101. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/reg.h +0 -0
  102. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/resource.h +0 -0
  103. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/setjmp.h +1 -0
  104. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/signal.h +40 -0
  105. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/socket.h +0 -0
  106. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/stat.h +22 -0
  107. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/bits/stdint.h +29 -0
  108. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/byteswap.h +26 -0
  109. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/complex.h +143 -0
  110. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/cpio.h +29 -0
  111. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/crypt.h +20 -0
  112. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/ctype.h +77 -0
  113. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/dirent.h +103 -0
  114. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/dlfcn.h +56 -0
  115. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/endian.h +80 -0
  116. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/err.h +25 -0
  117. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/errno.h +40 -0
  118. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/fcntl.h +250 -0
  119. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/features.h +40 -0
  120. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/fenv.h +28 -0
  121. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/float.h +56 -0
  122. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/fmtmsg.h +47 -0
  123. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/fnmatch.h +24 -0
  124. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/fts.h +155 -0
  125. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/ftw.h +45 -0
  126. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/getopt.h +30 -0
  127. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/glob.h +54 -0
  128. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/iconv.h +24 -0
  129. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/ifaddrs.h +35 -0
  130. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/inttypes.h +233 -0
  131. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/iso646.h +20 -0
  132. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/langinfo.h +98 -0
  133. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/libgen.h +15 -0
  134. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/limits.h +174 -0
  135. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/locale.h +93 -0
  136. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/malloc.h +33 -0
  137. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/math.h +459 -0
  138. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/memory.h +1 -0
  139. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/monetary.h +23 -0
  140. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/mqueue.h +41 -0
  141. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/netinet/icmp6.h +305 -0
  142. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/netinet/igmp.h +45 -0
  143. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/netinet/in.h +434 -0
  144. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/netinet/in_systm.h +9 -0
  145. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/netinet/ip.h +199 -0
  146. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/netinet/ip6.h +141 -0
  147. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/netinet/ip_icmp.h +193 -0
  148. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/netinet/tcp.h +305 -0
  149. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/netinet/udp.h +46 -0
  150. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/netpacket/packet.h +62 -0
  151. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/nl_types.h +22 -0
  152. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/poll.h +69 -0
  153. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/pthread.h +267 -0
  154. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/regex.h +62 -0
  155. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sched.h +151 -0
  156. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/search.h +63 -0
  157. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/semaphore.h +39 -0
  158. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/setjmp.h +55 -0
  159. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/signal.h +339 -0
  160. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/stdalign.h +20 -0
  161. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/stdbool.h +14 -0
  162. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/stdc-predef.h +18 -0
  163. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/stdint.h +117 -0
  164. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/stdio.h +259 -0
  165. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/stdio_ext.h +34 -0
  166. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/stdlib.h +217 -0
  167. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/stdnoreturn.h +7 -0
  168. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/string.h +123 -0
  169. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/strings.h +40 -0
  170. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/stropts.h +139 -0
  171. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/dir.h +2 -0
  172. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/errno.h +2 -0
  173. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/eventfd.h +26 -0
  174. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/fcntl.h +2 -0
  175. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/file.h +21 -0
  176. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/ioctl.h +124 -0
  177. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/mman.h +161 -0
  178. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/param.h +37 -0
  179. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/poll.h +2 -0
  180. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/random.h +27 -0
  181. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/reg.h +18 -0
  182. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/resource.h +126 -0
  183. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/select.h +54 -0
  184. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/signal.h +2 -0
  185. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/socket.h +454 -0
  186. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/stat.h +223 -0
  187. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/statvfs.h +57 -0
  188. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/stropts.h +1 -0
  189. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/syscall.h +10 -0
  190. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/sysinfo.h +36 -0
  191. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/time.h +84 -0
  192. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/timeb.h +28 -0
  193. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/times.h +34 -0
  194. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/timex.h +103 -0
  195. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/ttydefaults.h +34 -0
  196. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/types.h +85 -0
  197. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/uio.h +58 -0
  198. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/un.h +39 -0
  199. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sys/utsname.h +29 -0
  200. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/syscall.h +1 -0
  201. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/sysexits.h +21 -0
  202. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/tar.h +33 -0
  203. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/tgmath.h +270 -0
  204. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/threads.h +93 -0
  205. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/time.h +204 -0
  206. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/uchar.h +29 -0
  207. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/unistd.h +593 -0
  208. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/utime.h +29 -0
  209. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/values.h +39 -0
  210. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wasi/api.h +34 -0
  211. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wasi/libc-busywait.h +15 -0
  212. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wasi/libc-environ.h +36 -0
  213. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wasi/libc-find-relpath.h +75 -0
  214. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wasi/libc-nocwd.h +61 -0
  215. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wasi/libc.h +136 -0
  216. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wasi/version.h +24 -0
  217. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wasi/wasip1.h +2130 -0
  218. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wasi/wasip2.h +10 -0
  219. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wasi/wasip3.h +10 -0
  220. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wchar.h +214 -0
  221. shellsim_c_toolchain/_assets/wasi-sysroot/include/wasm32-wasip1/wctype.h +79 -0
  222. shellsim_c_toolchain/_assets/wasi-sysroot/lib/wasm32-wasip1/libc-printscan-long-double.a +0 -0
  223. shellsim_c_toolchain/_assets/wasi-sysroot/lib/wasm32-wasip1/libc.a +0 -0
  224. shellsim_c_toolchain/_assets/wasi-sysroot/lib/wasm32-wasip1/libsetjmp.a +0 -0
  225. shellsim_c_toolchain-0.1.25.dist-info/METADATA +33 -0
  226. shellsim_c_toolchain-0.1.25.dist-info/RECORD +239 -0
  227. shellsim_c_toolchain-0.1.25.dist-info/WHEEL +5 -0
  228. shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSE +201 -0
  229. shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSES/README.md +31 -0
  230. shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSES/tinycc-LGPL-2.1.txt +502 -0
  231. shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSES/tinycc-shellsim-libc-LICENSE +21 -0
  232. shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSES/wasi-libc-CLOUDLIBC-LICENSE +22 -0
  233. shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSES/wasi-libc-FTS-COPYING +26 -0
  234. shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSES/wasi-libc-LICENSE +17 -0
  235. shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSES/wasi-libc-LICENSE-APACHE +201 -0
  236. shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSES/wasi-libc-LICENSE-APACHE-LLVM +219 -0
  237. shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSES/wasi-libc-LICENSE-MIT +23 -0
  238. shellsim_c_toolchain-0.1.25.dist-info/licenses/LICENSES/wasi-libc-MUSL-COPYRIGHT +193 -0
  239. shellsim_c_toolchain-0.1.25.dist-info/top_level.txt +1 -0
@@ -0,0 +1,461 @@
1
+ #define _Addr long
2
+ #define _Int64 long long
3
+ #define _Reg long long
4
+
5
+ #define __BYTE_ORDER __BYTE_ORDER__
6
+
7
+ #define __LONG_MAX __LONG_MAX__
8
+
9
+ /*
10
+ * Rather than define everything ourselves here in the musl layer, for
11
+ * WASI, reference the definitions in the lower layers.
12
+ */
13
+
14
+ #if defined(__NEED_wchar_t) && !defined(__DEFINED_wchar_t)
15
+ #define __need_wchar_t
16
+ #include <stddef.h>
17
+ #define __DEFINED_wchar_t
18
+ #endif
19
+
20
+ #if defined(__NEED_wint_t) && !defined(__DEFINED_wint_t)
21
+ #define __need_wint_t
22
+ #include <stddef.h>
23
+ #define __DEFINED_wint_t
24
+ #endif
25
+
26
+ #if defined(__NEED_float_t) && !defined(__DEFINED_float_t)
27
+ typedef float float_t;
28
+ #define __DEFINED_float_t
29
+ #endif
30
+
31
+ #if defined(__NEED_double_t) && !defined(__DEFINED_double_t)
32
+ typedef double double_t;
33
+ #define __DEFINED_double_t
34
+ #endif
35
+
36
+
37
+ #if defined(__NEED_max_align_t) && !defined(__DEFINED_max_align_t)
38
+ #define __need_max_align_t
39
+ #include <stddef.h>
40
+ #define __DEFINED_max_align_t
41
+ #endif
42
+
43
+ #if defined(__NEED_time_t) && !defined(__DEFINED_time_t)
44
+ #include <__typedef_time_t.h>
45
+ #define __DEFINED_time_t
46
+ #endif
47
+
48
+ #if defined(__NEED_suseconds_t) && !defined(__DEFINED_suseconds_t)
49
+ #include <__typedef_suseconds_t.h>
50
+ #define __DEFINED_suseconds_t
51
+ #endif
52
+
53
+ #if defined(__NEED_clockid_t) && !defined(__DEFINED_clockid_t)
54
+ #include <__typedef_clockid_t.h>
55
+ #define __DEFINED_clockid_t
56
+ #endif
57
+
58
+ #if defined(__NEED_sigset_t) && !defined(__DEFINED_sigset_t)
59
+ #include <__typedef_sigset_t.h>
60
+ #define __DEFINED_sigset_t
61
+ #endif
62
+
63
+ #if defined(__NEED_clock_t) && !defined(__DEFINED_clock_t)
64
+ #include <__typedef_clock_t.h>
65
+ #define __DEFINED_clock_t
66
+ #endif
67
+ #define __LITTLE_ENDIAN 1234
68
+ #define __BIG_ENDIAN 4321
69
+ #define __USE_TIME_BITS64 1
70
+ #include <wasi/version.h>
71
+
72
+ #if defined(__NEED_size_t) && !defined(__DEFINED_size_t)
73
+ typedef unsigned _Addr size_t;
74
+ #define __DEFINED_size_t
75
+ #endif
76
+
77
+ #if defined(__NEED_uintptr_t) && !defined(__DEFINED_uintptr_t)
78
+ typedef unsigned _Addr uintptr_t;
79
+ #define __DEFINED_uintptr_t
80
+ #endif
81
+
82
+ #if defined(__NEED_ptrdiff_t) && !defined(__DEFINED_ptrdiff_t)
83
+ typedef _Addr ptrdiff_t;
84
+ #define __DEFINED_ptrdiff_t
85
+ #endif
86
+
87
+ #if defined(__NEED_ssize_t) && !defined(__DEFINED_ssize_t)
88
+ typedef _Addr ssize_t;
89
+ #define __DEFINED_ssize_t
90
+ #endif
91
+
92
+ #if defined(__NEED_intptr_t) && !defined(__DEFINED_intptr_t)
93
+ typedef _Addr intptr_t;
94
+ #define __DEFINED_intptr_t
95
+ #endif
96
+
97
+ #if defined(__NEED_regoff_t) && !defined(__DEFINED_regoff_t)
98
+ typedef _Addr regoff_t;
99
+ #define __DEFINED_regoff_t
100
+ #endif
101
+
102
+ #if defined(__NEED_register_t) && !defined(__DEFINED_register_t)
103
+ typedef _Reg register_t;
104
+ #define __DEFINED_register_t
105
+ #endif
106
+
107
+ #ifdef __wasilibc_unmodified_upstream /* Use alternate WASI libc headers */
108
+ #if defined(__NEED_time_t) && !defined(__DEFINED_time_t)
109
+ typedef _Int64 time_t;
110
+ #define __DEFINED_time_t
111
+ #endif
112
+
113
+ #if defined(__NEED_suseconds_t) && !defined(__DEFINED_suseconds_t)
114
+ typedef _Int64 suseconds_t;
115
+ #define __DEFINED_suseconds_t
116
+ #endif
117
+
118
+ #else
119
+ #if defined(__NEED_time_t) && !defined(__DEFINED_time_t)
120
+ #include <__typedef_time_t.h>
121
+ #define __DEFINED_time_t
122
+ #endif
123
+
124
+ #if defined(__NEED_suseconds_t) && !defined(__DEFINED_suseconds_t)
125
+ #include <__typedef_suseconds_t.h>
126
+ #define __DEFINED_suseconds_t
127
+ #endif
128
+ #endif
129
+
130
+ #if defined(__NEED_int8_t) && !defined(__DEFINED_int8_t)
131
+ typedef signed char int8_t;
132
+ #define __DEFINED_int8_t
133
+ #endif
134
+
135
+ #if defined(__NEED_int16_t) && !defined(__DEFINED_int16_t)
136
+ typedef signed short int16_t;
137
+ #define __DEFINED_int16_t
138
+ #endif
139
+
140
+ #if defined(__NEED_int32_t) && !defined(__DEFINED_int32_t)
141
+ typedef signed int int32_t;
142
+ #define __DEFINED_int32_t
143
+ #endif
144
+
145
+ #if defined(__NEED_int64_t) && !defined(__DEFINED_int64_t)
146
+ typedef signed _Int64 int64_t;
147
+ #define __DEFINED_int64_t
148
+ #endif
149
+
150
+ #if defined(__NEED_intmax_t) && !defined(__DEFINED_intmax_t)
151
+ typedef signed _Int64 intmax_t;
152
+ #define __DEFINED_intmax_t
153
+ #endif
154
+
155
+ #if defined(__NEED_uint8_t) && !defined(__DEFINED_uint8_t)
156
+ typedef unsigned char uint8_t;
157
+ #define __DEFINED_uint8_t
158
+ #endif
159
+
160
+ #if defined(__NEED_uint16_t) && !defined(__DEFINED_uint16_t)
161
+ typedef unsigned short uint16_t;
162
+ #define __DEFINED_uint16_t
163
+ #endif
164
+
165
+ #if defined(__NEED_uint32_t) && !defined(__DEFINED_uint32_t)
166
+ typedef unsigned int uint32_t;
167
+ #define __DEFINED_uint32_t
168
+ #endif
169
+
170
+ #if defined(__NEED_uint64_t) && !defined(__DEFINED_uint64_t)
171
+ typedef unsigned _Int64 uint64_t;
172
+ #define __DEFINED_uint64_t
173
+ #endif
174
+
175
+ #if defined(__NEED_u_int64_t) && !defined(__DEFINED_u_int64_t)
176
+ typedef unsigned _Int64 u_int64_t;
177
+ #define __DEFINED_u_int64_t
178
+ #endif
179
+
180
+ #if defined(__NEED_uintmax_t) && !defined(__DEFINED_uintmax_t)
181
+ typedef unsigned _Int64 uintmax_t;
182
+ #define __DEFINED_uintmax_t
183
+ #endif
184
+
185
+
186
+ #if defined(__NEED_mode_t) && !defined(__DEFINED_mode_t)
187
+ typedef unsigned mode_t;
188
+ #define __DEFINED_mode_t
189
+ #endif
190
+
191
+ #if defined(__NEED_nlink_t) && !defined(__DEFINED_nlink_t)
192
+ typedef unsigned _Reg nlink_t;
193
+ #define __DEFINED_nlink_t
194
+ #endif
195
+
196
+ #if defined(__NEED_off_t) && !defined(__DEFINED_off_t)
197
+ typedef _Int64 off_t;
198
+ #define __DEFINED_off_t
199
+ #endif
200
+
201
+ #if defined(__NEED_ino_t) && !defined(__DEFINED_ino_t)
202
+ typedef unsigned _Int64 ino_t;
203
+ #define __DEFINED_ino_t
204
+ #endif
205
+
206
+ #if defined(__NEED_dev_t) && !defined(__DEFINED_dev_t)
207
+ typedef unsigned _Int64 dev_t;
208
+ #define __DEFINED_dev_t
209
+ #endif
210
+
211
+ #if defined(__NEED_blksize_t) && !defined(__DEFINED_blksize_t)
212
+ typedef long blksize_t;
213
+ #define __DEFINED_blksize_t
214
+ #endif
215
+
216
+ #if defined(__NEED_blkcnt_t) && !defined(__DEFINED_blkcnt_t)
217
+ typedef _Int64 blkcnt_t;
218
+ #define __DEFINED_blkcnt_t
219
+ #endif
220
+
221
+ #if defined(__NEED_fsblkcnt_t) && !defined(__DEFINED_fsblkcnt_t)
222
+ typedef unsigned _Int64 fsblkcnt_t;
223
+ #define __DEFINED_fsblkcnt_t
224
+ #endif
225
+
226
+ #if defined(__NEED_fsfilcnt_t) && !defined(__DEFINED_fsfilcnt_t)
227
+ typedef unsigned _Int64 fsfilcnt_t;
228
+ #define __DEFINED_fsfilcnt_t
229
+ #endif
230
+
231
+
232
+ #if defined(__NEED_wint_t) && !defined(__DEFINED_wint_t)
233
+ typedef unsigned wint_t;
234
+ #define __DEFINED_wint_t
235
+ #endif
236
+
237
+ #if defined(__NEED_wctype_t) && !defined(__DEFINED_wctype_t)
238
+ typedef unsigned long wctype_t;
239
+ #define __DEFINED_wctype_t
240
+ #endif
241
+
242
+
243
+ #if defined(__NEED_timer_t) && !defined(__DEFINED_timer_t)
244
+ typedef void * timer_t;
245
+ #define __DEFINED_timer_t
246
+ #endif
247
+
248
+ #if defined(__NEED_clockid_t) && !defined(__DEFINED_clockid_t)
249
+ typedef int clockid_t;
250
+ #define __DEFINED_clockid_t
251
+ #endif
252
+
253
+ #if defined(__NEED_clock_t) && !defined(__DEFINED_clock_t)
254
+ typedef long clock_t;
255
+ #define __DEFINED_clock_t
256
+ #endif
257
+
258
+ #ifdef __wasilibc_unmodified_upstream /* Use alternate WASI libc headers */
259
+ #if defined(__NEED_struct_timeval) && !defined(__DEFINED_struct_timeval)
260
+ struct timeval { time_t tv_sec; suseconds_t tv_usec; };
261
+ #define __DEFINED_struct_timeval
262
+ #endif
263
+
264
+ #if defined(__NEED_struct_timespec) && !defined(__DEFINED_struct_timespec)
265
+ struct timespec { time_t tv_sec; int :8*(sizeof(time_t)-sizeof(long))*(__BYTE_ORDER==4321); long tv_nsec; int :8*(sizeof(time_t)-sizeof(long))*(__BYTE_ORDER!=4321); };
266
+ #define __DEFINED_struct_timespec
267
+ #endif
268
+
269
+ #else
270
+ #include <__struct_timeval.h>
271
+ #include <__struct_timespec.h>
272
+ #endif
273
+
274
+ #if defined(__NEED_pid_t) && !defined(__DEFINED_pid_t)
275
+ typedef int pid_t;
276
+ #define __DEFINED_pid_t
277
+ #endif
278
+
279
+ #if defined(__NEED_id_t) && !defined(__DEFINED_id_t)
280
+ typedef unsigned id_t;
281
+ #define __DEFINED_id_t
282
+ #endif
283
+
284
+ #if defined(__NEED_uid_t) && !defined(__DEFINED_uid_t)
285
+ typedef unsigned uid_t;
286
+ #define __DEFINED_uid_t
287
+ #endif
288
+
289
+ #if defined(__NEED_gid_t) && !defined(__DEFINED_gid_t)
290
+ typedef unsigned gid_t;
291
+ #define __DEFINED_gid_t
292
+ #endif
293
+
294
+ #if defined(__NEED_key_t) && !defined(__DEFINED_key_t)
295
+ typedef int key_t;
296
+ #define __DEFINED_key_t
297
+ #endif
298
+
299
+ #if defined(__NEED_useconds_t) && !defined(__DEFINED_useconds_t)
300
+ typedef unsigned useconds_t;
301
+ #define __DEFINED_useconds_t
302
+ #endif
303
+
304
+
305
+ #ifdef __cplusplus
306
+ #if defined(__NEED_pthread_t) && !defined(__DEFINED_pthread_t)
307
+ typedef unsigned long pthread_t;
308
+ #define __DEFINED_pthread_t
309
+ #endif
310
+
311
+ #else
312
+ #if defined(__NEED_pthread_t) && !defined(__DEFINED_pthread_t)
313
+ typedef struct __pthread * pthread_t;
314
+ #define __DEFINED_pthread_t
315
+ #endif
316
+
317
+ #endif
318
+ #if defined(__NEED_pthread_once_t) && !defined(__DEFINED_pthread_once_t)
319
+ typedef int pthread_once_t;
320
+ #define __DEFINED_pthread_once_t
321
+ #endif
322
+
323
+ #if defined(__NEED_pthread_key_t) && !defined(__DEFINED_pthread_key_t)
324
+ typedef unsigned pthread_key_t;
325
+ #define __DEFINED_pthread_key_t
326
+ #endif
327
+
328
+ #if defined(__NEED_pthread_spinlock_t) && !defined(__DEFINED_pthread_spinlock_t)
329
+ typedef int pthread_spinlock_t;
330
+ #define __DEFINED_pthread_spinlock_t
331
+ #endif
332
+
333
+ #if defined(__NEED_pthread_mutexattr_t) && !defined(__DEFINED_pthread_mutexattr_t)
334
+ typedef struct { unsigned __attr; } pthread_mutexattr_t;
335
+ #define __DEFINED_pthread_mutexattr_t
336
+ #endif
337
+
338
+ #if defined(__NEED_pthread_condattr_t) && !defined(__DEFINED_pthread_condattr_t)
339
+ typedef struct { unsigned __attr; } pthread_condattr_t;
340
+ #define __DEFINED_pthread_condattr_t
341
+ #endif
342
+
343
+ #if defined(__NEED_pthread_barrierattr_t) && !defined(__DEFINED_pthread_barrierattr_t)
344
+ typedef struct { unsigned __attr; } pthread_barrierattr_t;
345
+ #define __DEFINED_pthread_barrierattr_t
346
+ #endif
347
+
348
+ #if defined(__NEED_pthread_rwlockattr_t) && !defined(__DEFINED_pthread_rwlockattr_t)
349
+ typedef struct { unsigned __attr[2]; } pthread_rwlockattr_t;
350
+ #define __DEFINED_pthread_rwlockattr_t
351
+ #endif
352
+
353
+
354
+ #ifdef __wasilibc_unmodified_upstream /* WASI doesn't need to define FILE as a complete type */
355
+ #if defined(__NEED_struct__IO_FILE) && !defined(__DEFINED_struct__IO_FILE)
356
+ struct _IO_FILE { char __x; };
357
+ #define __DEFINED_struct__IO_FILE
358
+ #endif
359
+
360
+ #endif
361
+ #if defined(__NEED_FILE) && !defined(__DEFINED_FILE)
362
+ typedef struct _IO_FILE FILE;
363
+ #define __DEFINED_FILE
364
+ #endif
365
+
366
+
367
+ #if defined(__NEED_va_list) && !defined(__DEFINED_va_list)
368
+ typedef __builtin_va_list va_list;
369
+ #define __DEFINED_va_list
370
+ #endif
371
+
372
+ #if defined(__NEED___isoc_va_list) && !defined(__DEFINED___isoc_va_list)
373
+ typedef __builtin_va_list __isoc_va_list;
374
+ #define __DEFINED___isoc_va_list
375
+ #endif
376
+
377
+
378
+ #if defined(__NEED_mbstate_t) && !defined(__DEFINED_mbstate_t)
379
+ typedef struct __mbstate_t { unsigned __opaque1, __opaque2; } mbstate_t;
380
+ #define __DEFINED_mbstate_t
381
+ #endif
382
+
383
+
384
+ #if defined(__NEED_locale_t) && !defined(__DEFINED_locale_t)
385
+ typedef struct __locale_struct * locale_t;
386
+ #define __DEFINED_locale_t
387
+ #endif
388
+
389
+
390
+ #if defined(__NEED_sigset_t) && !defined(__DEFINED_sigset_t)
391
+ typedef struct __sigset_t { unsigned long __bits[128/sizeof(long)]; } sigset_t;
392
+ #define __DEFINED_sigset_t
393
+ #endif
394
+
395
+
396
+ #ifdef __wasilibc_unmodified_upstream /* Use alternate WASI libc headers */
397
+ #if defined(__NEED_struct_iovec) && !defined(__DEFINED_struct_iovec)
398
+ struct iovec { void *iov_base; size_t iov_len; };
399
+ #define __DEFINED_struct_iovec
400
+ #endif
401
+
402
+ #else
403
+ #include <__struct_iovec.h>
404
+ #endif
405
+
406
+ #if defined(__NEED_struct_winsize) && !defined(__DEFINED_struct_winsize)
407
+ struct winsize { unsigned short ws_row, ws_col, ws_xpixel, ws_ypixel; };
408
+ #define __DEFINED_struct_winsize
409
+ #endif
410
+
411
+
412
+ #if defined(__NEED_socklen_t) && !defined(__DEFINED_socklen_t)
413
+ typedef unsigned socklen_t;
414
+ #define __DEFINED_socklen_t
415
+ #endif
416
+
417
+ #if defined(__NEED_sa_family_t) && !defined(__DEFINED_sa_family_t)
418
+ typedef unsigned short sa_family_t;
419
+ #define __DEFINED_sa_family_t
420
+ #endif
421
+
422
+
423
+ #if defined(__NEED_pthread_attr_t) && !defined(__DEFINED_pthread_attr_t)
424
+ typedef struct { union { int __i[sizeof(long)==8?14:9]; volatile int __vi[sizeof(long)==8?14:9]; unsigned long __s[sizeof(long)==8?7:9]; } __u; } pthread_attr_t;
425
+ #define __DEFINED_pthread_attr_t
426
+ #endif
427
+
428
+ #if defined(__NEED_pthread_mutex_t) && !defined(__DEFINED_pthread_mutex_t)
429
+ typedef struct { union { int __i[sizeof(long)==8?10:6]; volatile int __vi[sizeof(long)==8?10:6]; volatile void *volatile __p[sizeof(long)==8?5:6]; } __u; } pthread_mutex_t;
430
+ #define __DEFINED_pthread_mutex_t
431
+ #endif
432
+
433
+ #if defined(__NEED_mtx_t) && !defined(__DEFINED_mtx_t)
434
+ typedef struct { union { int __i[sizeof(long)==8?10:6]; volatile int __vi[sizeof(long)==8?10:6]; volatile void *volatile __p[sizeof(long)==8?5:6]; } __u; } mtx_t;
435
+ #define __DEFINED_mtx_t
436
+ #endif
437
+
438
+ #if defined(__NEED_pthread_cond_t) && !defined(__DEFINED_pthread_cond_t)
439
+ typedef struct { union { int __i[12]; volatile int __vi[12]; void *__p[12*sizeof(int)/sizeof(void*)]; } __u; } pthread_cond_t;
440
+ #define __DEFINED_pthread_cond_t
441
+ #endif
442
+
443
+ #if defined(__NEED_cnd_t) && !defined(__DEFINED_cnd_t)
444
+ typedef struct { union { int __i[12]; volatile int __vi[12]; void *__p[12*sizeof(int)/sizeof(void*)]; } __u; } cnd_t;
445
+ #define __DEFINED_cnd_t
446
+ #endif
447
+
448
+ #if defined(__NEED_pthread_rwlock_t) && !defined(__DEFINED_pthread_rwlock_t)
449
+ typedef struct { union { int __i[sizeof(long)==8?14:8]; volatile int __vi[sizeof(long)==8?14:8]; void *__p[sizeof(long)==8?7:8]; } __u; } pthread_rwlock_t;
450
+ #define __DEFINED_pthread_rwlock_t
451
+ #endif
452
+
453
+ #if defined(__NEED_pthread_barrier_t) && !defined(__DEFINED_pthread_barrier_t)
454
+ typedef struct { union { int __i[sizeof(long)==8?8:5]; volatile int __vi[sizeof(long)==8?8:5]; void *__p[sizeof(long)==8?4:5]; } __u; } pthread_barrier_t;
455
+ #define __DEFINED_pthread_barrier_t
456
+ #endif
457
+
458
+
459
+ #undef _Addr
460
+ #undef _Int64
461
+ #undef _Reg
@@ -0,0 +1 @@
1
+ #include <__struct_dirent.h>
@@ -0,0 +1 @@
1
+ /* Use the WASI libc fcntl implementation bits. */
@@ -0,0 +1,10 @@
1
+ #define FE_ALL_EXCEPT 0
2
+ #define FE_TONEAREST 0
3
+
4
+ typedef unsigned long fexcept_t;
5
+
6
+ typedef struct {
7
+ unsigned long __cw;
8
+ } fenv_t;
9
+
10
+ #define FE_DFL_ENV ((const fenv_t *) -1)
@@ -0,0 +1,16 @@
1
+ #define FLT_EVAL_METHOD 0
2
+
3
+ #define LDBL_TRUE_MIN 6.47517511943802511092443895822764655e-4966L
4
+ #define LDBL_MIN 3.36210314311209350626267781732175260e-4932L
5
+ #define LDBL_MAX 1.18973149535723176508575932662800702e+4932L
6
+ #define LDBL_EPSILON 1.92592994438723585305597794258492732e-34L
7
+
8
+ #define LDBL_MANT_DIG 113
9
+ #define LDBL_MIN_EXP (-16381)
10
+ #define LDBL_MAX_EXP 16384
11
+
12
+ #define LDBL_DIG 33
13
+ #define LDBL_MIN_10_EXP (-4931)
14
+ #define LDBL_MAX_10_EXP 4932
15
+
16
+ #define DECIMAL_DIG 36
@@ -0,0 +1 @@
1
+ /* Use the WASI libc ioctl implementation bits. */
@@ -0,0 +1 @@
1
+ #include <__macro_PAGESIZE.h>
@@ -0,0 +1,2 @@
1
+ #define _POSIX_V6_ILP32_OFFBIG (1)
2
+ #define _POSIX_V7_ILP32_OFFBIG (1)
@@ -0,0 +1 @@
1
+ typedef unsigned long __jmp_buf[8];
@@ -0,0 +1,40 @@
1
+ #ifdef _WASI_EMULATED_SIGNAL
2
+
3
+ #define SIGHUP 1
4
+ #define SIGINT 2
5
+ #define SIGQUIT 3
6
+ #define SIGILL 4
7
+ #define SIGTRAP 5
8
+ #define SIGABRT 6
9
+ #define SIGIOT SIGABRT
10
+ #define SIGBUS 7
11
+ #define SIGFPE 8
12
+ #define SIGKILL 9
13
+ #define SIGUSR1 10
14
+ #define SIGSEGV 11
15
+ #define SIGUSR2 12
16
+ #define SIGPIPE 13
17
+ #define SIGALRM 14
18
+ #define SIGTERM 15
19
+ #define SIGSTKFLT 16
20
+ #define SIGCHLD 17
21
+ #define SIGCONT 18
22
+ #define SIGSTOP 19
23
+ #define SIGTSTP 20
24
+ #define SIGTTIN 21
25
+ #define SIGTTOU 22
26
+ #define SIGURG 23
27
+ #define SIGXCPU 24
28
+ #define SIGXFSZ 25
29
+ #define SIGVTALRM 26
30
+ #define SIGPROF 27
31
+ #define SIGWINCH 28
32
+ #define SIGIO 29
33
+ #define SIGPOLL 29
34
+ #define SIGPWR 30
35
+ #define SIGSYS 31
36
+ #define SIGUNUSED SIGSYS
37
+
38
+ #define _NSIG 65
39
+
40
+ #endif
@@ -0,0 +1,22 @@
1
+ #ifdef __wasilibc_unmodified_upstream /* Use alternate WASI stat definition */
2
+ struct stat {
3
+ dev_t st_dev;
4
+ ino_t st_ino;
5
+ mode_t st_mode;
6
+ nlink_t st_nlink;
7
+ uid_t st_uid;
8
+ gid_t st_gid;
9
+ dev_t st_rdev;
10
+ unsigned long long __pad;
11
+ off_t st_size;
12
+ blksize_t st_blksize;
13
+ int __pad2;
14
+ blkcnt_t st_blocks;
15
+ struct timespec st_atim;
16
+ struct timespec st_mtim;
17
+ struct timespec st_ctim;
18
+ unsigned __unused[2];
19
+ };
20
+ #else
21
+ #include <__struct_stat.h>
22
+ #endif
@@ -0,0 +1,29 @@
1
+ typedef int32_t int_fast16_t;
2
+ typedef int32_t int_fast32_t;
3
+ typedef uint32_t uint_fast16_t;
4
+ typedef uint32_t uint_fast32_t;
5
+
6
+ #define INT_FAST16_MIN INT32_MIN
7
+ #define INT_FAST32_MIN INT32_MIN
8
+
9
+ #define INT_FAST16_MAX INT32_MAX
10
+ #define INT_FAST32_MAX INT32_MAX
11
+
12
+ #define UINT_FAST16_MAX UINT32_MAX
13
+ #define UINT_FAST32_MAX UINT32_MAX
14
+
15
+ #if __LONG_MAX == 0x7fffffffL
16
+ #define INTPTR_MIN INT32_MIN
17
+ #define INTPTR_MAX INT32_MAX
18
+ #define UINTPTR_MAX UINT32_MAX
19
+ #define PTRDIFF_MIN INT32_MIN
20
+ #define PTRDIFF_MAX INT32_MAX
21
+ #define SIZE_MAX UINT32_MAX
22
+ #else
23
+ #define INTPTR_MIN INT64_MIN
24
+ #define INTPTR_MAX INT64_MAX
25
+ #define UINTPTR_MAX UINT64_MAX
26
+ #define PTRDIFF_MIN INT64_MIN
27
+ #define PTRDIFF_MAX INT64_MAX
28
+ #define SIZE_MAX UINT64_MAX
29
+ #endif
@@ -0,0 +1,26 @@
1
+ #ifndef _BYTESWAP_H
2
+ #define _BYTESWAP_H
3
+
4
+ #include <features.h>
5
+ #include <stdint.h>
6
+
7
+ static __inline uint16_t __bswap_16(uint16_t __x)
8
+ {
9
+ return __x<<8 | __x>>8;
10
+ }
11
+
12
+ static __inline uint32_t __bswap_32(uint32_t __x)
13
+ {
14
+ return __x>>24 | __x>>8&0xff00 | __x<<8&0xff0000 | __x<<24;
15
+ }
16
+
17
+ static __inline uint64_t __bswap_64(uint64_t __x)
18
+ {
19
+ return __bswap_32(__x)+0ULL<<32 | __bswap_32(__x>>32);
20
+ }
21
+
22
+ #define bswap_16(x) __bswap_16(x)
23
+ #define bswap_32(x) __bswap_32(x)
24
+ #define bswap_64(x) __bswap_64(x)
25
+
26
+ #endif