Skip to content

Commit

Permalink
Add file locking APIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Dec 8, 2022
1 parent 06a94f4 commit 875f646
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions host/src/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,39 @@ impl wasi_filesystem::WasiFilesystem for WasiCtx {
) -> HostResult<(), wasi_filesystem::Errno> {
todo!()
}

fn lock_shared(
&mut self,
fd: wasi_filesystem::Descriptor,
) -> HostResult<(), wasi_filesystem::Errno> {
todo!()
}

fn lock_exclusive(
&mut self,
fd: wasi_filesystem::Descriptor,
) -> HostResult<(), wasi_filesystem::Errno> {
todo!()
}

fn try_lock_shared(
&mut self,
fd: wasi_filesystem::Descriptor,
) -> HostResult<(), wasi_filesystem::Errno> {
todo!()
}

fn try_lock_exclusive(
&mut self,
fd: wasi_filesystem::Descriptor,
) -> HostResult<(), wasi_filesystem::Errno> {
todo!()
}

fn unlock(
&mut self,
fd: wasi_filesystem::Descriptor,
) -> HostResult<(), wasi_filesystem::Errno> {
todo!()
}
}

0 comments on commit 875f646

Please sign in to comment.