nickysn
5eac35664f
+ started working on DOS.FindFirst
...
git-svn-id: trunk@49555 -
2021-06-24 01:35:24 +00:00
nickysn
433050a2c4
* set EXEEXT to .wasm for the WASI target in fpcmake
...
git-svn-id: trunk@49552 -
2021-06-24 00:16:00 +00:00
nickysn
afb9c2ae94
+ implemented environment variables support in the DOS unit for the WASI target
...
git-svn-id: trunk@49551 -
2021-06-23 23:15:15 +00:00
nickysn
c275c3c7f2
+ implemented Randomize
...
git-svn-id: trunk@49550 -
2021-06-23 22:11:11 +00:00
nickysn
4240279a84
+ always request pollfd_readwrite rights, when opening a file
...
git-svn-id: trunk@49549 -
2021-06-23 21:48:10 +00:00
nickysn
ca3f1d7b6d
+ always request FD_ADVISE rights, when opening a file
...
git-svn-id: trunk@49548 -
2021-06-23 21:45:52 +00:00
nickysn
5ff2af5176
+ always request FD_FDSTAT_SET_FLAGS rights
...
git-svn-id: trunk@49547 -
2021-06-23 21:44:19 +00:00
nickysn
90eb1351dc
+ request FD_DATASYNC and FD_SYNC rights when a file is opened for writing
...
git-svn-id: trunk@49546 -
2021-06-23 21:42:49 +00:00
nickysn
67c1520928
* changed the formatting of the setting of fs_rights_base in Do_Open. No functional changes.
...
git-svn-id: trunk@49545 -
2021-06-23 21:41:12 +00:00
nickysn
9efcd4e554
+ request fd_allocate rights when opening a file for writing
...
git-svn-id: trunk@49544 -
2021-06-23 21:39:10 +00:00
nickysn
3fd6704582
+ request the rights to set size (truncate) and set times, when a file is opened for writing
...
git-svn-id: trunk@49543 -
2021-06-23 21:36:22 +00:00
nickysn
a5309a5d0c
+ request fd_seek and fd_tell rights when opening a file
...
git-svn-id: trunk@49542 -
2021-06-23 21:31:55 +00:00
nickysn
720068360e
+ workaround for newer wasmtime versions that don't report the fd type of
...
stdin/stdout/stderr. Always assume handles 0..2 are a device, so that
standard input and output are flushed.
git-svn-id: trunk@49541 -
2021-06-23 21:22:15 +00:00
nickysn
827f543289
* fixed date calculation in WasiDateToDT
...
git-svn-id: trunk@49540 -
2021-06-23 21:01:30 +00:00
nickysn
c48f27225e
+ request the FD_FILESTAT_GET capability when opening files
...
git-svn-id: trunk@49539 -
2021-06-23 20:58:10 +00:00
nickysn
25a9843ea4
* also set doserror to 5 for access denied in dos.getfattr
...
git-svn-id: trunk@49538 -
2021-06-23 20:57:50 +00:00
nickysn
953893267b
+ initial WASI implementation of DOS.GetFTime. Not working yet, due to a
...
compiler bug, related to the import of fd_filestat_get from the wasiapi unit.
git-svn-id: trunk@49536 -
2021-06-23 20:04:03 +00:00
nickysn
ba1dcfc6a4
+ also resolve absolute paths in ConvertToFdRelativePath
...
git-svn-id: trunk@49535 -
2021-06-23 15:44:17 +00:00
nickysn
125dbdc21c
+ implemented Do_Rename for the WASI target
...
git-svn-id: trunk@49532 -
2021-06-23 00:30:47 +00:00
nickysn
539ea53bab
+ implemented Do_Seek and Do_Seekend for the WASI target
...
git-svn-id: trunk@49531 -
2021-06-23 00:20:48 +00:00
nickysn
17fac45ddc
+ implemented Do_FileSize for the WASI target
...
git-svn-id: trunk@49530 -
2021-06-23 00:12:22 +00:00
nickysn
5718b33dd8
+ implemented Do_FilePos for the WASI target
...
git-svn-id: trunk@49529 -
2021-06-23 00:03:44 +00:00
nickysn
5ee902800c
+ implemented do_truncate for the WASI target
...
git-svn-id: trunk@49528 -
2021-06-22 23:57:39 +00:00
nickysn
a7b3747b7b
+ implemented Erase() for the WASI target
...
git-svn-id: trunk@49527 -
2021-06-22 23:52:22 +00:00
nickysn
0af333bd0f
+ implemented RmDir for the WASI target
...
git-svn-id: trunk@49526 -
2021-06-22 23:36:30 +00:00
nickysn
144d7ed978
+ implemented MkDir for the WASI target
...
git-svn-id: trunk@49525 -
2021-06-22 23:33:54 +00:00
nickysn
bc08af99b0
+ initial implementation of resolving relative paths
...
git-svn-id: trunk@49524 -
2021-06-22 23:14:33 +00:00
nickysn
ba3383f7e3
+ keep also the fds for the current dirs
...
git-svn-id: trunk@49523 -
2021-06-22 22:44:20 +00:00
nickysn
d3ce008cd3
+ initial implementation of GetDir() for WASI
...
git-svn-id: trunk@49522 -
2021-06-22 22:35:32 +00:00
nickysn
0a384b0905
* enumerate preopened dirs on startup and store them in a list, accessible via global vars in the system unit
...
git-svn-id: trunk@49521 -
2021-06-22 20:51:19 +00:00
florian
c193551980
* HaltProc does not return
...
git-svn-id: trunk@49504 -
2021-06-15 19:34:39 +00:00
florian
4e159b3d45
* set no result in NoBeginThread, it never returns
...
git-svn-id: trunk@49502 -
2021-06-14 21:32:35 +00:00
florian
2e086a2570
+ skeleton of an embedded thread manager
...
git-svn-id: trunk@49501 -
2021-06-14 21:24:18 +00:00
svenbarth
2b3edb2c53
* in the default exception handler add the captured exception to the exception object stack as well
...
+ added test (needs to work with any exception handling mechanism; currently tested with SetJmp/LongJmp, SEH 32-bit and SEH 64-bit based exception handling)
git-svn-id: trunk@49486 -
2021-06-06 17:06:24 +00:00
marco
c8be89c7fa
* fix from Sebastian Hellwig for writeunicodestring bytes number, mantis 0038963
...
git-svn-id: trunk@49478 -
2021-06-05 15:42:34 +00:00
nickysn
e00dca1448
+ enabled compilation of unit extpas for the WASI target
...
git-svn-id: trunk@49455 -
2021-06-01 22:43:01 +00:00
nickysn
e830ed6cbc
+ compile the unit dos (OS-specific functions are dummies for now) for the WASI target
...
git-svn-id: trunk@49454 -
2021-06-01 22:38:54 +00:00
nickysn
de7ebe219c
+ enabled compilation of unit uuchar for the WASI platform
...
git-svn-id: trunk@49453 -
2021-06-01 22:22:45 +00:00
nickysn
fa7444a0d8
+ enabled compilation of unit classes for the WASI target
...
git-svn-id: trunk@49452 -
2021-06-01 22:16:16 +00:00
nickysn
c69649782a
+ added tthread.inc rtl include file for WASI
...
git-svn-id: trunk@49450 -
2021-06-01 21:58:02 +00:00
nickysn
84b3036574
+ added classes unit for the WASI target (not yet enabled in the makefiles)
...
git-svn-id: trunk@49446 -
2021-06-01 20:32:10 +00:00
nickysn
9bebe9bcb7
+ enabled compilation of unit fpwidestring for the WASI target
...
git-svn-id: trunk@49445 -
2021-06-01 20:19:16 +00:00
nickysn
3d56f75ba7
+ enabled compilation of units unicodedata and unicodenumtable for the WASI target
...
* fixed the dependencies of unit character
git-svn-id: trunk@49444 -
2021-06-01 20:14:58 +00:00
nickysn
d6fc3129b3
+ enabled compilation of unit character for the WASI target
...
git-svn-id: trunk@49443 -
2021-06-01 20:02:36 +00:00
nickysn
cf857a22ee
+ enabled compilation of unit cpall for the WASI target
...
git-svn-id: trunk@49442 -
2021-06-01 19:38:02 +00:00
nickysn
47b664ba92
+ enabled compilation of unit charset for the WASI target
...
git-svn-id: trunk@49441 -
2021-06-01 19:34:31 +00:00
nickysn
2a688eb948
+ enabled compilation of unit getopts for the WASI target
...
git-svn-id: trunk@49440 -
2021-06-01 19:30:23 +00:00
nickysn
a7dfbf0124
+ enabled compilation of unit iso7185 for the WASI target
...
git-svn-id: trunk@49439 -
2021-06-01 19:25:42 +00:00
nickysn
1e34f04729
+ enabled compilation of unit macpas for the WASI target
...
git-svn-id: trunk@49438 -
2021-06-01 19:20:40 +00:00
nickysn
d0b3a599a3
+ enabled compilation of unit fgl for the WASI target
...
git-svn-id: trunk@49437 -
2021-06-01 19:15:41 +00:00