12345678910111213module juptune.event.io;
static Result open(
const char[] path,
PosixFile.AccessMode accessMode,
PosixFile.CreateMode createMode,
PosixFile.Flags flags,
PosixFile.ResolveFlags resolveFlags,
PosixFile.PermissionFlags permissions,
PosixDirectory* cwd,
PosixFile file,
bool pathIsNullTerminated = false
);
Opens/creates a file at the given path, using the provided flags & modes to determine the exact behaviour of the opened file.
The O_CLOEXECflag is always specified when opening a file, due to its security benefits.
Anything that juptuneEventLoopSubmitEvent.
Anything that the openat2syscall can generate (some errors are wrapped into an IoError, others will be a LinuxErrorinstead).
A Resultindicating whether something went wrong or not.