FARGOS/VISTA Object Management Environment Core  ..
FARGOS/VISTA Object Management Environment Core Table of Contents
mapped_file.cpp File Reference
#include <utils/base/compiler_hints.h>
#include <utils/io/mapped_file.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
#include <fcntl.h>
#include <memory.h>
#include <utils/time/get_time.h>
#include <iostream>

Macros

#define MAX_PATH_ELEMENTS   256
 

Functions

uint_fast32_t makeQualifiedFileName (char *fileName, uint_fast32_t fileNameLen, const char *componentName, const char *suffix, const char *dirName, uint_fast32_t flags)
 Create a filename and optionally qualify with the current date and process Id. More...
 
size_t zeroFileContents (int descriptor, size_t fileLength)
 Write out zero-filled blocks to a file. More...
 
int createMappedFile (unsigned char **segment, const char *fileName, size_t *segmentLenPtr, uint_fast32_t doInit)
 Create or open a mapped file with the specified file name. More...
 
int expand_symlinks (char *resultPath, const uint_fast32_t bfrLen, const char *priorPath, uint_fast32_t priorLen, bool mustExist)
 Expand a path with symbolic links into its true name. More...
 
int findFileInPath (char *resultFile, uint_fast32_t resultBfrLen, const char *file, const char *searchPath, const char *suffix)
 Search for file under colon-separated path. More...
 

Macro Definition Documentation

◆ MAX_PATH_ELEMENTS

#define MAX_PATH_ELEMENTS   256
Generated: Fri Jul 31 2020 18:19:15
Support Information