OpenStatus — success, or an OpenError payload with the
reason and the captured OS error code.
OpenStatus open(scope const(char)[] path, int flags) @trustedOpen a file. Synchronous — does not yield the fiber.
path | Filesystem path to open. |
flags | POSIX open flags (O_RDONLY, O_RDWR, etc.). |
OpenStatus — success, or an OpenError payload with the
reason and the captured OS error code.