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,38 @@
1
+ #ifndef __wasilibc___mode_t_h
2
+ #define __wasilibc___mode_t_h
3
+
4
+ #define S_IFMT \
5
+ (S_IFBLK | S_IFCHR | S_IFDIR | S_IFIFO | S_IFLNK | S_IFREG | S_IFSOCK)
6
+ #define S_IFBLK (0x6000)
7
+ #define S_IFCHR (0x2000)
8
+ #define S_IFDIR (0x4000)
9
+ #define S_IFLNK (0xa000)
10
+ #define S_IFREG (0x8000)
11
+ #define S_IFSOCK (0xc000)
12
+ #define S_IFIFO (0x1000)
13
+
14
+ #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
15
+ #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
16
+ #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
17
+ #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
18
+ #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
19
+ #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
20
+ #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
21
+
22
+ #define S_IXOTH (0x1)
23
+ #define S_IWOTH (0x2)
24
+ #define S_IROTH (0x4)
25
+ #define S_IRWXO (S_IXOTH | S_IWOTH | S_IROTH)
26
+ #define S_IXGRP (0x8)
27
+ #define S_IWGRP (0x10)
28
+ #define S_IRGRP (0x20)
29
+ #define S_IRWXG (S_IXGRP | S_IWGRP | S_IRGRP)
30
+ #define S_IXUSR (0x40)
31
+ #define S_IWUSR (0x80)
32
+ #define S_IRUSR (0x100)
33
+ #define S_IRWXU (S_IXUSR | S_IWUSR | S_IRUSR)
34
+ #define S_ISVTX (0x200)
35
+ #define S_ISGID (0x400)
36
+ #define S_ISUID (0x800)
37
+
38
+ #endif
@@ -0,0 +1,8 @@
1
+ #ifndef __wasilibc___seek_h
2
+ #define __wasilibc___seek_h
3
+
4
+ #define SEEK_SET 0
5
+ #define SEEK_CUR 1
6
+ #define SEEK_END 2
7
+
8
+ #endif
@@ -0,0 +1,14 @@
1
+ #ifndef __wasilibc___struct_dirent_h
2
+ #define __wasilibc___struct_dirent_h
3
+
4
+ #include <__typedef_ino_t.h>
5
+
6
+ #define _DIRENT_HAVE_D_TYPE
7
+
8
+ struct dirent {
9
+ ino_t d_ino;
10
+ unsigned char d_type;
11
+ char d_name[];
12
+ };
13
+
14
+ #endif
@@ -0,0 +1,8 @@
1
+ #ifndef __wasilibc___struct_in6_addr_h
2
+ #define __wasilibc___struct_in6_addr_h
3
+
4
+ struct in6_addr {
5
+ _Alignas(int32_t) unsigned char s6_addr[16];
6
+ };
7
+
8
+ #endif
@@ -0,0 +1,10 @@
1
+ #ifndef __wasilibc___struct_in_addr_h
2
+ #define __wasilibc___struct_in_addr_h
3
+
4
+ #include <__typedef_in_addr_t.h>
5
+
6
+ struct in_addr {
7
+ in_addr_t s_addr;
8
+ };
9
+
10
+ #endif
@@ -0,0 +1,12 @@
1
+ #ifndef __wasilibc___struct_iovec_h
2
+ #define __wasilibc___struct_iovec_h
3
+
4
+ #define __need_size_t
5
+ #include <stddef.h>
6
+
7
+ struct iovec {
8
+ void *iov_base;
9
+ size_t iov_len;
10
+ };
11
+
12
+ #endif
@@ -0,0 +1,16 @@
1
+ #ifndef __wasilibc___struct_msghdr_h
2
+ #define __wasilibc___struct_msghdr_h
3
+
4
+ #include <__typedef_socklen_t.h>
5
+
6
+ struct msghdr {
7
+ void *msg_name;
8
+ socklen_t msg_namelen;
9
+ struct iovec *msg_iov;
10
+ int msg_iovlen;
11
+ void *msg_control;
12
+ socklen_t msg_controllen;
13
+ int msg_flags;
14
+ };
15
+
16
+ #endif
@@ -0,0 +1,10 @@
1
+ #ifndef __wasilibc___struct_pollfd_h
2
+ #define __wasilibc___struct_pollfd_h
3
+
4
+ struct pollfd {
5
+ int fd;
6
+ short events;
7
+ short revents;
8
+ };
9
+
10
+ #endif
@@ -0,0 +1,12 @@
1
+ #ifndef __wasilibc___struct_rusage_h
2
+ #define __wasilibc___struct_rusage_h
3
+
4
+ #include <__struct_timeval.h>
5
+
6
+ /* TODO: Add more features here. */
7
+ struct rusage {
8
+ struct timeval ru_utime;
9
+ struct timeval ru_stime;
10
+ };
11
+
12
+ #endif
@@ -0,0 +1,11 @@
1
+ #ifndef __wasilibc___struct_sockaddr_h
2
+ #define __wasilibc___struct_sockaddr_h
3
+
4
+ #include <__typedef_sa_family_t.h>
5
+
6
+ struct sockaddr {
7
+ __attribute__((aligned(__BIGGEST_ALIGNMENT__))) sa_family_t sa_family;
8
+ char sa_data[0];
9
+ };
10
+
11
+ #endif
@@ -0,0 +1,14 @@
1
+ #ifndef __wasilibc___struct_sockaddr_in_h
2
+ #define __wasilibc___struct_sockaddr_in_h
3
+
4
+ #include <__struct_in_addr.h>
5
+ #include <__typedef_in_port_t.h>
6
+ #include <__typedef_sa_family_t.h>
7
+
8
+ struct sockaddr_in {
9
+ __attribute__((aligned(__BIGGEST_ALIGNMENT__))) sa_family_t sin_family;
10
+ in_port_t sin_port;
11
+ struct in_addr sin_addr;
12
+ };
13
+
14
+ #endif
@@ -0,0 +1,16 @@
1
+ #ifndef __wasilibc___struct_sockaddr_in6_h
2
+ #define __wasilibc___struct_sockaddr_in6_h
3
+
4
+ #include <__struct_in6_addr.h>
5
+ #include <__typedef_in_port_t.h>
6
+ #include <__typedef_sa_family_t.h>
7
+
8
+ struct sockaddr_in6 {
9
+ __attribute__((aligned(__BIGGEST_ALIGNMENT__))) sa_family_t sin6_family;
10
+ in_port_t sin6_port;
11
+ unsigned sin6_flowinfo;
12
+ struct in6_addr sin6_addr;
13
+ unsigned sin6_scope_id;
14
+ };
15
+
16
+ #endif
@@ -0,0 +1,11 @@
1
+ #ifndef __wasilibc___struct_sockaddr_storage_h
2
+ #define __wasilibc___struct_sockaddr_storage_h
3
+
4
+ #include <__typedef_sa_family_t.h>
5
+
6
+ struct sockaddr_storage {
7
+ __attribute__((aligned(__BIGGEST_ALIGNMENT__))) sa_family_t ss_family;
8
+ char __ss_data[32];
9
+ };
10
+
11
+ #endif
@@ -0,0 +1,10 @@
1
+ #ifndef __wasilibc___struct_sockaddr_un_h
2
+ #define __wasilibc___struct_sockaddr_un_h
3
+
4
+ #include <__typedef_sa_family_t.h>
5
+
6
+ struct sockaddr_un {
7
+ __attribute__((aligned(__BIGGEST_ALIGNMENT__))) sa_family_t sun_family;
8
+ };
9
+
10
+ #endif
@@ -0,0 +1,35 @@
1
+ #ifndef __wasilibc___struct_stat_h
2
+ #define __wasilibc___struct_stat_h
3
+
4
+ #include <__struct_timespec.h>
5
+ #include <__typedef_blkcnt_t.h>
6
+ #include <__typedef_blksize_t.h>
7
+ #include <__typedef_dev_t.h>
8
+ #include <__typedef_gid_t.h>
9
+ #include <__typedef_ino_t.h>
10
+ #include <__typedef_mode_t.h>
11
+ #include <__typedef_nlink_t.h>
12
+ #include <__typedef_off_t.h>
13
+ #include <__typedef_uid_t.h>
14
+
15
+ struct stat {
16
+ dev_t st_dev;
17
+ ino_t st_ino;
18
+ nlink_t st_nlink;
19
+
20
+ mode_t st_mode;
21
+ uid_t st_uid;
22
+ gid_t st_gid;
23
+ unsigned int __pad0;
24
+ dev_t st_rdev;
25
+ off_t st_size;
26
+ blksize_t st_blksize;
27
+ blkcnt_t st_blocks;
28
+
29
+ struct timespec st_atim;
30
+ struct timespec st_mtim;
31
+ struct timespec st_ctim;
32
+ long long __reserved[3];
33
+ };
34
+
35
+ #endif
@@ -0,0 +1,12 @@
1
+ #ifndef __wasilibc___struct_timespec_h
2
+ #define __wasilibc___struct_timespec_h
3
+
4
+ #include <__typedef_time_t.h>
5
+
6
+ /* As specified in POSIX. */
7
+ struct timespec {
8
+ time_t tv_sec;
9
+ long tv_nsec;
10
+ };
11
+
12
+ #endif
@@ -0,0 +1,13 @@
1
+ #ifndef __wasilibc___struct_timeval_h
2
+ #define __wasilibc___struct_timeval_h
3
+
4
+ #include <__typedef_suseconds_t.h>
5
+ #include <__typedef_time_t.h>
6
+
7
+ /* As specified in POSIX. */
8
+ struct timeval {
9
+ time_t tv_sec;
10
+ suseconds_t tv_usec;
11
+ };
12
+
13
+ #endif
@@ -0,0 +1,19 @@
1
+ #ifndef __wasilibc___struct_tm_h
2
+ #define __wasilibc___struct_tm_h
3
+
4
+ struct tm {
5
+ int tm_sec;
6
+ int tm_min;
7
+ int tm_hour;
8
+ int tm_mday;
9
+ int tm_mon;
10
+ int tm_year;
11
+ int tm_wday;
12
+ int tm_yday;
13
+ int tm_isdst;
14
+ int __tm_gmtoff;
15
+ const char *__tm_zone;
16
+ int __tm_nsec;
17
+ };
18
+
19
+ #endif
@@ -0,0 +1,13 @@
1
+ #ifndef __wasilibc___struct_tms_h
2
+ #define __wasilibc___struct_tms_h
3
+
4
+ #include <__typedef_clock_t.h>
5
+
6
+ struct tms {
7
+ clock_t tms_utime;
8
+ clock_t tms_stime;
9
+ clock_t tms_cutime;
10
+ clock_t tms_cstime;
11
+ };
12
+
13
+ #endif
@@ -0,0 +1,6 @@
1
+ #ifndef __wasilibc___typedef_DIR_h
2
+ #define __wasilibc___typedef_DIR_h
3
+
4
+ typedef struct _DIR DIR;
5
+
6
+ #endif
@@ -0,0 +1,7 @@
1
+ #ifndef __wasilibc___typedef_blkcnt_t_h
2
+ #define __wasilibc___typedef_blkcnt_t_h
3
+
4
+ /* Define these as 64-bit signed integers to support files larger than 2 GiB. */
5
+ typedef long long blkcnt_t;
6
+
7
+ #endif
@@ -0,0 +1,6 @@
1
+ #ifndef __wasilibc___typedef_blksize_t_h
2
+ #define __wasilibc___typedef_blksize_t_h
3
+
4
+ typedef long blksize_t;
5
+
6
+ #endif
@@ -0,0 +1,7 @@
1
+ #ifndef __wasilibc___typedef_clock_t_h
2
+ #define __wasilibc___typedef_clock_t_h
3
+
4
+ /* Define this as a 64-bit signed integer to avoid wraparounds. */
5
+ typedef long long clock_t;
6
+
7
+ #endif
@@ -0,0 +1,6 @@
1
+ #ifndef __wasilibc___typedef_clockid_t_h
2
+ #define __wasilibc___typedef_clockid_t_h
3
+
4
+ typedef const struct __clockid *clockid_t;
5
+
6
+ #endif
@@ -0,0 +1,7 @@
1
+ #ifndef __wasilibc___typedef_dev_t_h
2
+ #define __wasilibc___typedef_dev_t_h
3
+
4
+ /* Define these as 64-bit integers to support billions of devices. */
5
+ typedef unsigned long long dev_t;
6
+
7
+ #endif
@@ -0,0 +1,14 @@
1
+ #ifndef __wasilibc___typedef_fd_set_h
2
+ #define __wasilibc___typedef_fd_set_h
3
+
4
+ #define __need_size_t
5
+ #include <stddef.h>
6
+
7
+ #include <__macro_FD_SETSIZE.h>
8
+
9
+ typedef struct {
10
+ size_t __nfds;
11
+ int __fds[FD_SETSIZE];
12
+ } fd_set;
13
+
14
+ #endif
@@ -0,0 +1,6 @@
1
+ #ifndef __wasilibc___typedef_gid_t_h
2
+ #define __wasilibc___typedef_gid_t_h
3
+
4
+ typedef unsigned gid_t;
5
+
6
+ #endif
@@ -0,0 +1,6 @@
1
+ #ifndef __wasilibc___typedef_in_addr_t_h
2
+ #define __wasilibc___typedef_in_addr_t_h
3
+
4
+ typedef unsigned in_addr_t;
5
+
6
+ #endif
@@ -0,0 +1,6 @@
1
+ #ifndef __wasilibc___typedef_in_port_t_h
2
+ #define __wasilibc___typedef_in_port_t_h
3
+
4
+ typedef unsigned short in_port_t;
5
+
6
+ #endif
@@ -0,0 +1,7 @@
1
+ #ifndef __wasilibc___typedef_ino_t_h
2
+ #define __wasilibc___typedef_ino_t_h
3
+
4
+ /* Define these as 64-bit integers to support billions of inodes. */
5
+ typedef unsigned long long ino_t;
6
+
7
+ #endif
@@ -0,0 +1,6 @@
1
+ #ifndef __wasilibc___typedef_mode_t_h
2
+ #define __wasilibc___typedef_mode_t_h
3
+
4
+ typedef unsigned mode_t;
5
+
6
+ #endif
@@ -0,0 +1,6 @@
1
+ #ifndef __wasilibc___typedef_nfds_t_h
2
+ #define __wasilibc___typedef_nfds_t_h
3
+
4
+ typedef unsigned long nfds_t;
5
+
6
+ #endif
@@ -0,0 +1,7 @@
1
+ #ifndef __wasilibc___typedef_nlink_t_h
2
+ #define __wasilibc___typedef_nlink_t_h
3
+
4
+ /* Define these as 64-bit unsigned integers to support billions of links. */
5
+ typedef unsigned long long nlink_t;
6
+
7
+ #endif
@@ -0,0 +1,7 @@
1
+ #ifndef __wasilibc___typedef_off_t_h
2
+ #define __wasilibc___typedef_off_t_h
3
+
4
+ /* Define these as 64-bit signed integers to support files larger than 2 GiB. */
5
+ typedef long long off_t;
6
+
7
+ #endif
@@ -0,0 +1,6 @@
1
+ #ifndef __wasilibc___typedef_sa_family_t_h
2
+ #define __wasilibc___typedef_sa_family_t_h
3
+
4
+ typedef unsigned short sa_family_t;
5
+
6
+ #endif
@@ -0,0 +1,7 @@
1
+ #ifndef __wasilibc___typedef_sigset_t_h
2
+ #define __wasilibc___typedef_sigset_t_h
3
+
4
+ /* TODO: This is just a placeholder for now. Keep this in sync with musl. */
5
+ typedef unsigned char sigset_t;
6
+
7
+ #endif
@@ -0,0 +1,6 @@
1
+ #ifndef __wasilibc___typedef_socklen_t_h
2
+ #define __wasilibc___typedef_socklen_t_h
3
+
4
+ typedef unsigned socklen_t;
5
+
6
+ #endif
@@ -0,0 +1,7 @@
1
+ #ifndef __wasilibc___typedef_ssize_t_h
2
+ #define __wasilibc___typedef_ssize_t_h
3
+
4
+ /* This is defined to be the same size as size_t. */
5
+ typedef long ssize_t;
6
+
7
+ #endif
@@ -0,0 +1,8 @@
1
+ #ifndef __wasilibc___typedef_suseconds_t_h
2
+ #define __wasilibc___typedef_suseconds_t_h
3
+
4
+ /* Define this to be 64-bit as its main use is in struct timeval where the
5
+ extra space would otherwise be padding. */
6
+ typedef long long suseconds_t;
7
+
8
+ #endif
@@ -0,0 +1,7 @@
1
+ #ifndef __wasilibc___typedef_time_t_h
2
+ #define __wasilibc___typedef_time_t_h
3
+
4
+ /* Define this as a 64-bit signed integer to avoid the 2038 bug. */
5
+ typedef long long time_t;
6
+
7
+ #endif
@@ -0,0 +1,6 @@
1
+ #ifndef __wasilibc___typedef_uid_t_h
2
+ #define __wasilibc___typedef_uid_t_h
3
+
4
+ typedef unsigned uid_t;
5
+
6
+ #endif
@@ -0,0 +1,19 @@
1
+ #ifndef _ALLOCA_H
2
+ #define _ALLOCA_H
3
+
4
+ #ifdef __cplusplus
5
+ extern "C" {
6
+ #endif
7
+
8
+ #define __NEED_size_t
9
+ #include <bits/alltypes.h>
10
+
11
+ void *alloca(size_t);
12
+
13
+ #define alloca __builtin_alloca
14
+
15
+ #ifdef __cplusplus
16
+ }
17
+ #endif
18
+
19
+ #endif
@@ -0,0 +1,25 @@
1
+ #ifndef _AR_H
2
+ #define _AR_H
3
+
4
+ #ifdef __cplusplus
5
+ extern "C" {
6
+ #endif
7
+
8
+ #define ARMAG "!<arch>\n"
9
+ #define SARMAG 8
10
+ #define ARFMAG "`\n"
11
+
12
+ struct ar_hdr {
13
+ char ar_name[16];
14
+ char ar_date[12];
15
+ char ar_uid[6], ar_gid[6];
16
+ char ar_mode[8];
17
+ char ar_size[10];
18
+ char ar_fmag[2];
19
+ };
20
+
21
+ #ifdef __cplusplus
22
+ }
23
+ #endif
24
+
25
+ #endif
@@ -0,0 +1,35 @@
1
+ #ifndef _ARPA_FTP_H
2
+ #define _ARPA_FTP_H
3
+ #define PRELIM 1
4
+ #define COMPLETE 2
5
+ #define CONTINUE 3
6
+ #define TRANSIENT 4
7
+ #define ERROR 5
8
+ #define TYPE_A 1
9
+ #define TYPE_E 2
10
+ #define TYPE_I 3
11
+ #define TYPE_L 4
12
+ #define FORM_N 1
13
+ #define FORM_T 2
14
+ #define FORM_C 3
15
+ #define STRU_F 1
16
+ #define STRU_R 2
17
+ #define STRU_P 3
18
+ #define MODE_S 1
19
+ #define MODE_B 2
20
+ #define MODE_C 3
21
+ #define REC_ESC '\377'
22
+ #define REC_EOR '\001'
23
+ #define REC_EOF '\002'
24
+ #define BLK_EOR 0x80
25
+ #define BLK_EOF 0x40
26
+ #define BLK_ERRORS 0x20
27
+ #define BLK_RESTART 0x10
28
+ #define BLK_BYTECOUNT 2
29
+ #ifdef FTP_NAMES
30
+ char *modenames[] = {"0", "Stream", "Block", "Compressed" };
31
+ char *strunames[] = {"0", "File", "Record", "Page" };
32
+ char *typenames[] = {"0", "ASCII", "EBCDIC", "Image", "Local" };
33
+ char *formnames[] = {"0", "Nonprint", "Telnet", "Carriage-control" };
34
+ #endif
35
+ #endif
@@ -0,0 +1,31 @@
1
+ #ifndef _ARPA_INET_H
2
+ #define _ARPA_INET_H
3
+
4
+ #ifdef __cplusplus
5
+ extern "C" {
6
+ #endif
7
+
8
+ #include <features.h>
9
+ #include <netinet/in.h>
10
+
11
+ uint32_t htonl(uint32_t);
12
+ uint16_t htons(uint16_t);
13
+ uint32_t ntohl(uint32_t);
14
+ uint16_t ntohs(uint16_t);
15
+
16
+ in_addr_t inet_addr (const char *);
17
+ in_addr_t inet_network (const char *);
18
+ char *inet_ntoa (struct in_addr);
19
+ int inet_pton (int, const char *__restrict, void *__restrict);
20
+ const char *inet_ntop (int, const void *__restrict, char *__restrict, socklen_t);
21
+
22
+ int inet_aton (const char *, struct in_addr *);
23
+ struct in_addr inet_makeaddr(in_addr_t, in_addr_t);
24
+ in_addr_t inet_lnaof(struct in_addr);
25
+ in_addr_t inet_netof(struct in_addr);
26
+
27
+ #ifdef __cplusplus
28
+ }
29
+ #endif
30
+
31
+ #endif