Pat Hickey
09861c20db
symlink-related tests: accept either ELOOP or ENOTDIR
...
when opening a symlink loop as directory, or nofollow opening a valid
symlink as directory.
2021-01-11 15:35:48 -08:00
Pat Hickey
2d2e6d16a1
Dir::open_file, open_dir: correct symlink following
2021-01-11 15:15:54 -08:00
Nick Fitzgerald
3068d55fa1
wasi-nn: Fix keyword form in Cargo.toml metadata
...
Keywords may not have spaces, apparently.
2021-01-11 10:46:00 -08:00
Andrew Brown
2adb0e8964
security: upgrade smallvec to 1.6.1
...
Fixes advisory https://rustsec.org/advisories/RUSTSEC-2021-0003 .
2021-01-08 16:54:54 -08:00
Yury Delendik
3580205f12
[Cranelift][Atomics] Add address folding for atomic notify/wait. ( #2556 )
...
* fold address in wasm wait and notify ops
* add atomics addr folding tests
2021-01-08 11:55:21 -06:00
Pat Hickey
4a6e92f52f
upgrade to cap-std 0.9
2021-01-07 16:47:26 -08:00
Pat Hickey
a900d0431d
Merge remote-tracking branch 'origin/main' into pch/wasi_common_cap_std
2021-01-07 16:39:27 -08:00
Nick Fitzgerald
5de5bf1565
Merge pull request #2550 from bytecodealliance/pch/wiggle_trapping
...
wiggle: introduce Trap enum
2021-01-07 16:23:21 -08:00
Pat Hickey
539058b329
fix windows
2021-01-07 14:57:18 -08:00
Pat Hickey
82128cbc5b
trap proc_exit and unsupported funcs
2021-01-07 14:56:22 -08:00
Nick Fitzgerald
5ad82de3c5
Bump Wasmtime to 0.22.0; Cranelift to 0.69.0
2021-01-07 14:51:12 -08:00
Pat Hickey
c2a715ca54
wiggle traps
2021-01-07 14:43:56 -08:00
Pat Hickey
13cd7a4a8e
Merge branch 'pch/wiggle_trapping' into pch/wasi_common_cap_std
2021-01-07 14:10:59 -08:00
Pat Hickey
c2004001cb
Merge remote-tracking branch 'origin/main' into pch/wasi_common_cap_std
2021-01-07 14:10:43 -08:00
Pat Hickey
b149a03d5d
wasi-common: instead of panicking, use an Error::Unsupported that Traps
2021-01-07 14:05:49 -08:00
Pat Hickey
07c9b65fa4
fix
2021-01-07 11:45:11 -08:00
Pat Hickey
ec1bfeefb3
fix tests
2021-01-07 11:45:11 -08:00
Pat Hickey
cd3adb1abd
Trap::I32Exit is a better name
2021-01-07 11:45:11 -08:00
Pat Hickey
1dab7c8f94
wasi submodule: noreturn annotations are merged into main
2021-01-07 11:45:11 -08:00
Pat Hickey
2483ad4c1c
wasi-nn: UserErrorConversion error is now a wiggle::Trap
2021-01-07 11:45:11 -08:00
Pat Hickey
745c592863
readme: expand wiggle docs
2021-01-07 11:45:11 -08:00
Pat Hickey
4a574c14eb
wasi-common: port to use wiggle::Trap
2021-01-07 11:45:11 -08:00
Pat Hickey
1c7c18b026
WASI submodule: mark proc_exit funcs as noreturn in the witx
2021-01-07 11:45:11 -08:00
Pat Hickey
f8f9b14c6f
wiggle: introduce wiggle::Trap, which can be either a String or I32
...
also, make noreturn functions always return a Trap
wasmtime-wiggle can trivially turn a wiggle::Trap into a wasmtime::Trap.
lucet will have to do the same.
2021-01-07 11:45:11 -08:00
Léo Gaspard
c0c4834c64
wasi-nn: rebuild if the witx files change
2021-01-06 15:56:46 -08:00
Pat Hickey
d4aaae3e86
wasi-nn: remove missing_memory from wasmtime_integration
2021-01-06 10:59:29 -08:00
Pat Hickey
bf2371c8af
wasi: get rid of missing_memory config
2021-01-05 17:29:34 -08:00
Pat Hickey
46b1864c9e
wiggle-wasmtime: get rid of "missing_memory" error code, we can Trap now
...
the missing memory behavior was always a silly thing, that we generate a
function for wasmtime which is Result<_, Trap> we can just Err(Trap)
when the memory export is missing.
2021-01-05 17:28:03 -08:00
Pat Hickey
fb37751a92
fix warning
2021-01-05 17:27:06 -08:00
Pat Hickey
31c5328971
incorporate dan's suggestions on readdir
2021-01-05 14:36:32 -08:00
Pat Hickey
56788be629
sorta fix set_times on paths and dirfds
2021-01-05 14:28:26 -08:00
Pat Hickey
ce13cd9e77
dir: add set times
2021-01-05 14:24:02 -08:00
Pat Hickey
16eff680e2
summarize failures with a TODO list!
2021-01-05 13:57:12 -08:00
Pat Hickey
8ace7f00d9
delete file::get/set_oflags
2021-01-05 13:53:25 -08:00
Pat Hickey
fb32f65118
get path filestat on a dir
2021-01-05 13:51:55 -08:00
Pat Hickey
07a9584a08
add hard_link to dir
2021-01-05 12:19:56 -08:00
Pat Hickey
21cd55b0a7
add directory rename
2021-01-05 12:14:07 -08:00
Pat Hickey
94d2280187
better docs
2021-01-05 11:01:52 -08:00
Pat Hickey
d51ffe8d4e
add . and .. to the readdir iterator
2021-01-04 17:27:32 -08:00
Pat Hickey
222a57868e
readlink: get rid of weird partial-buffer semantics carried over from posix
...
but follow posix in returning ERANGE when the result is too big
2021-01-04 16:41:24 -08:00
Pat Hickey
84318024ef
no more clock test fail
2021-01-04 16:30:11 -08:00
Pat Hickey
41c06db2b4
finish implementing clocks correctly
2021-01-04 16:28:40 -08:00
Pat Hickey
add601fd6c
use cap_rand instead of getrandom
2021-01-04 16:28:35 -08:00
Pat Hickey
10a84727fa
Ilseq is the correct error when osstring cant be turned into string
2021-01-04 16:04:00 -08:00
Pat Hickey
c7fcc34487
add clocks!
2021-01-04 16:03:58 -08:00
Pat Hickey
50554d376b
add, fix tests
2021-01-04 12:37:07 -08:00
Pat Hickey
48554a1a5c
implement randomness
2021-01-04 12:20:42 -08:00
Pat Hickey
01d74ceb73
Merge remote-tracking branch 'origin/main' into pch/wasi_common_cap_std
2021-01-04 11:19:02 -08:00
Pat Hickey
b50b9b4136
add notes describing why remaining wasi tests are failing
2020-12-18 17:04:02 -08:00
Pat Hickey
8deb3ed07c
path_open: ENOTDIR when fd is a file
2020-12-18 16:57:43 -08:00