Nikolay Nikolov
ccbc28dd85
* WebAssembly: fixed SysUtils.sleep() with large timeouts causing incorrect time
...
delay, due to arithmetic overflow
2024-09-03 02:30:14 +03:00
Michael VAN CANNEYT
ccfa38c68e
* Dotted RTL compiles
2023-07-27 19:04:03 +02:00
Michael VAN CANNEYT
78374bf772
* Synchronize API for AnsiString/Unicode string, keep string where possible.
2023-07-24 15:38:09 +02:00
Michael VAN CANNEYT
2ce2bab2a6
* Char -> AnsiChar
2023-07-14 17:26:09 +02:00
Nikolay Nikolov
65d8c3d7eb
* refactored duplicated code for epoch to datetime and vice versa conversion
...
between the dos and sysutils units for the WASI platform
2022-06-25 00:40:25 +03:00
Nikolay Nikolov
8e730d20db
+ implemented FindFirst, FindNext and FindClose in SysUtils for the WASI platform
2021-10-19 15:39:59 +03:00
Nikolay Nikolov
de3ab7e46b
* added the fpc_wasi_path_readlink_ansistring helper function to unit wasiutil
2021-10-19 09:39:25 +03:00
Nikolay Nikolov
b2a0df0d10
* ConvertToFdRelativePath removed from the interface part of the WASI system
...
unit (to avoid cluttering the WASI system unit interface with platform
dependent routines) and added to a new unit, called wasiutil
2021-10-19 09:06:56 +03: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
34587a647f
+ init the ansistring upper and lower case tables in the WASI SysUtils unit initialization
2021-10-13 06:39:42 +03:00
Nikolay Nikolov
0934df505c
+ implemented SysUtils.GetLocalTime for WASI
2021-10-13 01:29:04 +03:00
Nikolay Nikolov
099a927331
* fix for the WASI datetime to epoch conversion
2021-10-12 11:27:27 +03:00
Nikolay Nikolov
00aa7b8ab3
+ implemented SysUtils.FileGetAttr for WASI
2021-10-12 05:50:24 +03:00
Nikolay Nikolov
7f7c5785fc
* always return an error in SysUtils.FileSetAttr on WASI - this function is not supported by the WASI API
2021-10-12 05:38:16 +03:00
Nikolay Nikolov
809277d2b1
+ implemented SysUtils.FileGetSymLinkTarget for WASI
2021-10-12 05:32:53 +03:00
Nikolay Nikolov
1e5ecccdc6
+ implemented SysUtils.DirectoryExists for WASI
2021-10-12 03:50:23 +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
4dc0c37678
+ implemented SysUtils.FileExists for WASI
2021-10-12 03:28:03 +03:00
Nikolay Nikolov
068f781c7a
+ also implemented FileSetDate(FileName) for WASI, via the __wasi_path_filestat_set_times API call
2021-10-11 17:51:13 +03:00
Nikolay Nikolov
94d8c22c6a
+ implemented SysUtils.FileSetDate for WASI
2021-10-11 15:51:13 +03:00
Nikolay Nikolov
38075ac30c
+ implemented SysUtils.FileAge for WASI
2021-10-11 15:26:55 +03:00
Nikolay Nikolov
8f95c14827
+ implemented SysUtils.FileGetDate for WASI
2021-10-11 15:08:48 +03:00
Nikolay Nikolov
2a93340bcc
+ implemented SysUtils.DeleteFile for WASI
2021-10-11 11:27:57 +03:00
Nikolay Nikolov
c8d5bd77a3
- don't call ToSingleByteFileSystemEncodedFileName in SysUtils.FileOpen and
...
.FileCreate, because ConvertToFdRelativePath already calls it
2021-10-11 11:21:33 +03:00
Nikolay Nikolov
05c6937fd9
+ implemented SysUtils.RenameFile for WASI
2021-10-11 11:14:05 +03:00
Nikolay Nikolov
4c89eaa6cf
+ implemented SysUtils.FileSeek for WASI
2021-10-11 10:50:44 +03:00
Nikolay Nikolov
14f361e13f
+ implemented SysUtils.FileWrite for WASI
2021-10-11 10:37:11 +03:00
Nikolay Nikolov
977b2f2a4b
+ implemented SysUtils.FileRead for WASI
2021-10-11 10:32:50 +03:00
Nikolay Nikolov
305393a9c1
- removed the zero constants from the implementation of SysUtils.FileOpen for WASI
2021-10-11 10:26:06 +03:00
Nikolay Nikolov
0bbc5a7528
+ implemented SysUtils.FileCreate for WASI
2021-10-11 10:24:36 +03:00
Nikolay Nikolov
62846f54ad
+ implemented SysUtils.FileOpen for WASI
2021-10-11 10:11:07 +03:00
Nikolay Nikolov
aa4070ca8a
+ implemented SysUtils.FileClose for WASI
2021-10-11 09:52:09 +03:00
Nikolay Nikolov
e078408dcf
+ implemented SysUtils.GetEnvironmentVariable, GetEnvironmentVariableCount and
...
GetEnvironmentString for WASI
2021-10-06 06:12:58 +03:00
Nikolay Nikolov
7533496505
+ implemented SysUtils.Sleep for WASI
2021-10-06 05:39:11 +03:00
Nikolay Nikolov
d134fc1ddf
+ implemented SysUtils.GetTickCount64 for WASI
2021-10-06 04:46:44 +03:00
Nikolay Nikolov
77ca8ba16d
* always return error in SysUtils.FindFirst and .FindNext on the WASI platform,
...
in order to prevent infinite loops in tests
2021-10-03 01:08:52 +03:00
nickysn
711efc3e3a
+ started working on the SysUtils unit for the WASI platform
...
git-svn-id: trunk@49220 -
2021-04-17 14:39:54 +00:00