sketchy path_open

This commit is contained in:
Pat Hickey
2020-12-07 18:21:09 -08:00
parent 5590b27fdf
commit 229474d6e0
5 changed files with 157 additions and 13 deletions

View File

@@ -1,3 +1,4 @@
use crate::dir::DirCaps;
use crate::file::FileCaps;
use thiserror::Error;
@@ -19,6 +20,14 @@ pub enum Error {
#[error("File not capable: {0}")]
FileNotCapable(FileCaps),
/// Errno::Notcapable: Extension: Capabilities insufficient
#[error("Directory not capable: {0}")]
DirNotCapable(DirCaps),
/// Idk what the deal with this guy is yet
#[error("Table overflow")]
TableOverflow,
/// The host OS may return an io error that doesn't match one of the
/// wasi errno variants we expect. We do not expose the details of this
/// error to the user.