Commit 6cfc08e
Fix several issues (#4377)
* Directory support WIP. readdir works but I think we have a memory leak somewhere
* Fix: always use standard stream fds. Fix unlinkat and renameat. fd 0, 1, and 2 will always be supplied for standard streams. Unlinkat and renameat work exclusively based on supplied paths.
* Fix: use macro for free()
* Added a temporary workaround for issue identified in PR#4377
* Fixed reference to file descriptor and cleaned up dead/commented code.
Signed-off-by: Stephen Berard <stephen.berard@outlook.com>
Co-authored-by: Dan Kouba <dan@atym.io>1 parent 150122b commit 6cfc08e
File tree
5 files changed
+248
-152
lines changed- core
- iwasm
- common
- libraries/libc-wasi/sandboxed-system-primitives/src
5 files changed
+248
-152
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
293 | 292 | | |
294 | 293 | | |
295 | 294 | | |
| |||
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2210 | 2210 | | |
2211 | 2211 | | |
2212 | 2212 | | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
2213 | 2220 | | |
2214 | 2221 | | |
2215 | | - | |
| 2222 | + | |
2216 | 2223 | | |
2217 | 2224 | | |
2218 | 2225 | | |
| |||
2854 | 2861 | | |
2855 | 2862 | | |
2856 | 2863 | | |
2857 | | - | |
2858 | | - | |
2859 | | - | |
2860 | | - | |
| 2864 | + | |
| 2865 | + | |
2861 | 2866 | | |
2862 | 2867 | | |
2863 | | - | |
2864 | 2868 | | |
2865 | 2869 | | |
2866 | 2870 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1817 | 1817 | | |
1818 | 1818 | | |
1819 | 1819 | | |
1820 | | - | |
1821 | | - | |
1822 | | - | |
1823 | | - | |
1824 | | - | |
1825 | | - | |
1826 | 1820 | | |
1827 | 1821 | | |
1828 | 1822 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
254 | 255 | | |
255 | 256 | | |
256 | 257 | | |
| |||
0 commit comments