#include "core/fxcrt/cfx_fileaccess_posix.h"
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#include <memory>
#include "core/fxcrt/fx_stream.h"
#include "core/fxcrt/numerics/safe_conversions.h"
#ifndef O_BINARY
#define O_BINARY …
#endif
#ifndef O_LARGEFILE
#define O_LARGEFILE …
#endif
std::unique_ptr<FileAccessIface> FileAccessIface::Create() { … }
CFX_FileAccess_Posix::CFX_FileAccess_Posix() : … { … }
CFX_FileAccess_Posix::~CFX_FileAccess_Posix() { … }
bool CFX_FileAccess_Posix::Open(ByteStringView fileName) { … }
void CFX_FileAccess_Posix::Close() { … }
FX_FILESIZE CFX_FileAccess_Posix::GetSize() const { … }
FX_FILESIZE CFX_FileAccess_Posix::GetPosition() const { … }
FX_FILESIZE CFX_FileAccess_Posix::SetPosition(FX_FILESIZE pos) { … }
size_t CFX_FileAccess_Posix::Read(pdfium::span<uint8_t> buffer) { … }
size_t CFX_FileAccess_Posix::Write(pdfium::span<const uint8_t> buffer) { … }
size_t CFX_FileAccess_Posix::ReadPos(pdfium::span<uint8_t> buffer,
FX_FILESIZE pos) { … }
bool CFX_FileAccess_Posix::Flush() { … }
bool CFX_FileAccess_Posix::Truncate(FX_FILESIZE szFile) { … }