Timothy Flynn
aff81d318b
Everywhere: Run clang-format
...
The following command was used to clang-format these files:
clang-format-16 -i $(find . \
-not \( -path "./\.*" -prune \) \
-not \( -path "./Base/*" -prune \) \
-not \( -path "./Build/*" -prune \) \
-not \( -path "./Toolchain/*" -prune \) \
-not \( -path "./Ports/*" -prune \) \
-type f -name "*.cpp" -o -name "*.h")
2023-07-08 10:32:56 +01:00
Ali Mohammad Pur
538c308357
LibWasm: Stop passing a nonzero 'mode' to open(..., O_DIRECTORY)
...
Bionic warns on this, but not passing the mode argument is technically
undefined behaviour (depending on the libc implementation of open), as
our LibC reads `mode` unconditionally (yolo!), just pass a zero to avoid
the UB.
2023-06-10 07:18:02 +02:00
Ali Mohammad Pur
5f999097e5
LibWasm: Implement wasi fd_read
2023-06-10 07:18:02 +02:00
Ali Mohammad Pur
ae9c40451a
LibWasm: Implement wasi fd_filestat_get()
2023-06-10 07:18:02 +02:00
Ali Mohammad Pur
f62187ed5d
LibWasm: Accept newly-created wasi file descriptors as well
2023-06-10 07:18:02 +02:00
Ali Mohammad Pur
a608e87ff9
LibWasm: Show wasi function arguments and result in debug mode
2023-06-10 07:18:02 +02:00
Ali Mohammad Pur
47248a3511
LibWasm: Keep track of created directory fds in path_create_directory
2023-06-10 07:18:02 +02:00
Ali Mohammad Pur
5121b368cd
LibWasm: Implement the random_get() call
2023-06-10 07:18:02 +02:00
Niklas Poslovski
fcbb8d63c0
LibWasm: Change dir_fd to auto instead of int
2023-05-20 03:27:38 +03:30
Ali Mohammad Pur
7e4e9fdb8f
LibWasm: Start implementing WASI
...
This commit starts adding support for WASI, along with the framework to
implement all the functions (though only a couple are currently
implemented).
2023-04-26 03:47:15 +03:30