Pat Hickey
bbbe168ca1
ctx: i guess we need environment variables!
2021-01-28 11:34:00 -08:00
Pat Hickey
6c0f312a1b
fix bug: i was ignoring the symlink follow flag in path_filestat_{get,
...
set_times}
2021-01-27 12:42:15 -08:00
Pat Hickey
1eb8a8a7fe
integrate GetSetFdFlags!
...
change reopen_with_fdflags(&self, fdflags) -> Result<Box<dyn WasiFile>>
to set_fdflags(&mut self, fdflags) -> Result<()>.
this makes way more sense than my prior hare-brained schemes.
2021-01-26 12:23:52 -08:00
Pat Hickey
fded424e68
Dir::hard_link: dont support symlink following
...
if we're asked to follow symlinks, give ERRNO_INVAL instead.
2021-01-25 17:08:02 -08:00
Pat Hickey
a993090e30
fix warning
2021-01-25 17:07:39 -08:00
Pat Hickey
42ccb11f15
cap-std is going to use winerror::ERROR_STOPPED_ON_SYMLINK
...
to communicate eloop on windows
2021-01-25 17:02:11 -08:00
Pat Hickey
b0b263f68e
find a symlink error
2021-01-25 15:20:46 -08:00
Pat Hickey
17a82c5b88
table: fix up errnos. trap on internal failures.
2021-01-25 12:16:07 -08:00
Pat Hickey
957c434b67
ErrorExt: trap convenience method
2021-01-25 12:16:01 -08:00
Pat Hickey
2b70ea8b91
windows scheduler passes tests
...
unfortunately this does essentially nothing to convince me of its
correctness
2021-01-22 18:26:45 -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
f3e40e2fc4
restructure cap-std impls into their own crate
2021-01-20 19:09:15 -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
657024bd0d
latest system-interface provides ReadReady::num_ready_bytes
2021-01-19 14:39:20 -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
4b39a14163
fix tests in pipe
2021-01-14 14:14:41 -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
Léo Gaspard
932378eb7b
reexport all the things required to implement WasiDir
2021-01-13 05:18:36 +01:00
Léo Gaspard
2e035be60a
make WasiCtxBuilder be an actual builder, allowing to call .build() at the end of a call chain
2021-01-13 04:57:16 +01:00
Léo Gaspard
f3156114c4
reserve keys 0, 1 and 2 for stdio
2021-01-13 04:24:02 +01:00
Léo Gaspard
7303793fa0
also expose WasiCtxBuilder
2021-01-13 04:10:12 +01: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
4a54db0837
derive debug and clone on DirFdStat / FdStat
2021-01-11 17:58:53 -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
4044977f50
just ignore nofollow on links for now
2021-01-11 17:05:09 -08:00
Pat Hickey
932ba6b4f3
need DirExt::hard_link_nofollow to implement path_link properly
2021-01-11 15:47:57 -08:00
Pat Hickey
2d2e6d16a1
Dir::open_file, open_dir: correct symlink following
2021-01-11 15:15:54 -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
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
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