nickysn
|
ba3383f7e3
+ keep also the fds for the current dirs
|
před 4 roky |
nickysn
|
d3ce008cd3
+ initial implementation of GetDir() for WASI
|
před 4 roky |
nickysn
|
0a384b0905
* enumerate preopened dirs on startup and store them in a list, accessible via global vars in the system unit
|
před 4 roky |
nickysn
|
e7a1ef962e
+ partially implemented the initial enumeration of preopened dirs
|
před 4 roky |
nickysn
|
7799cd0f80
+ implemented ParamStr and ParamCount for WASI
|
před 4 roky |
nickysn
|
0f50c85b44
* prefixed all wasi api functions with __wasi_, similar to the C header
|
před 4 roky |
nickysn
|
d5b8f6ac7a
+ added all the WASI API types and constants
|
před 4 roky |
nickysn
|
04828b22f6
* WASI API consts, types and procs moved to separate include files
|
před 4 roky |
nickysn
|
5dd7e116ce
+ added header comment with copyright and license info to the WASI system unit
|
před 4 roky |
nickysn
|
6f20e32ddd
+ added argc and argv (not yet initialized), so that unit objpas compiles
|
před 4 roky |
nickysn
|
a28eb39f4b
+ implemented WASI file close
|
před 4 roky |
nickysn
|
fb29456a0a
* fixed parameter of DebugWriteHexLongWord
|
před 4 roky |
nickysn
|
cdb74f034c
+ call InitSystemThreads in the system unit startup for WASI
|
před 4 roky |
nickysn
|
c8760b12d4
+ initial attempt for implementing do_open. Not working yet
|
před 4 roky |
nickysn
|
85ea2b9b11
+ added the WASI errno constants
|
před 4 roky |
nickysn
|
9b173ac119
+ implemented do_isdevice for WASI
|
před 4 roky |
nickysn
|
d6038c5709
+ implemented do_read for WASI
|
před 4 roky |
nickysn
|
7f60637c92
- removed the system unit startup code debug output
|
před 4 roky |
nickysn
|
204b0a777d
+ implemented system_exit for WASI
|
před 4 roky |
nickysn
|
d8f2d85474
* switch to wasi_snapshot_preview1
|
před 4 roky |
nickysn
|
8866fcbc56
- removed the FULL_RTL ifdefs, i.e. always build a full rtl
|
před 4 roky |
nickysn
|
5794afac54
+ implemented do_write for WASI. Error handling is not yet done.
|
před 4 roky |
nickysn
|
00d2f6273b
+ implemented OpenStdIO
|
před 4 roky |
nickysn
|
bc0d510ee2
+ added DebugWriteHexWord and DebugWriteHexLongWord
|
před 4 roky |
nickysn
|
ae39e3da44
+ endless loop in system_exit (for now)
|
před 4 roky |
nickysn
|
dd47111e61
+ call SysInitStdIO (empty for now) and clear InOutRes at startup
|
před 4 roky |
nickysn
|
84bf3a390e
+ init exceptions and the unicode string manager
|
před 4 roky |
nickysn
|
fe7fd69d5e
+ initialize heap in the system unit startup (but SysOSAlloc is not yet implemented)
|
před 4 roky |
nickysn
|
11ed6adf63
+ set IsConsole and IsLibrary in the wasi system unit startup
|
před 4 roky |
nickysn
|
83f3d68537
+ some system unit debug output
|
před 4 roky |