class
normal_filewraps fildes that represents an normal file as an io object
Contents
Base classes
- class seekable_fd
- An io object, denotes a lseek()-able fd as defined in kernel.
Public static functions
-
static auto open(string path,
int flags) -> result<normal_
file> noexcept - create an normal_file like calling open(2)
-
static auto open(string path,
int flags,
mode_t mode) -> result<normal_
file> noexcept - create an normal_file like calling open(2)
-
static auto open(async_
context& ctx, string path, int flags) -> result<normal_ file> noexcept - create an normal_file like calling open(2), and bind to given ark::
async_context -
static auto open(async_
context& ctx, string path, int flags, mode_t mode) -> result<normal_ file> noexcept - create an normal_file like calling open(2), and bind to given ark::
async_context -
static auto mkostemp(const string& templ,
int flags) -> result<normal_
file> noexcept - create an normal_file like calling mkostemp(2)
-
static auto mkostemp(async_
context& ctx, const string& templ, int flags) -> result<normal_ file> noexcept - create an normal_file like calling mkostemp(2), and bind to given ark::
async_context
Constructors, destructors, conversion operators
- normal_file(int fd_int) protected
- constructs from int fildes
Function documentation
static result<normal_ file> ark:: normal_file:: open(string path,
int flags) noexcept
create an normal_file like calling open(2)
static result<normal_ file> ark:: normal_file:: open(string path,
int flags,
mode_t mode) noexcept
create an normal_file like calling open(2)
static result<normal_ file> ark:: normal_file:: open(async_ context& ctx,
string path,
int flags) noexcept
create an normal_file like calling open(2), and bind to given ark::
static result<normal_ file> ark:: normal_file:: open(async_ context& ctx,
string path,
int flags,
mode_t mode) noexcept
create an normal_file like calling open(2), and bind to given ark::
ark:: normal_file:: normal_file(int fd_int) protected
constructs from int fildes
Parameters | |
---|---|
fd_int in | must be an fildes that represents an normal file |