-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WasiFileSystem.canonicalize Also appendingSink Also deleting directories I'm very eager to bring AbstractFileSystemTest online for this. * Also recover if the errno is isdir * Spotless
- Loading branch information
1 parent
1740e8a
commit 32dc86b
Showing
4 changed files
with
204 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
okio-wasifilesystem/src/wasmMain/kotlin/okio/internal/preview1/Fdflags.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright 2019-2023 the Contributors to the WASI Specification | ||
// This file is adapted from the WASI preview1 spec here: | ||
// https://github.com/WebAssembly/WASI/blob/main/legacy/preview1/docs.md | ||
package okio.internal.preview1 | ||
|
||
/** | ||
* `fdflags: Record`. | ||
* | ||
* File descriptor flags. | ||
*/ | ||
typealias fdflags = Short | ||
|
||
/** Data written to the file is always appended to the file's end. */ | ||
val fdflags_append: Short = (1 shl 0).toShort() | ||
|
||
/** Write according to synchronized I/O data integrity completion. Only the data stored in the file is synchronized. */ | ||
val fdflags_dsync: Short = (1 shl 1).toShort() | ||
|
||
/** Non-blocking mode. */ | ||
val fdflags_nonblock: Short = (1 shl 2).toShort() | ||
|
||
/** Synchronized read I/O operations. */ | ||
val fdflags_rsync: Short = (1 shl 3).toShort() | ||
|
||
/** Write according to synchronized I/O file integrity completion. In addition to synchronizing the data stored in the file, the implementation may also synchronously update the file's metadata. */ | ||
val fdflags_sync: Short = (1 shl 4).toShort() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters