-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fsapi: adds Oflag to decouple from syscall package
This adds `fsapi.Oflag` which includes oflag values needed to support `fsapi.FS`. Notably, this covers more area than Go does. Go defines portable abstractions for most open flags, but not all. Flags like `O_DIRECTORY` are needed by wasip1 and not defined in Go as `os.O_DIRECTORY`. Also, some operating systems don't define these either. Instead we have a new `fsapi.Oflag` type which includes all flags needed, even if notably in windows behavior is emulated. Signed-off-by: Adrian Cole <adrian@tetrate.io>
- Loading branch information
Adrian Cole
committed
Jul 19, 2023
1 parent
1e0c73d
commit 26c0b44
Showing
47 changed files
with
628 additions
and
496 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
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
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
Oops, something went wrong.