MySQL 8.0.40
Source Code Documentation
file_handle.cc File Reference
#include "mysql/harness/stdx/io/file_handle.h"
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <cstdio>
#include <string>
#include <system_error>
#include <unistd.h>
#include <cstdlib>
#include <array>
#include <random>
#include "mysql/harness/stdx/expected.h"

Namespaces

namespace  stdx
 
namespace  stdx::io
 
namespace  stdx::io::impl
 

Typedefs

using stdx::io::impl::stat_type = stat
 

Functions

static std::error_code stdx::io::last_posix_error_code ()
 
static std::error_code stdx::io::last_error_code ()
 
stdx::expected< int, std::error_code > stdx::io::impl::open (const char *fname, int flags, mode_t mode) noexcept
 
stdx::expected< void, std::error_code > stdx::io::impl::close (file_handle::native_handle_type handle) noexcept
 
stdx::expected< void, std::error_code > stdx::io::impl::unlink (const char *fn) noexcept
 
stdx::expected< stat_type, std::error_code > stdx::io::impl::fstat (int handle) noexcept
 
stdx::expected< std::size_t, std::error_code > stdx::io::impl::write (file_handle::native_handle_type handle, const char *data, const std::size_t len)
 
static std::string stdx::io::random_string (size_t sz)
 get random hex string. More...