Pat Hickey
b0b263f68e
find a symlink error
2021-01-25 15:20:46 -08:00
Pat Hickey
19254bfd72
error mapping for windows!
2021-01-22 15:44:32 -08:00
Pat Hickey
423973a8ea
push the error types conversion all the way through
2021-01-22 15:29:09 -08:00
Pat Hickey
1d8070b734
wasi-c2: completely redo how errors work
2021-01-22 15:03:16 -08:00
Pat Hickey
a06c4fbe1a
make a pipe filetype, reorder filetype enum
2021-01-22 11:37:39 -08:00
Pat Hickey
9e0d295f8c
use unsafe to mark reopen_with_fdflags as having special safety features
2021-01-21 18:08:15 -08:00
Pat Hickey
f1a5dce716
change set_fdflags to reopen_with_fdflags
2021-01-21 17:56:03 -08:00
Pat Hickey
fcd00f5de1
move more deps to cap-std-sync, define own SystemTimeSpec
2021-01-21 12:35:55 -08:00
Pat Hickey
7ec03631da
inline only what we need of cap-std/system-interface traits
2021-01-20 20:53:44 -08:00
Pat Hickey
016ed8966a
poll now handles monotonic clocks, not system clocks
...
I initially had it backwards. It is not sensible to poll on a system
clock timeout because the system clock is not necessarily monotonic!
only a monotonic clock makes sense for a timeout.
2021-01-19 15:11:54 -08:00
Pat Hickey
7f7a0be938
wasi-c2: implement a synchronous poll_oneoff in terms of yanix
...
doesnt work on unix yet! also breaks all the rules about using the
cap-std family instead of rawfds! but this is cool and im happy with it
2021-01-14 17:43:53 -08:00
Pat Hickey
5c8efe868e
need Any on WasiFile to upcast for AsRawFd
2021-01-14 13:39:01 -08:00
Pat Hickey
ea94d6f79d
this is indeed a nice way to do refs!
2021-01-13 15:11:11 -08:00
Pat Hickey
7beb52a2bc
i guess this is a way to do refs
2021-01-13 14:23:59 -08:00
Pat Hickey
8298ce9e4d
clock sub, start with the read sub
2021-01-13 11:57:42 -08:00
Pat Hickey
e0e205f8d2
ctx builder: fix warnings, test harness
2021-01-13 11:07:06 -08:00
Pat Hickey
81065eba38
more scheduler
2021-01-12 17:42:59 -08:00
Pat Hickey
b79bdcee84
port subscriptions in from old branch
2021-01-12 15:55:25 -08:00
Pat Hickey
0e42c2e1d9
scaffold a scheduler
2021-01-12 12:07:00 -08:00
Pat Hickey
e7018bf6e0
wiggle flags are now bitflags!
2021-01-11 18:33:52 -08:00
Pat Hickey
b1d32f419c
use bitflags crate to define bitflags, rather than by hand
2021-01-11 17:48:41 -08:00
Pat Hickey
82128cbc5b
trap proc_exit and unsupported funcs
2021-01-07 14:56:22 -08:00
Pat Hickey
c2a715ca54
wiggle traps
2021-01-07 14:43:56 -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
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
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
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
48554a1a5c
implement randomness
2021-01-04 12:20:42 -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
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
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