NGL
6.5
The NCCA Graphics Library
|
#include <posix.h>
Classes | |
struct | Proxy |
Public Types | |
enum | { RDONLY = FMT_POSIX(O_RDONLY), WRONLY = FMT_POSIX(O_WRONLY), RDWR = FMT_POSIX(O_RDWR) } |
Public Member Functions | |
File () FMT_NOEXCEPT | |
File (CStringRef path, int oflag) | |
File (Proxy p) FMT_NOEXCEPT | |
File (File &other) FMT_NOEXCEPT | |
File & | operator= (Proxy p) |
File & | operator= (File &other) |
operator Proxy () FMT_NOEXCEPT | |
~File () FMT_NOEXCEPT | |
int | descriptor () const FMT_NOEXCEPT |
void | close () |
LongLong | size () const |
std::size_t | read (void *buffer, std::size_t count) |
std::size_t | write (const void *buffer, std::size_t count) |
void | dup2 (int fd) |
void | dup2 (int fd, ErrorCode &ec) FMT_NOEXCEPT |
BufferedFile | fdopen (const char *mode) |
Static Public Member Functions | |
static File | dup (int fd) |
static void | pipe (File &read_end, File &write_end) |
Private Member Functions | |
File (int fd) | |
Private Attributes | |
int | fd_ |
fmt::File::File | ( | fmt::CStringRef | path, |
int | oflag | ||
) |
Definition at line 97 of file posix.cc.
References fmt::BasicCStringRef< Char >::c_str(), FMT_POSIX_CALL, and FMT_RETRY.
fmt::File::~File | ( | ) |
Definition at line 109 of file posix.cc.
References fmt::BufferedFile::close(), FMT_POSIX_CALL, and fmt::report_system_error().
void fmt::File::close | ( | ) |
Definition at line 116 of file posix.cc.
References fmt::BufferedFile::close(), and FMT_POSIX_CALL.
|
inline |
Definition at line 266 of file posix.h.
References FMT_DISALLOW_COPY_AND_ASSIGN, FMT_NOEXCEPT, fmt::getpagesize(), fmt::LongLong, and fmt::internal::write().
Definition at line 169 of file posix.cc.
References fmt::BufferedFile::File, and FMT_POSIX_CALL.
Definition at line 178 of file posix.cc.
References FMT_POSIX_CALL, and FMT_RETRY.
Definition at line 187 of file posix.cc.
References FMT_POSIX_CALL, and FMT_RETRY.
fmt::BufferedFile fmt::File::fdopen | ( | const char * | mode | ) |
Definition at line 217 of file posix.cc.
References FMT_POSIX_CALL.
|
inline |
Definition at line 239 of file posix.h.
References FMT_DISALLOW_COPY_AND_ASSIGN, and FMT_NOEXCEPT.
Definition at line 223 of file posix.h.
References fmt::File::Proxy::fd.
Definition at line 194 of file posix.cc.
References close(), fmt::BufferedFile::File, and FMT_POSIX_CALL.
std::size_t fmt::File::read | ( | void * | buffer, |
std::size_t | count | ||
) |
Definition at line 153 of file posix.cc.
References FMT_POSIX_CALL, FMT_RETRY, and fmt::internal::to_unsigned().
fmt::LongLong fmt::File::size | ( | ) | const |
Definition at line 127 of file posix.cc.
References FMT_POSIX_CALL, FMT_STATIC_ASSERT, FMT_SYSTEM, HANDLE(), fmt::LongLong, and fmt::ULongLong.
std::size_t fmt::File::write | ( | const void * | buffer, |
std::size_t | count | ||
) |
Definition at line 161 of file posix.cc.
References FMT_POSIX_CALL, FMT_RETRY, fmt::internal::to_unsigned(), and fmt::internal::write().