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
|
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 |
|
Pat Hickey
|
f663045563
|
better arg names
|
2020-12-18 16:57:15 -08:00 |
|
Pat Hickey
|
8672dce541
|
open_file requires the FdFlags
|
2020-12-18 16:56:58 -08:00 |
|
Pat Hickey
|
c1919259dc
|
implement fd_readdir
|
2020-12-18 16:13:29 -08:00 |
|
Pat Hickey
|
af0aa14ee8
|
get a FileStat of a Dir
and fill out some remaining DirCaps from Rights
|
2020-12-18 16:13:10 -08:00 |
|
Pat Hickey
|
8cc1ab7720
|
fixup filetype nonsense
tried to go my own way here, bad idea, stick to the design of wasi buddy
|
2020-12-18 12:30:40 -08:00 |
|
Pat Hickey
|
82edae32b7
|
readlink
|
2020-12-18 11:33:28 -08:00 |
|
Pat Hickey
|
d8720cffe8
|
unexpected io error: do our best based on e.kind()
|
2020-12-17 18:12:15 -08:00 |
|
Pat Hickey
|
f9ff97aac1
|
virt pipes: return concrete errors, best effort at flags and filestat
|
2020-12-17 17:48:46 -08:00 |
|
Pat Hickey
|
4c3c9a9ecb
|
Filestat: make times optional, default to 0 at wasi interface
this is DRY
|
2020-12-17 17:29:35 -08:00 |
|
Pat Hickey
|
8ac688287e
|
fixup dir/file caps into rights
|
2020-12-17 17:29:00 -08:00 |
|
Pat Hickey
|
df0218c086
|
make get_filestat work
up to 16 tests passing!
|
2020-12-16 17:54:17 -08:00 |
|
Pat Hickey
|
23b5689a5f
|
fix file rights
|
2020-12-16 17:19:27 -08:00 |
|
Pat Hickey
|
8777194f0d
|
always open files read if not write
and if creating a file, open it write.
|
2020-12-16 16:07:23 -08:00 |
|
Pat Hickey
|
af8bdf8933
|
table: borrow entry immutably or mutably
|
2020-12-16 15:55:30 -08:00 |
|
Pat Hickey
|
27ddbda829
|
preopens with Caps::all, implement create, remove dir, remove file
|
2020-12-16 15:15:48 -08:00 |
|
Pat Hickey
|
c0461ca170
|
redesign how caps fit into entries!
|
2020-12-15 18:09:36 -08:00 |
|
Pat Hickey
|
b5852bf5ff
|
open_dir can never create a dir
|
2020-12-15 16:44:03 -08:00 |
|
Pat Hickey
|
04805fcc5f
|
pass a test, dubiously
|
2020-12-14 19:48:30 -08:00 |
|
Pat Hickey
|
1b8f9fd377
|
use virtual stdio
which works except for the lifetime issues, i think the trap still holds
an Rc to the store?
|
2020-12-11 18:22:13 -08:00 |
|
Pat Hickey
|
0572b40f58
|
port read and write pipes in
|
2020-12-11 17:54:32 -08:00 |
|
Pat Hickey
|
30d49d122c
|
add preopened_dir to builder
|
2020-12-11 16:38:44 -08:00 |
|
Pat Hickey
|
dfcdbfd0fe
|
test-programs: no longer test virtfs separately
wasi-c2 does not have a virtfs yet, and when it does we'll design a
better test harness
also fix prestat get: i was reporting the wrong error
|
2020-12-11 15:51:14 -08:00 |
|
Pat Hickey
|
61f97a3e92
|
trap on wasi_proc_exit
|
2020-12-11 15:37:04 -08:00 |
|
Pat Hickey
|
d586574b1f
|
port in args and env. slightly different style
building up a bunch of deferred errors in the CtxBuilder sucks. so does
reporting errors right away. Idk what to do here?
|
2020-12-11 15:33:59 -08:00 |
|
Pat Hickey
|
22db10e643
|
add wasmtime adapter and stdio wrappers
the stdio wrappers will not work on windows, but thats a whole other can
of worms anyway
|
2020-12-11 15:00:33 -08:00 |
|
Pat Hickey
|
73058658f4
|
switch to cap-fs-ext::MetadataExt
|
2020-12-11 12:14:09 -08:00 |
|
Pat Hickey
|
47f3a6bcb9
|
sketchy implementation of readdir
|
2020-12-10 17:31:21 -08:00 |
|
Pat Hickey
|
03c92de5aa
|
stub out set_oflags for unix i guess?
what do we do about unsupported stuff like that? silently return OK?
|
2020-12-10 15:37:02 -08:00 |
|
Pat Hickey
|
cdb642b3d6
|
do cfg right
|
2020-12-10 15:07:18 -08:00 |
|
Pat Hickey
|
4dd1836704
|
windows nightly can give us filestat info
|
2020-12-10 14:50:55 -08:00 |
|
Pat Hickey
|
20eb66beab
|
fixes to system-interface, use fs-set-times
|
2020-12-10 12:06:36 -08:00 |
|
Pat Hickey
|
229474d6e0
|
sketchy path_open
|
2020-12-07 18:21:09 -08:00 |
|
Pat Hickey
|
5590b27fdf
|
impl WasiFile for cap_std::fs::File
|
2020-12-07 17:12:08 -08:00 |
|
Pat Hickey
|
05ecdbfa96
|
change the preopen strategy again, implement more calls
|
2020-12-03 17:12:21 -08:00 |
|