Commit Graph

62622 Commits

Author SHA1 Message Date
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
715de4547a * fixed WASI dll imports that are declared in a different unit
git-svn-id: trunk@49537 -
2021-06-23 20:36:52 +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
pierre
615e1c0431 Only set llvm to true if LLVM custom option variable is set, but not to false if not (as true might be the default value)
git-svn-id: trunk@49534 -
2021-06-23 14:37:34 +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
bbcc396644 * ARM: fix for Merge Add/Sub optimization
git-svn-id: trunk@49520 -
2021-06-21 21:36:32 +00:00
florian
356afdd25b * ARM (thumb): do not save registers in routines marked as noreturn
git-svn-id: trunk@49519 -
2021-06-20 18:14:30 +00:00
michael
15f25da1fa * Fix issue ID #0039024, potential wrong write
git-svn-id: trunk@49518 -
2021-06-20 08:06:08 +00:00
michael
492a0ffcac * Better precision for samedatetime. Issue ID #39023, patch by Zoran Vučenović
git-svn-id: trunk@49517 -
2021-06-20 08:00:01 +00:00
marcus
436b8c2121 AROS: some fixes for AVL_ functions, added missing NewCreateTaskA
git-svn-id: trunk@49516 -
2021-06-18 17:05:09 +00:00
marcus
810e62b7c9 Amiga, MorphOS, AROS: unified function results to LongBool in amigados unit, correct type for GFXBase
git-svn-id: trunk@49515 -
2021-06-18 16:35:05 +00:00
florian
ddb572513c + LICENSE and README.md added, taken from git test conversion as committed by Michael
git-svn-id: trunk@49514 -
2021-06-18 16:15:19 +00:00
florian
50648f2a60 + ARM: PushPop optimziation
git-svn-id: trunk@49510 -
2021-06-17 21:12:08 +00:00
pierre
ce2984e16a Fix compilation of tiso8601 test by adding -Mobjfpc option
git-svn-id: trunk@49509 -
2021-06-16 21:04:25 +00:00
florian
e1d9d1be0a + Merge Add/Sub optimization
git-svn-id: trunk@49508 -
2021-06-16 19:53:56 +00:00
michael
f3e7d96053 * Fix issue #39009, remove size 20 limit on float types
git-svn-id: trunk@49507 -
2021-06-16 09:33:45 +00:00
florian
3f8aeadb91 * do not generate exit code for arm (thumb and thumb-2) if a routine is marked as noreturn
git-svn-id: trunk@49506 -
2021-06-15 20:09:46 +00:00
florian
2c418b988c * use smaller alignment when generating thumb code
git-svn-id: trunk@49505 -
2021-06-15 19:52:07 +00:00
florian
c193551980 * HaltProc does not return
git-svn-id: trunk@49504 -
2021-06-15 19:34:39 +00:00
florian
7ee31ae252 * optimization "Merging stores: STR/STR -> STM" cannot be carried out when generating thumb code
git-svn-id: trunk@49503 -
2021-06-15 19:05:34 +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
pierre
8608b82c01 Re-generate Makefile after wrong commit #49495, fixes bug report 39001
git-svn-id: trunk@49500 -
2021-06-14 08:58:59 +00:00
florian
776667366f * patch by J. Gareth Moreton: ARM - str/str -> stm optimisation, second part of #38975
git-svn-id: trunk@49499 -
2021-06-13 20:46:46 +00:00