#include <posix.h>
Public Types | |
| enum | { RDONLY = FMT_POSIX(O_RDONLY), WRONLY = FMT_POSIX(O_WRONLY), RDWR = FMT_POSIX(O_RDWR) } |
Public Member Functions | |
| file () FMT_NOEXCEPT | |
| FMT_API | file (cstring_view path, int oflag) |
| file (file &&other) FMT_NOEXCEPT | |
| file & | operator= (file &&other) |
| FMT_API | ~file () FMT_NOEXCEPT |
| int | descriptor () const FMT_NOEXCEPT |
| FMT_API void | close () |
| FMT_API long long | size () const |
| FMT_API std::size_t | read (void *buffer, std::size_t count) |
| FMT_API std::size_t | write (const void *buffer, std::size_t count) |
| FMT_API void | dup2 (int fd) |
| FMT_API void | dup2 (int fd, error_code &ec) FMT_NOEXCEPT |
| FMT_API buffered_file | fdopen (const char *mode) |
Static Public Member Functions | |
| static FMT_API file | dup (int fd) |
| static FMT_API void | pipe (file &read_end, file &write_end) |
Private Member Functions | |
| file (int fd) | |
| file (const file &)=delete | |
| void | operator= (const file &)=delete |
Private Attributes | |
| int | fd_ |
| anonymous enum |
| Enumerator | |
|---|---|
| RDONLY | |
| WRONLY | |
| RDWR | |
| FMT_API file::file | ( | cstring_view | path, |
| int | oflag | ||
| ) |
|
privatedelete |
|
inline |
| FMT_API file::~file | ( | ) |
| FMT_API void file::close | ( | ) |
| FMT_API void file::dup2 | ( | int | fd | ) |
| FMT_API void file::dup2 | ( | int | fd, |
| error_code & | ec | ||
| ) |
| FMT_API buffered_file file::fdopen | ( | const char * | mode | ) |
|
privatedelete |
| FMT_API std::size_t file::read | ( | void * | buffer, |
| std::size_t | count | ||
| ) |
| FMT_API long long file::size | ( | ) | const |
| FMT_API std::size_t file::write | ( | const void * | buffer, |
| std::size_t | count | ||
| ) |
1.8.11