Commit Graph

15 Commits

Author SHA1 Message Date
Michael VAN CANNEYT
2ce2bab2a6 * Char -> AnsiChar 2023-07-14 17:26:09 +02:00
Nikolay Nikolov
21d843128d + added a wrapper function around __wasi_path_readlink that calls it iteratively
with doubling buffer sizes, starting with 64 bytes, until it reaches 16384
  bytes, and reads the link into a rawbytestring. Use that function in all
  places in the WASI rtl that need to read a symlink.
2021-10-15 14:33:43 +03:00
Nikolay Nikolov
aafb471bc8 * don't set InOutRes in ConvertToFdRelativePath, but return it instead. This
fixes issues in places where this function is used in a way that should not
  set IOResult.
2021-10-12 03:28:03 +03:00
Nikolay Nikolov
27df4e98d2 * use rawbytestring instead of ansistring for the WASI file name handling 2021-10-11 09:25:01 +03:00
Nikolay Nikolov
60d350f067 * another instance of ['/','\'] replaced with AllowDirectorySeparators 2021-10-11 08:56:16 +03:00
Nikolay Nikolov
d7755a56f6 * replaced '/' with DirectorySeparator in the WASI directory parsing code 2021-10-11 08:51:39 +03:00
Nikolay Nikolov
13c344a3a0 * replaced ['/','\'] with AllowDirectorySeparators in the WASI directory
parsing code
2021-10-11 08:45:42 +03:00
Nikolay Nikolov
25ac138092 * keep the drive string separate in the preopen and the current dir records on
the WASI platform
2021-10-11 08:38:33 +03:00
Nikolay Nikolov
0d6b5338d0 + implemented ChDir() for WASI 2021-10-10 20:25:29 +03:00
Nikolay Nikolov
bae50d80d2 * preopen fd names and current dir changed to use ansistring, as well as the
parameters and result of ConvertToFdRelativePath. This will allow easier
  implementation of ChDir.
2021-10-10 09:11:19 +03: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
d3ce008cd3 + initial implementation of GetDir() for WASI
git-svn-id: trunk@49522 -
2021-06-22 22:35:32 +00:00
nickysn
6350401d4c + debug output in the WASM directory functions
git-svn-id: branches/wasm@48345 -
2021-01-23 07:24:41 +00:00
nickysn
6df4254c12 + added WASI sysdir.inc and sysfile.inc (functions not implemented yet)
git-svn-id: branches/wasm@48239 -
2021-01-20 21:29:40 +00:00