Home | History | Annotate | Download | only in unix_file

Lines Matching refs:FdFile

28 FdFile::FdFile() : guard_state_(GuardState::kClosed), fd_(-1), auto_close_(true) {
31 FdFile::FdFile(int fd, bool check_usage)
36 FdFile::FdFile(int fd, const std::string& path, bool check_usage)
42 FdFile::~FdFile() {
59 void FdFile::moveTo(GuardState target, GuardState warn_threshold, const char* warning) {
70 void FdFile::moveUp(GuardState target, const char* warning) {
82 void FdFile::DisableAutoClose() {
86 bool FdFile::Open(const std::string& path, int flags) {
90 bool FdFile::Open(const std::string& path, int flags, mode_t mode) {
109 int FdFile::Close() {
128 int FdFile::Flush() {
138 int64_t FdFile::Read(char* buf, int64_t byte_count, int64_t offset) const {
147 int FdFile::SetLength(int64_t new_length) {
157 int64_t FdFile::GetLength() const {
163 int64_t FdFile::Write(const char* buf, int64_t byte_count, int64_t offset) {
173 int FdFile::Fd() const {
177 bool FdFile::IsOpened() const {
181 bool FdFile::ReadFully(void* buffer, size_t byte_count) {
196 bool FdFile::WriteFully(const void* buffer, size_t byte_count) {
210 void FdFile::Erase() {
216 int FdFile::FlushCloseOrErase() {
232 int FdFile::FlushClose() {
244 void FdFile::MarkUnchecked() {