smallworld-re 1.0.3__py3-none-any.whl → 2.0.0__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 (306) hide show
  1. smallworld/analyses/__init__.py +8 -0
  2. smallworld/analyses/analysis.py +8 -67
  3. smallworld/analyses/code_coverage.py +1 -2
  4. smallworld/analyses/colorizer.py +301 -534
  5. smallworld/analyses/colorizer_def_use.py +217 -0
  6. smallworld/analyses/colorizer_summary.py +173 -83
  7. smallworld/analyses/field_detection/field_analysis.py +7 -8
  8. smallworld/analyses/field_detection/hints.py +1 -1
  9. smallworld/analyses/field_detection/malloc.py +2 -2
  10. smallworld/analyses/trace_execution.py +160 -0
  11. smallworld/analyses/trace_execution_types.py +42 -0
  12. smallworld/analyses/unstable/angr/divergence.py +1 -2
  13. smallworld/analyses/unstable/angr/model.py +5 -6
  14. smallworld/analyses/unstable/angr_nwbt.py +3 -4
  15. smallworld/analyses/unstable/code_coverage.py +2 -3
  16. smallworld/analyses/unstable/code_reachable.py +2 -3
  17. smallworld/analyses/unstable/control_flow_tracer.py +2 -3
  18. smallworld/analyses/unstable/pointer_finder.py +2 -3
  19. smallworld/analyses/unstable/utils/tui.py +71 -0
  20. smallworld/emulators/__init__.py +3 -1
  21. smallworld/emulators/angr/angr.py +30 -9
  22. smallworld/emulators/angr/machdefs/__init__.py +2 -0
  23. smallworld/emulators/angr/machdefs/aarch64.py +1 -1
  24. smallworld/emulators/angr/machdefs/amd64.py +0 -4
  25. smallworld/emulators/angr/machdefs/arm.py +0 -2
  26. smallworld/emulators/angr/machdefs/i386.py +0 -2
  27. smallworld/emulators/angr/machdefs/loongarch.py +340 -0
  28. smallworld/emulators/angr/machdefs/machdef.py +1 -8
  29. smallworld/emulators/angr/machdefs/mips.py +0 -2
  30. smallworld/emulators/angr/machdefs/mips64.py +0 -2
  31. smallworld/emulators/angr/machdefs/ppc.py +1 -2
  32. smallworld/emulators/angr/machdefs/riscv.py +8 -10
  33. smallworld/emulators/angr/machdefs/xtensa.py +7 -4
  34. smallworld/emulators/emulator.py +22 -0
  35. smallworld/emulators/ghidra/__init__.py +37 -0
  36. smallworld/emulators/ghidra/ghidra.py +513 -0
  37. smallworld/emulators/ghidra/machdefs/__init__.py +31 -0
  38. smallworld/emulators/ghidra/machdefs/aarch64.py +289 -0
  39. smallworld/emulators/ghidra/machdefs/amd64.py +185 -0
  40. smallworld/emulators/ghidra/machdefs/arm.py +370 -0
  41. smallworld/emulators/ghidra/machdefs/i386.py +109 -0
  42. smallworld/emulators/ghidra/machdefs/loongarch.py +162 -0
  43. smallworld/emulators/ghidra/machdefs/machdef.py +81 -0
  44. smallworld/emulators/ghidra/machdefs/mips.py +163 -0
  45. smallworld/emulators/ghidra/machdefs/mips64.py +186 -0
  46. smallworld/emulators/ghidra/machdefs/ppc.py +98 -0
  47. smallworld/emulators/ghidra/machdefs/riscv.py +208 -0
  48. smallworld/emulators/ghidra/machdefs/xtensa.py +21 -0
  49. smallworld/emulators/ghidra/typing.py +28 -0
  50. smallworld/emulators/hookable.py +18 -4
  51. smallworld/emulators/panda/machdefs/__init__.py +2 -2
  52. smallworld/emulators/panda/machdefs/aarch64.py +186 -11
  53. smallworld/emulators/panda/machdefs/amd64.py +103 -11
  54. smallworld/emulators/panda/machdefs/arm.py +216 -20
  55. smallworld/emulators/panda/machdefs/i386.py +30 -7
  56. smallworld/emulators/panda/machdefs/machdef.py +9 -16
  57. smallworld/emulators/panda/machdefs/mips.py +49 -5
  58. smallworld/emulators/panda/machdefs/mips64.py +57 -5
  59. smallworld/emulators/panda/machdefs/ppc.py +38 -13
  60. smallworld/emulators/panda/panda.py +146 -44
  61. smallworld/emulators/unicorn/__init__.py +2 -0
  62. smallworld/emulators/unicorn/machdefs/aarch64.py +253 -264
  63. smallworld/emulators/unicorn/machdefs/amd64.py +254 -259
  64. smallworld/emulators/unicorn/machdefs/arm.py +200 -212
  65. smallworld/emulators/unicorn/machdefs/i386.py +84 -90
  66. smallworld/emulators/unicorn/machdefs/machdef.py +2 -23
  67. smallworld/emulators/unicorn/machdefs/mips.py +127 -135
  68. smallworld/emulators/unicorn/unicorn.py +52 -13
  69. smallworld/helpers.py +4 -19
  70. smallworld/hinting/hinting.py +22 -192
  71. smallworld/hinting/hints.py +50 -18
  72. smallworld/instructions/bsid.py +8 -8
  73. smallworld/logging.py +4 -2
  74. smallworld/platforms/__init__.py +12 -0
  75. smallworld/platforms/defs/__init__.py +36 -0
  76. smallworld/platforms/defs/aarch64.py +450 -0
  77. smallworld/platforms/defs/amd64.py +463 -0
  78. smallworld/platforms/defs/arm.py +519 -0
  79. smallworld/platforms/defs/i386.py +258 -0
  80. smallworld/platforms/defs/loongarch.py +270 -0
  81. smallworld/platforms/defs/mips.py +321 -0
  82. smallworld/platforms/defs/mips64.py +313 -0
  83. smallworld/platforms/defs/platformdef.py +97 -0
  84. smallworld/platforms/defs/powerpc.py +259 -0
  85. smallworld/platforms/defs/riscv.py +257 -0
  86. smallworld/platforms/defs/xtensa.py +96 -0
  87. smallworld/{platforms.py → platforms/platforms.py} +3 -0
  88. smallworld/state/cpus/__init__.py +2 -0
  89. smallworld/state/cpus/aarch64.py +0 -9
  90. smallworld/state/cpus/amd64.py +6 -28
  91. smallworld/state/cpus/arm.py +0 -11
  92. smallworld/state/cpus/cpu.py +0 -11
  93. smallworld/state/cpus/i386.py +0 -7
  94. smallworld/state/cpus/loongarch.py +299 -0
  95. smallworld/state/cpus/mips.py +4 -47
  96. smallworld/state/cpus/mips64.py +18 -58
  97. smallworld/state/cpus/powerpc.py +2 -9
  98. smallworld/state/cpus/riscv.py +1 -11
  99. smallworld/state/cpus/xtensa.py +0 -5
  100. smallworld/state/memory/code.py +38 -2
  101. smallworld/state/memory/elf/__init__.py +5 -1
  102. smallworld/state/memory/elf/coredump/__init__.py +3 -0
  103. smallworld/state/memory/elf/coredump/coredump.py +46 -0
  104. smallworld/state/memory/elf/coredump/prstatus/__init__.py +27 -0
  105. smallworld/state/memory/elf/coredump/prstatus/aarch64.py +46 -0
  106. smallworld/state/memory/elf/coredump/prstatus/amd64.py +40 -0
  107. smallworld/state/memory/elf/coredump/prstatus/arm.py +53 -0
  108. smallworld/state/memory/elf/coredump/prstatus/i386.py +30 -0
  109. smallworld/state/memory/elf/coredump/prstatus/mips.py +55 -0
  110. smallworld/state/memory/elf/coredump/prstatus/mips64.py +57 -0
  111. smallworld/state/memory/elf/coredump/prstatus/ppc.py +82 -0
  112. smallworld/state/memory/elf/coredump/prstatus/prstatus.py +129 -0
  113. smallworld/state/memory/elf/elf.py +211 -57
  114. smallworld/state/memory/elf/register_state.py +36 -0
  115. smallworld/state/memory/elf/rela/__init__.py +2 -0
  116. smallworld/state/memory/elf/rela/aarch64.py +3 -1
  117. smallworld/state/memory/elf/rela/amd64.py +4 -2
  118. smallworld/state/memory/elf/rela/arm.py +4 -2
  119. smallworld/state/memory/elf/rela/i386.py +4 -2
  120. smallworld/state/memory/elf/rela/loongarch.py +32 -0
  121. smallworld/state/memory/elf/rela/mips.py +39 -18
  122. smallworld/state/memory/elf/rela/ppc.py +31 -14
  123. smallworld/state/memory/elf/structs.py +3 -0
  124. smallworld/state/memory/heap.py +2 -2
  125. smallworld/state/memory/memory.py +18 -0
  126. smallworld/state/memory/pe/__init__.py +3 -0
  127. smallworld/state/memory/pe/pe.py +361 -0
  128. smallworld/state/memory/pe/structs.py +60 -0
  129. smallworld/state/memory/stack/__init__.py +2 -0
  130. smallworld/state/memory/stack/loongarch.py +26 -0
  131. smallworld/state/models/__init__.py +29 -2
  132. smallworld/state/models/aarch64/__init__.py +1 -0
  133. smallworld/state/models/aarch64/systemv/__init__.py +6 -0
  134. smallworld/state/models/aarch64/systemv/c99/__init__.py +12 -0
  135. smallworld/state/models/aarch64/systemv/c99/signal.py +16 -0
  136. smallworld/state/models/aarch64/systemv/c99/stdio.py +265 -0
  137. smallworld/state/models/aarch64/systemv/c99/stdlib.py +169 -0
  138. smallworld/state/models/aarch64/systemv/c99/string.py +139 -0
  139. smallworld/state/models/aarch64/systemv/c99/time.py +61 -0
  140. smallworld/state/models/aarch64/systemv/posix/__init__.py +6 -0
  141. smallworld/state/models/aarch64/systemv/posix/libgen.py +16 -0
  142. smallworld/state/models/aarch64/systemv/posix/signal.py +157 -0
  143. smallworld/state/models/aarch64/systemv/systemv.py +80 -0
  144. smallworld/state/models/amd64/__init__.py +1 -0
  145. smallworld/state/models/amd64/systemv/__init__.py +6 -0
  146. smallworld/state/models/amd64/systemv/c99/__init__.py +12 -0
  147. smallworld/state/models/amd64/systemv/c99/signal.py +16 -0
  148. smallworld/state/models/amd64/systemv/c99/stdio.py +265 -0
  149. smallworld/state/models/amd64/systemv/c99/stdlib.py +169 -0
  150. smallworld/state/models/amd64/systemv/c99/string.py +139 -0
  151. smallworld/state/models/amd64/systemv/c99/time.py +61 -0
  152. smallworld/state/models/amd64/systemv/posix/__init__.py +6 -0
  153. smallworld/state/models/amd64/systemv/posix/libgen.py +16 -0
  154. smallworld/state/models/amd64/systemv/posix/signal.py +157 -0
  155. smallworld/state/models/amd64/systemv/systemv.py +78 -0
  156. smallworld/state/models/armel/__init__.py +1 -0
  157. smallworld/state/models/armel/systemv/__init__.py +6 -0
  158. smallworld/state/models/armel/systemv/c99/__init__.py +12 -0
  159. smallworld/state/models/armel/systemv/c99/signal.py +16 -0
  160. smallworld/state/models/armel/systemv/c99/stdio.py +265 -0
  161. smallworld/state/models/armel/systemv/c99/stdlib.py +169 -0
  162. smallworld/state/models/armel/systemv/c99/string.py +139 -0
  163. smallworld/state/models/armel/systemv/c99/time.py +61 -0
  164. smallworld/state/models/armel/systemv/posix/__init__.py +6 -0
  165. smallworld/state/models/armel/systemv/posix/libgen.py +16 -0
  166. smallworld/state/models/armel/systemv/posix/signal.py +157 -0
  167. smallworld/state/models/armel/systemv/systemv.py +82 -0
  168. smallworld/state/models/armhf/__init__.py +1 -0
  169. smallworld/state/models/armhf/systemv/__init__.py +6 -0
  170. smallworld/state/models/armhf/systemv/c99/__init__.py +12 -0
  171. smallworld/state/models/armhf/systemv/c99/signal.py +16 -0
  172. smallworld/state/models/armhf/systemv/c99/stdio.py +265 -0
  173. smallworld/state/models/armhf/systemv/c99/stdlib.py +169 -0
  174. smallworld/state/models/armhf/systemv/c99/string.py +139 -0
  175. smallworld/state/models/armhf/systemv/c99/time.py +61 -0
  176. smallworld/state/models/armhf/systemv/posix/__init__.py +6 -0
  177. smallworld/state/models/armhf/systemv/posix/libgen.py +16 -0
  178. smallworld/state/models/armhf/systemv/posix/signal.py +157 -0
  179. smallworld/state/models/armhf/systemv/systemv.py +77 -0
  180. smallworld/state/models/c99/__init__.py +12 -0
  181. smallworld/state/models/c99/fmt_print.py +915 -0
  182. smallworld/state/models/c99/fmt_scan.py +864 -0
  183. smallworld/state/models/c99/math.py +362 -0
  184. smallworld/state/models/c99/signal.py +71 -0
  185. smallworld/state/models/c99/stdio.py +1305 -0
  186. smallworld/state/models/c99/stdlib.py +595 -0
  187. smallworld/state/models/c99/string.py +674 -0
  188. smallworld/state/models/c99/time.py +340 -0
  189. smallworld/state/models/c99/utils.py +89 -0
  190. smallworld/state/models/cstd.py +759 -0
  191. smallworld/state/models/errno.py +581 -0
  192. smallworld/state/models/filedesc.py +515 -0
  193. smallworld/state/models/i386/__init__.py +1 -0
  194. smallworld/state/models/i386/systemv/__init__.py +6 -0
  195. smallworld/state/models/i386/systemv/c99/__init__.py +12 -0
  196. smallworld/state/models/i386/systemv/c99/signal.py +16 -0
  197. smallworld/state/models/i386/systemv/c99/stdio.py +265 -0
  198. smallworld/state/models/i386/systemv/c99/stdlib.py +169 -0
  199. smallworld/state/models/i386/systemv/c99/string.py +139 -0
  200. smallworld/state/models/i386/systemv/c99/time.py +61 -0
  201. smallworld/state/models/i386/systemv/posix/__init__.py +6 -0
  202. smallworld/state/models/i386/systemv/posix/libgen.py +16 -0
  203. smallworld/state/models/i386/systemv/posix/signal.py +157 -0
  204. smallworld/state/models/i386/systemv/systemv.py +71 -0
  205. smallworld/state/models/loongarch64/__init__.py +1 -0
  206. smallworld/state/models/loongarch64/systemv/__init__.py +6 -0
  207. smallworld/state/models/loongarch64/systemv/c99/__init__.py +12 -0
  208. smallworld/state/models/loongarch64/systemv/c99/signal.py +16 -0
  209. smallworld/state/models/loongarch64/systemv/c99/stdio.py +265 -0
  210. smallworld/state/models/loongarch64/systemv/c99/stdlib.py +169 -0
  211. smallworld/state/models/loongarch64/systemv/c99/string.py +139 -0
  212. smallworld/state/models/loongarch64/systemv/c99/time.py +61 -0
  213. smallworld/state/models/loongarch64/systemv/posix/__init__.py +6 -0
  214. smallworld/state/models/loongarch64/systemv/posix/libgen.py +16 -0
  215. smallworld/state/models/loongarch64/systemv/posix/signal.py +157 -0
  216. smallworld/state/models/loongarch64/systemv/systemv.py +83 -0
  217. smallworld/state/models/mips/__init__.py +1 -0
  218. smallworld/state/models/mips/systemv/__init__.py +6 -0
  219. smallworld/state/models/mips/systemv/c99/__init__.py +12 -0
  220. smallworld/state/models/mips/systemv/c99/signal.py +16 -0
  221. smallworld/state/models/mips/systemv/c99/stdio.py +265 -0
  222. smallworld/state/models/mips/systemv/c99/stdlib.py +169 -0
  223. smallworld/state/models/mips/systemv/c99/string.py +139 -0
  224. smallworld/state/models/mips/systemv/c99/time.py +61 -0
  225. smallworld/state/models/mips/systemv/posix/__init__.py +6 -0
  226. smallworld/state/models/mips/systemv/posix/libgen.py +16 -0
  227. smallworld/state/models/mips/systemv/posix/signal.py +157 -0
  228. smallworld/state/models/mips/systemv/systemv.py +78 -0
  229. smallworld/state/models/mips64/__init__.py +1 -0
  230. smallworld/state/models/mips64/systemv/__init__.py +6 -0
  231. smallworld/state/models/mips64/systemv/c99/__init__.py +12 -0
  232. smallworld/state/models/mips64/systemv/c99/signal.py +16 -0
  233. smallworld/state/models/mips64/systemv/c99/stdio.py +265 -0
  234. smallworld/state/models/mips64/systemv/c99/stdlib.py +169 -0
  235. smallworld/state/models/mips64/systemv/c99/string.py +139 -0
  236. smallworld/state/models/mips64/systemv/c99/time.py +61 -0
  237. smallworld/state/models/mips64/systemv/posix/__init__.py +6 -0
  238. smallworld/state/models/mips64/systemv/posix/libgen.py +16 -0
  239. smallworld/state/models/mips64/systemv/posix/signal.py +157 -0
  240. smallworld/state/models/mips64/systemv/systemv.py +98 -0
  241. smallworld/state/models/mips64el/__init__.py +1 -0
  242. smallworld/state/models/mips64el/systemv/__init__.py +6 -0
  243. smallworld/state/models/mips64el/systemv/c99/__init__.py +12 -0
  244. smallworld/state/models/mips64el/systemv/c99/signal.py +16 -0
  245. smallworld/state/models/mips64el/systemv/c99/stdio.py +265 -0
  246. smallworld/state/models/mips64el/systemv/c99/stdlib.py +169 -0
  247. smallworld/state/models/mips64el/systemv/c99/string.py +139 -0
  248. smallworld/state/models/mips64el/systemv/c99/time.py +61 -0
  249. smallworld/state/models/mips64el/systemv/posix/__init__.py +6 -0
  250. smallworld/state/models/mips64el/systemv/posix/libgen.py +16 -0
  251. smallworld/state/models/mips64el/systemv/posix/signal.py +157 -0
  252. smallworld/state/models/mips64el/systemv/systemv.py +96 -0
  253. smallworld/state/models/mipsel/__init__.py +1 -0
  254. smallworld/state/models/mipsel/systemv/__init__.py +6 -0
  255. smallworld/state/models/mipsel/systemv/c99/__init__.py +12 -0
  256. smallworld/state/models/mipsel/systemv/c99/signal.py +16 -0
  257. smallworld/state/models/mipsel/systemv/c99/stdio.py +265 -0
  258. smallworld/state/models/mipsel/systemv/c99/stdlib.py +169 -0
  259. smallworld/state/models/mipsel/systemv/c99/string.py +139 -0
  260. smallworld/state/models/mipsel/systemv/c99/time.py +61 -0
  261. smallworld/state/models/mipsel/systemv/posix/__init__.py +6 -0
  262. smallworld/state/models/mipsel/systemv/posix/libgen.py +16 -0
  263. smallworld/state/models/mipsel/systemv/posix/signal.py +157 -0
  264. smallworld/state/models/mipsel/systemv/systemv.py +78 -0
  265. smallworld/state/models/model.py +27 -2
  266. smallworld/state/models/posix/__init__.py +6 -0
  267. smallworld/state/models/posix/libgen.py +123 -0
  268. smallworld/state/models/posix/signal.py +690 -0
  269. smallworld/state/models/powerpc/__init__.py +1 -0
  270. smallworld/state/models/powerpc/systemv/__init__.py +6 -0
  271. smallworld/state/models/powerpc/systemv/c99/__init__.py +12 -0
  272. smallworld/state/models/powerpc/systemv/c99/signal.py +16 -0
  273. smallworld/state/models/powerpc/systemv/c99/stdio.py +265 -0
  274. smallworld/state/models/powerpc/systemv/c99/stdlib.py +169 -0
  275. smallworld/state/models/powerpc/systemv/c99/string.py +139 -0
  276. smallworld/state/models/powerpc/systemv/c99/time.py +61 -0
  277. smallworld/state/models/powerpc/systemv/posix/__init__.py +6 -0
  278. smallworld/state/models/powerpc/systemv/posix/libgen.py +16 -0
  279. smallworld/state/models/powerpc/systemv/posix/signal.py +157 -0
  280. smallworld/state/models/powerpc/systemv/systemv.py +93 -0
  281. smallworld/state/models/riscv64/__init__.py +1 -0
  282. smallworld/state/models/riscv64/systemv/__init__.py +6 -0
  283. smallworld/state/models/riscv64/systemv/c99/__init__.py +12 -0
  284. smallworld/state/models/riscv64/systemv/c99/signal.py +16 -0
  285. smallworld/state/models/riscv64/systemv/c99/stdio.py +265 -0
  286. smallworld/state/models/riscv64/systemv/c99/stdlib.py +169 -0
  287. smallworld/state/models/riscv64/systemv/c99/string.py +139 -0
  288. smallworld/state/models/riscv64/systemv/c99/time.py +61 -0
  289. smallworld/state/models/riscv64/systemv/posix/__init__.py +6 -0
  290. smallworld/state/models/riscv64/systemv/posix/libgen.py +16 -0
  291. smallworld/state/models/riscv64/systemv/posix/signal.py +157 -0
  292. smallworld/state/models/riscv64/systemv/systemv.py +85 -0
  293. smallworld/state/state.py +65 -24
  294. smallworld/state/unstable/elf.py +16 -31
  295. smallworld/utils.py +6 -1
  296. {smallworld_re-1.0.3.dist-info → smallworld_re-2.0.0.dist-info}/METADATA +74 -42
  297. smallworld_re-2.0.0.dist-info/RECORD +374 -0
  298. {smallworld_re-1.0.3.dist-info → smallworld_re-2.0.0.dist-info}/WHEEL +1 -1
  299. smallworld/state/models/x86/__init__.py +0 -2
  300. smallworld/state/models/x86/microsoftcdecl.py +0 -35
  301. smallworld/state/models/x86/systemv.py +0 -240
  302. smallworld_re-1.0.3.dist-info/RECORD +0 -166
  303. /smallworld/state/models/{posix.py → _posix.py} +0 -0
  304. {smallworld_re-1.0.3.dist-info → smallworld_re-2.0.0.dist-info}/entry_points.txt +0 -0
  305. {smallworld_re-1.0.3.dist-info → smallworld_re-2.0.0.dist-info}/licenses/LICENSE.txt +0 -0
  306. {smallworld_re-1.0.3.dist-info → smallworld_re-2.0.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,265 @@
1
+ from ....c99 import (
2
+ Clearerr,
3
+ Fclose,
4
+ Feof,
5
+ Ferror,
6
+ Fflush,
7
+ Fgetc,
8
+ Fgetpos,
9
+ Fgets,
10
+ Fopen,
11
+ Fprintf,
12
+ Fputc,
13
+ Fputs,
14
+ Fread,
15
+ Freopen,
16
+ Fscanf,
17
+ Fseek,
18
+ Fsetpos,
19
+ Ftell,
20
+ Fwrite,
21
+ Getc,
22
+ Getchar,
23
+ Gets,
24
+ Printf,
25
+ Putc,
26
+ Putchar,
27
+ Puts,
28
+ Remove,
29
+ Rename,
30
+ Rewind,
31
+ Scanf,
32
+ Snprintf,
33
+ Sprintf,
34
+ Sscanf,
35
+ Tmpfile,
36
+ Tmpnam,
37
+ Ungetc,
38
+ Vfprintf,
39
+ Vfscanf,
40
+ Vprintf,
41
+ Vscanf,
42
+ Vsnprintf,
43
+ Vsprintf,
44
+ Vsscanf,
45
+ )
46
+ from ..systemv import MIPS64ELSysVModel
47
+
48
+
49
+ class MIPS64ELSysVFclose(Fclose, MIPS64ELSysVModel):
50
+ pass
51
+
52
+
53
+ class MIPS64ELSysVFeof(Feof, MIPS64ELSysVModel):
54
+ pass
55
+
56
+
57
+ class MIPS64ELSysVFerror(Ferror, MIPS64ELSysVModel):
58
+ pass
59
+
60
+
61
+ class MIPS64ELSysVFgetc(Fgetc, MIPS64ELSysVModel):
62
+ pass
63
+
64
+
65
+ class MIPS64ELSysVFgets(Fgets, MIPS64ELSysVModel):
66
+ pass
67
+
68
+
69
+ class MIPS64ELSysVFopen(Fopen, MIPS64ELSysVModel):
70
+ pass
71
+
72
+
73
+ class MIPS64ELSysVFprintf(Fprintf, MIPS64ELSysVModel):
74
+ pass
75
+
76
+
77
+ class MIPS64ELSysVFputc(Fputc, MIPS64ELSysVModel):
78
+ pass
79
+
80
+
81
+ class MIPS64ELSysVFputs(Fputs, MIPS64ELSysVModel):
82
+ pass
83
+
84
+
85
+ class MIPS64ELSysVFread(Fread, MIPS64ELSysVModel):
86
+ pass
87
+
88
+
89
+ class MIPS64ELSysVFscanf(Fscanf, MIPS64ELSysVModel):
90
+ pass
91
+
92
+
93
+ class MIPS64ELSysVFseek(Fseek, MIPS64ELSysVModel):
94
+ pass
95
+
96
+
97
+ class MIPS64ELSysVFtell(Ftell, MIPS64ELSysVModel):
98
+ pass
99
+
100
+
101
+ class MIPS64ELSysVFwrite(Fwrite, MIPS64ELSysVModel):
102
+ pass
103
+
104
+
105
+ class MIPS64ELSysVGetc(Getc, MIPS64ELSysVModel):
106
+ pass
107
+
108
+
109
+ class MIPS64ELSysVGetchar(Getchar, MIPS64ELSysVModel):
110
+ pass
111
+
112
+
113
+ class MIPS64ELSysVGets(Gets, MIPS64ELSysVModel):
114
+ pass
115
+
116
+
117
+ class MIPS64ELSysVPrintf(Printf, MIPS64ELSysVModel):
118
+ pass
119
+
120
+
121
+ class MIPS64ELSysVPutc(Putc, MIPS64ELSysVModel):
122
+ pass
123
+
124
+
125
+ class MIPS64ELSysVPutchar(Putchar, MIPS64ELSysVModel):
126
+ pass
127
+
128
+
129
+ class MIPS64ELSysVPuts(Puts, MIPS64ELSysVModel):
130
+ pass
131
+
132
+
133
+ class MIPS64ELSysVRemove(Remove, MIPS64ELSysVModel):
134
+ pass
135
+
136
+
137
+ class MIPS64ELSysVRename(Rename, MIPS64ELSysVModel):
138
+ pass
139
+
140
+
141
+ class MIPS64ELSysVRewind(Rewind, MIPS64ELSysVModel):
142
+ pass
143
+
144
+
145
+ class MIPS64ELSysVScanf(Scanf, MIPS64ELSysVModel):
146
+ pass
147
+
148
+
149
+ class MIPS64ELSysVSnprintf(Snprintf, MIPS64ELSysVModel):
150
+ pass
151
+
152
+
153
+ class MIPS64ELSysVSprintf(Sprintf, MIPS64ELSysVModel):
154
+ pass
155
+
156
+
157
+ class MIPS64ELSysVSscanf(Sscanf, MIPS64ELSysVModel):
158
+ pass
159
+
160
+
161
+ class MIPS64ELSysVClearerr(Clearerr, MIPS64ELSysVModel):
162
+ pass
163
+
164
+
165
+ class MIPS64ELSysVFflush(Fflush, MIPS64ELSysVModel):
166
+ pass
167
+
168
+
169
+ class MIPS64ELSysVFreopen(Freopen, MIPS64ELSysVModel):
170
+ pass
171
+
172
+
173
+ class MIPS64ELSysVFgetpos(Fgetpos, MIPS64ELSysVModel):
174
+ pass
175
+
176
+
177
+ class MIPS64ELSysVFsetpos(Fsetpos, MIPS64ELSysVModel):
178
+ pass
179
+
180
+
181
+ class MIPS64ELSysVTmpfile(Tmpfile, MIPS64ELSysVModel):
182
+ pass
183
+
184
+
185
+ class MIPS64ELSysVTmpnam(Tmpnam, MIPS64ELSysVModel):
186
+ pass
187
+
188
+
189
+ class MIPS64ELSysVUngetc(Ungetc, MIPS64ELSysVModel):
190
+ pass
191
+
192
+
193
+ class MIPS64ELSysVVfprintf(Vfprintf, MIPS64ELSysVModel):
194
+ pass
195
+
196
+
197
+ class MIPS64ELSysVVfscanf(Vfscanf, MIPS64ELSysVModel):
198
+ pass
199
+
200
+
201
+ class MIPS64ELSysVVprintf(Vprintf, MIPS64ELSysVModel):
202
+ pass
203
+
204
+
205
+ class MIPS64ELSysVVscanf(Vscanf, MIPS64ELSysVModel):
206
+ pass
207
+
208
+
209
+ class MIPS64ELSysVVsnprintf(Vsnprintf, MIPS64ELSysVModel):
210
+ pass
211
+
212
+
213
+ class MIPS64ELSysVVsprintf(Vsprintf, MIPS64ELSysVModel):
214
+ pass
215
+
216
+
217
+ class MIPS64ELSysVVsscanf(Vsscanf, MIPS64ELSysVModel):
218
+ pass
219
+
220
+
221
+ __all__ = [
222
+ "MIPS64ELSysVFclose",
223
+ "MIPS64ELSysVFeof",
224
+ "MIPS64ELSysVFerror",
225
+ "MIPS64ELSysVFgetc",
226
+ "MIPS64ELSysVFgets",
227
+ "MIPS64ELSysVFopen",
228
+ "MIPS64ELSysVFprintf",
229
+ "MIPS64ELSysVFputc",
230
+ "MIPS64ELSysVFputs",
231
+ "MIPS64ELSysVFread",
232
+ "MIPS64ELSysVFscanf",
233
+ "MIPS64ELSysVFseek",
234
+ "MIPS64ELSysVFtell",
235
+ "MIPS64ELSysVFwrite",
236
+ "MIPS64ELSysVGetc",
237
+ "MIPS64ELSysVGetchar",
238
+ "MIPS64ELSysVGets",
239
+ "MIPS64ELSysVPrintf",
240
+ "MIPS64ELSysVPutc",
241
+ "MIPS64ELSysVPutchar",
242
+ "MIPS64ELSysVPuts",
243
+ "MIPS64ELSysVRemove",
244
+ "MIPS64ELSysVRename",
245
+ "MIPS64ELSysVRewind",
246
+ "MIPS64ELSysVScanf",
247
+ "MIPS64ELSysVSnprintf",
248
+ "MIPS64ELSysVSprintf",
249
+ "MIPS64ELSysVSscanf",
250
+ "MIPS64ELSysVClearerr",
251
+ "MIPS64ELSysVFflush",
252
+ "MIPS64ELSysVFreopen",
253
+ "MIPS64ELSysVFgetpos",
254
+ "MIPS64ELSysVFsetpos",
255
+ "MIPS64ELSysVTmpfile",
256
+ "MIPS64ELSysVTmpnam",
257
+ "MIPS64ELSysVUngetc",
258
+ "MIPS64ELSysVVfprintf",
259
+ "MIPS64ELSysVVfscanf",
260
+ "MIPS64ELSysVVprintf",
261
+ "MIPS64ELSysVVscanf",
262
+ "MIPS64ELSysVVsnprintf",
263
+ "MIPS64ELSysVVsprintf",
264
+ "MIPS64ELSysVVsscanf",
265
+ ]
@@ -0,0 +1,169 @@
1
+ from ....c99 import (
2
+ Abort,
3
+ Abs,
4
+ Atexit,
5
+ Atof,
6
+ Atoi,
7
+ Atol,
8
+ Atoll,
9
+ Calloc,
10
+ Div,
11
+ Exit,
12
+ Free,
13
+ Getenv,
14
+ LAbs,
15
+ LDiv,
16
+ LLAbs,
17
+ LLDiv,
18
+ Malloc,
19
+ Mblen,
20
+ Mbstowcs,
21
+ Mbtowc,
22
+ QSort,
23
+ Rand,
24
+ Realloc,
25
+ Srand,
26
+ System,
27
+ Wcstombs,
28
+ Wctomb,
29
+ )
30
+ from ..systemv import MIPS64ELSysVModel
31
+
32
+
33
+ class MIPS64ELSysVAbs(Abs, MIPS64ELSysVModel):
34
+ pass
35
+
36
+
37
+ class MIPS64ELSysVLAbs(LAbs, MIPS64ELSysVModel):
38
+ pass
39
+
40
+
41
+ class MIPS64ELSysVLLAbs(LLAbs, MIPS64ELSysVModel):
42
+ pass
43
+
44
+
45
+ class MIPS64ELSysVAtof(Atof, MIPS64ELSysVModel):
46
+ pass
47
+
48
+
49
+ class MIPS64ELSysVAtoi(Atoi, MIPS64ELSysVModel):
50
+ pass
51
+
52
+
53
+ class MIPS64ELSysVAtol(Atol, MIPS64ELSysVModel):
54
+ pass
55
+
56
+
57
+ class MIPS64ELSysVAtoll(Atoll, MIPS64ELSysVModel):
58
+ pass
59
+
60
+
61
+ class MIPS64ELSysVCalloc(Calloc, MIPS64ELSysVModel):
62
+ pass
63
+
64
+
65
+ class MIPS64ELSysVDiv(Div, MIPS64ELSysVModel):
66
+ pass
67
+
68
+
69
+ class MIPS64ELSysVLDiv(LDiv, MIPS64ELSysVModel):
70
+ pass
71
+
72
+
73
+ class MIPS64ELSysVLLDiv(LLDiv, MIPS64ELSysVModel):
74
+ pass
75
+
76
+
77
+ class MIPS64ELSysVExit(Exit, MIPS64ELSysVModel):
78
+ pass
79
+
80
+
81
+ class MIPS64ELSysVFree(Free, MIPS64ELSysVModel):
82
+ pass
83
+
84
+
85
+ class MIPS64ELSysVMalloc(Malloc, MIPS64ELSysVModel):
86
+ pass
87
+
88
+
89
+ class MIPS64ELSysVQSort(QSort, MIPS64ELSysVModel):
90
+ pass
91
+
92
+
93
+ class MIPS64ELSysVRand(Rand, MIPS64ELSysVModel):
94
+ pass
95
+
96
+
97
+ class MIPS64ELSysVRealloc(Realloc, MIPS64ELSysVModel):
98
+ pass
99
+
100
+
101
+ class MIPS64ELSysVSrand(Srand, MIPS64ELSysVModel):
102
+ pass
103
+
104
+
105
+ class MIPS64ELSysVAbort(Abort, MIPS64ELSysVModel):
106
+ pass
107
+
108
+
109
+ class MIPS64ELSysVAtexit(Atexit, MIPS64ELSysVModel):
110
+ pass
111
+
112
+
113
+ class MIPS64ELSysVGetenv(Getenv, MIPS64ELSysVModel):
114
+ pass
115
+
116
+
117
+ class MIPS64ELSysVMblen(Mblen, MIPS64ELSysVModel):
118
+ pass
119
+
120
+
121
+ class MIPS64ELSysVMbstowcs(Mbstowcs, MIPS64ELSysVModel):
122
+ pass
123
+
124
+
125
+ class MIPS64ELSysVMbtowc(Mbtowc, MIPS64ELSysVModel):
126
+ pass
127
+
128
+
129
+ class MIPS64ELSysVSystem(System, MIPS64ELSysVModel):
130
+ pass
131
+
132
+
133
+ class MIPS64ELSysVWcstombs(Wcstombs, MIPS64ELSysVModel):
134
+ pass
135
+
136
+
137
+ class MIPS64ELSysVWctomb(Wctomb, MIPS64ELSysVModel):
138
+ pass
139
+
140
+
141
+ __all__ = [
142
+ "MIPS64ELSysVAbs",
143
+ "MIPS64ELSysVLAbs",
144
+ "MIPS64ELSysVLLAbs",
145
+ "MIPS64ELSysVAtof",
146
+ "MIPS64ELSysVAtoi",
147
+ "MIPS64ELSysVAtol",
148
+ "MIPS64ELSysVAtoll",
149
+ "MIPS64ELSysVCalloc",
150
+ "MIPS64ELSysVDiv",
151
+ "MIPS64ELSysVLDiv",
152
+ "MIPS64ELSysVLLDiv",
153
+ "MIPS64ELSysVExit",
154
+ "MIPS64ELSysVFree",
155
+ "MIPS64ELSysVMalloc",
156
+ "MIPS64ELSysVQSort",
157
+ "MIPS64ELSysVRand",
158
+ "MIPS64ELSysVRealloc",
159
+ "MIPS64ELSysVSrand",
160
+ "MIPS64ELSysVAbort",
161
+ "MIPS64ELSysVAtexit",
162
+ "MIPS64ELSysVGetenv",
163
+ "MIPS64ELSysVMblen",
164
+ "MIPS64ELSysVMbstowcs",
165
+ "MIPS64ELSysVMbtowc",
166
+ "MIPS64ELSysVSystem",
167
+ "MIPS64ELSysVWcstombs",
168
+ "MIPS64ELSysVWctomb",
169
+ ]
@@ -0,0 +1,139 @@
1
+ from ....c99 import (
2
+ Memchr,
3
+ Memcmp,
4
+ Memcpy,
5
+ Memmove,
6
+ Memset,
7
+ Strcat,
8
+ Strchr,
9
+ Strcmp,
10
+ Strcoll,
11
+ Strcpy,
12
+ Strcspn,
13
+ Strerror,
14
+ Strlen,
15
+ Strncat,
16
+ Strncmp,
17
+ Strncpy,
18
+ Strpbrk,
19
+ Strrchr,
20
+ Strspn,
21
+ Strstr,
22
+ Strtok,
23
+ Strxfrm,
24
+ )
25
+ from ..systemv import MIPS64ELSysVModel
26
+
27
+
28
+ class MIPS64ELSysVMemcpy(Memcpy, MIPS64ELSysVModel):
29
+ pass
30
+
31
+
32
+ class MIPS64ELSysVMemmove(Memmove, MIPS64ELSysVModel):
33
+ pass
34
+
35
+
36
+ class MIPS64ELSysVStrcpy(Strcpy, MIPS64ELSysVModel):
37
+ pass
38
+
39
+
40
+ class MIPS64ELSysVStrncpy(Strncpy, MIPS64ELSysVModel):
41
+ pass
42
+
43
+
44
+ class MIPS64ELSysVStrcat(Strcat, MIPS64ELSysVModel):
45
+ pass
46
+
47
+
48
+ class MIPS64ELSysVStrncat(Strncat, MIPS64ELSysVModel):
49
+ pass
50
+
51
+
52
+ class MIPS64ELSysVMemcmp(Memcmp, MIPS64ELSysVModel):
53
+ pass
54
+
55
+
56
+ class MIPS64ELSysVStrncmp(Strncmp, MIPS64ELSysVModel):
57
+ pass
58
+
59
+
60
+ class MIPS64ELSysVStrcmp(Strcmp, MIPS64ELSysVModel):
61
+ pass
62
+
63
+
64
+ class MIPS64ELSysVStrcoll(Strcoll, MIPS64ELSysVModel):
65
+ pass
66
+
67
+
68
+ class MIPS64ELSysVStrxfrm(Strxfrm, MIPS64ELSysVModel):
69
+ pass
70
+
71
+
72
+ class MIPS64ELSysVMemchr(Memchr, MIPS64ELSysVModel):
73
+ pass
74
+
75
+
76
+ class MIPS64ELSysVStrchr(Strchr, MIPS64ELSysVModel):
77
+ pass
78
+
79
+
80
+ class MIPS64ELSysVStrcspn(Strcspn, MIPS64ELSysVModel):
81
+ pass
82
+
83
+
84
+ class MIPS64ELSysVStrpbrk(Strpbrk, MIPS64ELSysVModel):
85
+ pass
86
+
87
+
88
+ class MIPS64ELSysVStrrchr(Strrchr, MIPS64ELSysVModel):
89
+ pass
90
+
91
+
92
+ class MIPS64ELSysVStrspn(Strspn, MIPS64ELSysVModel):
93
+ pass
94
+
95
+
96
+ class MIPS64ELSysVStrstr(Strstr, MIPS64ELSysVModel):
97
+ pass
98
+
99
+
100
+ class MIPS64ELSysVStrtok(Strtok, MIPS64ELSysVModel):
101
+ pass
102
+
103
+
104
+ class MIPS64ELSysVMemset(Memset, MIPS64ELSysVModel):
105
+ pass
106
+
107
+
108
+ class MIPS64ELSysVStrerror(Strerror, MIPS64ELSysVModel):
109
+ pass
110
+
111
+
112
+ class MIPS64ELSysVStrlen(Strlen, MIPS64ELSysVModel):
113
+ pass
114
+
115
+
116
+ __all__ = [
117
+ "MIPS64ELSysVMemcpy",
118
+ "MIPS64ELSysVMemmove",
119
+ "MIPS64ELSysVStrcpy",
120
+ "MIPS64ELSysVStrncpy",
121
+ "MIPS64ELSysVStrcat",
122
+ "MIPS64ELSysVStrncat",
123
+ "MIPS64ELSysVMemcmp",
124
+ "MIPS64ELSysVStrncmp",
125
+ "MIPS64ELSysVStrcmp",
126
+ "MIPS64ELSysVStrcoll",
127
+ "MIPS64ELSysVStrxfrm",
128
+ "MIPS64ELSysVMemchr",
129
+ "MIPS64ELSysVStrchr",
130
+ "MIPS64ELSysVStrcspn",
131
+ "MIPS64ELSysVStrpbrk",
132
+ "MIPS64ELSysVStrrchr",
133
+ "MIPS64ELSysVStrspn",
134
+ "MIPS64ELSysVStrstr",
135
+ "MIPS64ELSysVStrtok",
136
+ "MIPS64ELSysVMemset",
137
+ "MIPS64ELSysVStrerror",
138
+ "MIPS64ELSysVStrlen",
139
+ ]
@@ -0,0 +1,61 @@
1
+ from ....c99 import (
2
+ Asctime,
3
+ Clock,
4
+ Ctime,
5
+ Difftime,
6
+ Gmtime,
7
+ Localtime,
8
+ Mktime,
9
+ Strftime,
10
+ Time,
11
+ )
12
+ from ..systemv import MIPS64ELSysVModel
13
+
14
+
15
+ class MIPS64ELSysVTime(Time, MIPS64ELSysVModel):
16
+ pass
17
+
18
+
19
+ class MIPS64ELSysVLocaltime(Localtime, MIPS64ELSysVModel):
20
+ pass
21
+
22
+
23
+ class MIPS64ELSysVGmtime(Gmtime, MIPS64ELSysVModel):
24
+ pass
25
+
26
+
27
+ class MIPS64ELSysVCtime(Ctime, MIPS64ELSysVModel):
28
+ pass
29
+
30
+
31
+ class MIPS64ELSysVAsctime(Asctime, MIPS64ELSysVModel):
32
+ pass
33
+
34
+
35
+ class MIPS64ELSysVStrftime(Strftime, MIPS64ELSysVModel):
36
+ pass
37
+
38
+
39
+ class MIPS64ELSysVDifftime(Difftime, MIPS64ELSysVModel):
40
+ pass
41
+
42
+
43
+ class MIPS64ELSysVMktime(Mktime, MIPS64ELSysVModel):
44
+ pass
45
+
46
+
47
+ class MIPS64ELSysVClock(Clock, MIPS64ELSysVModel):
48
+ pass
49
+
50
+
51
+ __all__ = [
52
+ "MIPS64ELSysVTime",
53
+ "MIPS64ELSysVLocaltime",
54
+ "MIPS64ELSysVGmtime",
55
+ "MIPS64ELSysVCtime",
56
+ "MIPS64ELSysVAsctime",
57
+ "MIPS64ELSysVStrftime",
58
+ "MIPS64ELSysVDifftime",
59
+ "MIPS64ELSysVMktime",
60
+ "MIPS64ELSysVClock",
61
+ ]
@@ -0,0 +1,6 @@
1
+ from .libgen import * # noqa: F401, F403
2
+ from .libgen import __all__ as __libgen__
3
+ from .signal import * # noqa: F401, F403
4
+ from .signal import __all__ as __signal__
5
+
6
+ __all__ = __libgen__ + __signal__
@@ -0,0 +1,16 @@
1
+ from ....posix.libgen import Basename, Dirname
2
+ from ..systemv import MIPS64ELSysVModel
3
+
4
+
5
+ class MIPS64ELSysVBasename(Basename, MIPS64ELSysVModel):
6
+ pass
7
+
8
+
9
+ class MIPS64ELSysVDirname(Dirname, MIPS64ELSysVModel):
10
+ pass
11
+
12
+
13
+ __all__ = [
14
+ "MIPS64ELSysVBasename",
15
+ "MIPS64ELSysVDirname",
16
+ ]