Christoph Herzog
9c0da24d2e
Merge remote-tracking branch 'origin/master' into wasix
2023-01-02 09:33:31 +01:00
Felix Schütt
9d1d3af213
Fix cargo lcov invocation
2022-12-07 14:55:43 +01:00
Christoph Herzog
eb60a96bcf
Merge branch 'master' into wasix-merge
2022-12-06 13:22:09 +01:00
Felix Schütt
36e39b3a3d
Implement capture_stdout and inherit_stdout correctly
2022-11-22 23:33:19 +01:00
Felix Schütt
3806ffe7c1
Make PR mergeable
2022-11-21 20:43:21 +01:00
Syrus Akbary
90e563bce4
Improved linting
2022-11-21 11:26:08 -08:00
Syrus Akbary
0a1a71fd6e
Revert #3145
...
This reverst buggy commit e1e08f44b7
2022-11-21 11:09:19 -08:00
John Sharratt's Shared Account
572ea3e9cd
Changes required to bring in full WASIX support
...
- Implemented multi-threading for both JS and SYS, plus other WASIX implementations
- Added a longjmp capability required for bash and other WASIX implementations
- Added real signals to WASIX
- Added a stack unwinding and winding functionality
- Implemented memory forking which will be used for process forking
- Added the ability to fork the current process
- Added the vfork functionality
- Moved over to the WasiPipe implementation
- Added more syscalls needed for bash on WASIX
- Ported wasmer-os into wasmer
- Added a union file system and the character devices
- Moved the cursors to the file handles rather than the file so that they are multithread safe and can handle concurrent IO
- Reimplemented the poll_oneoff functionality to support full ASYNC
- Added support for mapping directories in the host file system into WASIX sandbox file systems
- Implemented fully ASYNC sockets and emulated ASYNC files
- Made the file locks more granular to allow for concurrent poll and accept operations
- Fixed a race condition on the event notifications
2022-11-07 15:11:29 +01:00
Felix Schütt
178f469506
Fix make lint
2022-10-28 11:48:53 +02:00
Felix Schütt
a3f833fc40
Fix compilation bugs with webc
2022-10-28 11:23:23 +02:00
Felix Schütt
7e76db8490
Fixed most dependency errors
2022-10-27 18:42:32 +02:00
Felix Schütt
e8977ed335
cargo clippy --fix
2022-10-26 18:11:33 +02:00
Felix Schütt
1e2617ca18
Add feature=pirita_file
2022-10-26 17:44:21 +02:00
Felix Schütt
05d74ea3fb
Fix WASI pipe to properly store read bytes in temp_buffer
2022-10-17 14:10:15 +02:00
Felix Schütt
f6fa5b7cde
"config" -> "wasi_config"
2022-10-14 21:33:13 +02:00
Felix Schütt
ace2d9f329
cargo fmt
2022-10-14 12:58:18 +02:00
Felix Schütt
24228881dc
Fix CI issues
2022-10-14 12:55:09 +02:00
Felix Schütt
6b5c746a06
Fix PR review comments from john
2022-10-12 07:42:35 +02:00
Felix Schütt
b20b88b04f
WIP: prepare buffered reads to Pipe instead of reading data on-demand
2022-10-11 16:26:07 +02:00
Felix Schütt
28c0e9c63f
cargo fmt
2022-09-28 14:35:51 +02:00
Felix Schütt
703dbce37d
Fix ambigouusly named "config" and "stdin" params
2022-09-28 14:34:59 +02:00
Felix Schütt
3089d4d7fc
Merge branch 'master' into capi-wasi-overwrite-stdin-3
2022-09-27 09:24:37 +02:00
Felix Schütt
72acbc8f93
cargo fmt
2022-09-19 12:28:27 +02:00
Felix Schütt
f21689d1e6
Added set_blocking method to control blocking behaviour for WasiPipe
2022-09-19 12:27:33 +02:00
Felix Schütt
0e53d2d19b
Rename WasiPipePair -> WasiBidirectionalPipePair
2022-09-19 11:17:29 +02:00
Felix Schütt
1825e60b28
Rename inherit_stdout -> stdout
2022-09-19 11:06:59 +02:00
Felix Schütt
aa4b1d0684
Add bytes_available function
2022-09-19 11:03:07 +02:00
Felix Schütt
2484db9943
Address review comments to prevent leak with Arc::try_unwrap
2022-09-19 10:54:12 +02:00
Felix Schütt
7eb4d0fc7c
cargo fmt
2022-09-16 00:03:13 +02:00
Felix Schütt
1895dd21bb
Fix problem with wasmer-inline-c dependency
2022-09-15 23:59:03 +02:00
Felix Schütt
7e0a3b5cd6
Migrate from inline-c to wasmer-inline-c
2022-09-15 11:59:07 +02:00
Felix Schütt
6b6785ba69
Fix "make lint"
2022-09-09 13:51:20 +02:00
Felix Schütt
d840b5c5f6
Fix unit test with proper compiled .wasm file
2022-09-07 18:41:06 +02:00
Felix Schütt
1f4c46bf58
Fix stdio tests for WasiPipe (currently still failing)
2022-09-07 17:50:17 +02:00
Felix Schütt
815da05e43
Rename wasi_console_out_t to wasi_pipe_t
2022-09-06 20:10:00 +02:00
Felix Schütt
d26edf9ac6
C-API: Implement stdio override with WasiPipe instead of custom impl
2022-09-06 20:00:47 +02:00
Felix Schütt
2a5d267a2b
Added WasiPipe test to test reading / writing
2022-09-06 19:35:46 +02:00
Felix Schütt
dcadaf22d8
Added intial API for creating two-channel pipes
2022-09-06 17:30:29 +02:00
Felix Schütt
8bf26a30f4
cargo fmt
2022-09-06 16:17:34 +02:00
Felix Schütt
fac6d0ff2e
Added WasiPipePair to make the transition to two pipes easier
2022-09-06 15:53:12 +02:00
Felix Schütt
67ed624999
Fix make lint
2022-08-30 14:18:04 +02:00
Felix Schütt
63d709e697
Adress review comment: rename wasi_console_out_new -> wasi_pipe_new
2022-08-22 15:06:08 +02:00
Felix Schütt
6e944fa653
cargo fmt && make lint
2022-08-18 18:39:41 +02:00
Felix Schütt
b7f30c99c3
Fix errors in make test-capi
2022-08-18 18:30:57 +02:00
Felix Schütt
16f7ff7cf0
Address review changes
2022-08-18 18:13:07 +02:00
Felix Schütt
662be61c15
Implement console_io_memory using wasi::Pipe
2022-08-18 10:48:41 +02:00
Felix Schütt
df0567900c
First work to translate from WasiConsoleMemoryOverride to Pipe
2022-08-17 18:50:27 +02:00
Felix Schütt
838d932bd3
Use wasi::Pipe
2022-08-17 18:24:52 +02:00
Felix Schütt
ac127d8d36
Fix clippy errors in lib/c-api/src/wasm_c_api/wasi/mod.rs
2022-08-05 12:41:55 +02:00
Felix Schütt
12247004fe
Use int64_t / uintptr_t
2022-08-05 12:35:31 +02:00