OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavyai_fs.h File Reference
#include <cstddef>
#include <cstdint>
#include <cstdio>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
+ Include dependency graph for heavyai_fs.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 heavyai
 

Functions

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)
 
int heavyai::get_page_size ()
 
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