OmniSciDB  cde582ebc3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavyai_fs.cpp File Reference
#include "OSDependent/heavyai_fs.h"
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "Logger/Logger.h"
+ Include dependency graph for heavyai_fs.cpp:

Go to the source code of this file.

Namespaces

 heavyai
 

Functions

int heavyai::get_page_size ()
 
size_t heavyai::file_size (const int fd)
 
void * heavyai::checked_mmap (const int fd, const size_t sz)
 
void heavyai::checked_munmap (void *addr, size_t length)
 
int heavyai::msync (void *addr, size_t length, bool async)
 
int heavyai::fsync (int fd)
 
int heavyai::open (const char *path, int flags, int mode)
 
void heavyai::close (const int fd)
 
::FILE * heavyai::fopen (const char *filename, const char *mode)
 
::FILE * heavyai::popen (const char *command, const char *type)
 
int32_t heavyai::pclose (::FILE *fh)
 
int32_t heavyai::ftruncate (const int32_t fd, int64_t length)
 
int heavyai::safe_open (const char *path, int flags, mode_t mode) noexcept
 
int heavyai::safe_close (int fd) noexcept
 
int heavyai::safe_fcntl (int fd, int cmd, struct flock *fl) noexcept
 
ssize_t heavyai::safe_read (const int fd, void *buffer, const size_t buffer_size) noexcept
 
ssize_t heavyai::safe_write (const int fd, const void *buffer, const size_t buffer_size) noexcept
 
int32_t heavyai::safe_ftruncate (const int32_t fd, int64_t length) noexcept