![]() |
Toolbox snapshot
The Reactive C++ Toolbox
|
#include <toolbox/io/Buffer.hpp>#include <toolbox/io/Handle.hpp>#include <toolbox/sys/Error.hpp>#include <toolbox/contrib/libutil.h>#include <fcntl.h>#include <stdio.h>#include <sys/stat.h>

Go to the source code of this file.
Namespaces | |
| namespace | toolbox |
| namespace | toolbox::os |
| namespace | toolbox::io |
Functions | |
| FileHandle | toolbox::os::open (const char *path, int flags, mode_t mode, std::error_code &ec) noexcept |
| Open and possibly create a file. | |
| FileHandle | toolbox::os::open (const char *path, int flags, mode_t mode) |
| Open and possibly create a file. | |
| FileHandle | toolbox::os::open (const char *path, int flags, std::error_code &ec) noexcept |
| Open and possibly create a file. | |
| FileHandle | toolbox::os::open (const char *path, int flags) |
| Open and possibly create a file. | |
| void | toolbox::os::rename (const char *oldpath, const char *newpath, std::error_code &ec) |
| void | toolbox::os::rename (const char *oldpath, const char *newpath) |
| int | toolbox::os::remove (const char *path) |
| int | toolbox::os::remove (const char *path, std::error_code &ec) noexcept |
| std::pair< FileHandle, FileHandle > | toolbox::os::pipe2 (int flags, std::error_code &ec) noexcept |
| Create pipe. | |
| std::pair< FileHandle, FileHandle > | toolbox::os::pipe2 (int flags) |
| Create pipe. | |
| void | toolbox::os::fstat (int fd, struct stat &statbuf, std::error_code &ec) noexcept |
| Get file status. | |
| void | toolbox::os::fstat (int fd, struct stat &statbuf) |
| Get file status. | |
| void | toolbox::os::ftruncate (int fd, off_t length, std::error_code &ec) noexcept |
| Truncate a file to a specified length. | |
| void | toolbox::os::ftruncate (int fd, off_t length) |
| Truncate a file to a specified length. | |
| ssize_t | toolbox::os::read (int fd, void *buf, std::size_t len, std::error_code &ec) noexcept |
| Read from a file descriptor. | |
| std::size_t | toolbox::os::read (int fd, void *buf, std::size_t len) |
| Read from a file descriptor. | |
| ssize_t | toolbox::os::read (int fd, MutableBuffer buf, std::error_code &ec) noexcept |
| Read from a file descriptor. | |
| std::size_t | toolbox::os::read (int fd, MutableBuffer buf) noexcept |
| Read from a file descriptor. | |
| ssize_t | toolbox::os::write (int fd, const void *buf, std::size_t len, std::error_code &ec) noexcept |
| Write to a file descriptor. | |
| std::size_t | toolbox::os::write (int fd, const void *buf, std::size_t len) |
| Write to a file descriptor. | |
| ssize_t | toolbox::os::write (int fd, ConstBuffer buf, std::error_code &ec) noexcept |
| Write to a file descriptor. | |
| std::size_t | toolbox::os::write (int fd, ConstBuffer buf) |
| Write to a file descriptor. | |
| int | toolbox::os::fcntl (int fd, int cmd, std::error_code &ec) noexcept |
| File control. | |
| template<typename ArgT > | |
| int | toolbox::os::fcntl (int fd, int cmd, ArgT arg, std::error_code &ec) noexcept |
| File control. | |
| int | toolbox::os::fcntl (int fd, int cmd) |
| File control. | |
| template<typename ArgT > | |
| int | toolbox::os::fcntl (int fd, int cmd, ArgT arg) |
| File control. | |
| std::size_t | toolbox::io::file_size (int fd) |
| Get file size. | |
| mode_t | toolbox::io::file_mode () noexcept |
| Get current file mode. | |
| void | toolbox::io::set_non_block (int fd, std::error_code &ec) noexcept |
| void | toolbox::io::set_non_block (int fd) |
| FileHandle | toolbox::io::flopen (const char *path, int flags, mode_t mode, std::error_code &ec) |
| FileHandle | toolbox::io::flopen (const char *path, int flags, mode_t mode) |