pstore2
Namespaces | Functions
file_posix.cpp File Reference

POSIX implementation of the cross-platform file APIs. More...

#include "pstore/os/file.hpp"
#include <array>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <limits>
#include <sstream>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "pstore/adt/small_vector.hpp"
#include "pstore/os/path.hpp"
#include "pstore/support/gsl.hpp"
#include "pstore/support/quoted.hpp"
#include "pstore/support/unsigned_cast.hpp"
Include dependency graph for file_posix.cpp:

Namespaces

 pstore::file
 The 'file' namespace contains all of the database file management functions and classes .
 
 pstore::file::posix
 A namespace to hold POSIX-specific file interfaces.
 

Functions

bool pstore::file::exists (std::string const &path)
 Returns true if the file system contains an object at the location given by path. More...
 
void pstore::file::unlink (std::string const &path, bool allow_noent=false)
 Deletes the file system object at the location given by path. More...
 

Detailed Description

POSIX implementation of the cross-platform file APIs.