Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions

veo06.c File Reference


Detailed Description

RTE - Virtual File for Applications.

Author:
DanielD area
See also:

Definition in file veo06.c.

#include "gsp00.h"
#include "heo00.h"
#include "geo007_2.h"
#include "heo01.h"
#include "heo06.h"
#include <limits.h>
#include "geo54.h"
#include "gen00.h"
#include "heo602.h"
#include "hsp78_0.h"
#include "RunTime/RTE_EnvironmentVariables.h"
#include <assert.h>
#include <sys/stat.h>
#include <time.h>
#include <fcntl.h>
#include <sys/types.h>
#include <dirent.h>

Go to the source code of this file.

Classes

struct  CacheT
struct  ChunkMemT
struct  EnumClassT
struct  FileClassT
struct  FileT
struct  MemChunkT
struct  StdHandleMapT

Defines

#define _POSIX_C_SOURCE   199506L
#define alignmentC   8
#define bufferedC   TRUE
#define CACHEPOINTER(cache)   ((cache)->mem + (cache)->current)
#define chunkGrowRateC   8
#define E06_FILEOPEN_OS(fname, fileMode, buffering, file, ferr)
#define envVarCharC   '$'
#define eo06_CLOSE_V(file, options, err)
#define eo06_FLUSH_V(file, err)   (file->classDesc->flushFunction (file, err))
#define eo06_ISLINK_OS(xstat)   FALSE
#define eo06_ISWRITER_V(file)   (file->classDesc->writeFunction != eo06_writeReadStream)
#define eo06_LARGE_MINUS_LONG(large, longVal)   ((large) - (LargeIntegerT) (longVal))
#define eo06_LONG_X_LONG_2_LARGE_OS(longVal1, longVal2, calcOK)   eo06_32bit_longXlong2large (longVal1, longVal2, calcOK)
#define eo06_LONGSEEK_BUFFERED_READ   eo06_seekBufferedRead
#define eo06_LONGSEEK_BUFFERED_WRITE   eo06_seekBufferedWrite
#define eo06_LONGSEEK_UNBUFFERED   eo06_seekUnbuffered
#define eo06_LONGSEEK_V(file, distance, whence, err)
#define eo06_LOW_LEVEL_READ_V(file, buf, len, err, forC)
#define EO06_PATH_MAX_C   PATH_MAX
#define eo06_READ_V(file, buf, len, err, forC)
#define eo06_SEEK_V(file, distance, whence, err)
#define eo06_VALIDPOS(file)   (file->filePos >= 0)
#define eo06_WRITE_V(file, buf, len, err)
#define eolMarkerSizeC   1
#define firstValidHandleC   1
#define HANDLE_TO_POINTER_INL(mem, handle)
#define invalidHandleC   (-1)
#define lotsOfMemoryC   1
#define MF__   MOD__"putEnumHeader"
#define MF__   MOD__"sqlremove_empty_dirc"
#define MF__   MOD__"sqlcreate_dirc"
#define MF__   MOD__"eo01_create_dir"
#define MF__   MOD__"sqljoindirc"
#define MF__   MOD__"seo06_endsWithDirDelimiter"
#define MF__   MOD__"eo06_isAbsolute"
#define MF__   MOD__"sqlchdirc"
#define MF__   MOD__"sqlgetcwdc"
#define MF__   MOD__"sqlfreaddirc"
#define MF__   MOD__"sqlfclosedirc"
#define MF__   MOD__"sqlfopendirc"
#define MF__   MOD__"sqlfilecopyc"
#define MF__   MOD__"eo06_fileClose"
#define MF__   MOD__"eo06_rewindTapeUnix"
#define MF__   MOD__"eo06_fileOpenUnix"
#define MF__   MOD__"eo06_mkfifoUnix"
#define MF__   MOD__"sqlmkfifop"
#define MF__   MOD__"sqlmkfifoc"
#define MF__   MOD__"eo06_lockFileUnix"
#define MF__   MOD__"eo06_tryStdUnix"
#define MF__   MOD__"sqlffinishp"
#define MF__   MOD__"sqlffinishc"
#define MF__   MOD__"sqlfinfop"
#define MF__   MOD__"sqlfinfoc"
#define MF__   MOD__"eo06_sqlfinfo"
#define MF__   MOD__"eo06_fillMediaUnix"
#define MF__   MOD__"eo06_fillDirectoryInfoUnix"
#define MF__   MOD__"eo06_fillTimeUnix"
#define MF__   MOD__"eo06_fillPrivilegesUnix"
#define MF__   MOD__"eo06_fillUnknown"
#define MF__   MOD__"sqlferasep"
#define MF__   MOD__"sqlferasec"
#define MF__   MOD__"eo06_sqlferase"
#define MF__   MOD__"sqlftruncatep"
#define MF__   MOD__"sqlftruncatec"
#define MF__   MOD__"eo06_sqlftruncate"
#define MF__   MOD__"sqlftellp"
#define MF__   MOD__"sqlftellc"
#define MF__   MOD__"sqlflongseekp"
#define MF__   MOD__"sqlflongseekc"
#define MF__   MOD__"sqlfseekp"
#define MF__   MOD__"sqlfseekc"
#define MF__   MOD__"sqlfwritep"
#define MF__   MOD__"sqlfwritec"
#define MF__   MOD__"sqlfreadp"
#define MF__   MOD__"sqlfreadc"
#define MF__   MOD__"eo06_sqlfread"
#define MF__   MOD__"sqlfclosep"
#define MF__   MOD__"sqlfclosec"
#define MF__   MOD__"sqlfsaveopenp"
#define MF__   MOD__"sqlfsaveopenc"
#define MF__   MOD__"eo06_sqlfsaveopen"
#define MF__   MOD__"eo06_page0_read"
#define MF__   MOD__"sqlfopenEncodedc"
#define MF__   MOD__"sqlfopenp"
#define MF__   MOD__"sqlfopenc"
#define MF__   MOD__"eo06_sqlfopen"
#define MF__   MOD__"eo06_openArgsOK"
#define MF__   MOD__"eo06_encchr"
#define MF__   MOD__"eo06_encchr"
#define MF__   MOD__"eo06_handleEncoding"
#define MF__   MOD__"eo06_skipIndicator"
#define MF__   MOD__"eo06_detectFileEncoding"
#define MF__   MOD__"eo06_checkFileEncoding"
#define MF__   MOD__"eo06_detectEncoding"
#define MF__   MOD__"eo06_fileClass"
#define MF__   MOD__"eo06_seekBufferedWrite"
#define MF__   MOD__"eo06_seekBufferedRead"
#define MF__   MOD__"eo06_seekUnbuffered"
#define MF__   MOD__"eo06_seekBySkip"
#define MF__   MOD__"eo06_flushBuffer"
#define MF__   MOD__"eo06_flushDummy"
#define MF__   MOD__"eo06_writeUnbufferedEncoded"
#define MF__   MOD__"eo06_writeBufferedEncoded"
#define MF__   MOD__"eo06_readBufferedEncoded"
#define MF__   MOD__"eo06_writeBufferedText"
#define MF__   MOD__"eo06_readBufferedText"
#define MF__   MOD__"eo06_writeUnbufferedText"
#define MF__   MOD__"eo06_writeBufferedBinary"
#define MF__   MOD__"eo06_readBufferedBinary"
#define MF__   MOD__"eo06_writeUnbufferedBinary"
#define MF__   MOD__"eo06_readUnbufferedBinary"
#define MF__   MOD__"eo06_writeReadStream"
#define MF__   MOD__"eo06_readWriteStream"
#define MF__   MOD__"eo06_generalEncodingError"
#define MF__   MOD__"eo06_encodingError"
#define MF__   MOD__"eo06_pagesizeError"
#define MF__   MOD__"eo06_paramError"
#define MF__   MOD__"eo06_seekError"
#define MF__   MOD__"eo06_lockError"
#define MF__   MOD__"eo06_cookName"
#define MF__   MOD__"eo06_trimLen"
#define MF__   MOD__"eo06_putInt"
#define MF__   MOD__"eo06_nextUsedHandle"
#define MF__   MOD__"eo06_freeSlot"
#define MF__   MOD__"eo06_getPointer"
#define MF__   MOD__"eo06_allocSlot"
#define MF__   MOD__"eo06_addChunk"
#define MF__   MOD__"eo06_initMemory"
#define MF__   MOD__"eo06_32bit_longXlong2large"
#define MF__   MOD__"eo06_osError"
#define MF__   MOD__"eo06_eofError"
#define MF__   MOD__"eo06_ferror"
#define MF__   MOD__"eo06_clearError"
#define MINIMUM_PAGE0_SIZE_EO06   4096
#define MOD__   "veo06.c: "
#define OUT_OF_ENUM_INL(val, low, high)   (val > high)
#define READSLACK(cache)   ((cache)->extent - (cache)->current)
#define slotsPerChunkC   8
#define smallCacheSizeC   255
#define standardCacheSizeC   4096
#define SWITCH_ERROR_DBG(str, val)
#define systemCallErrorC   (-1)
#define TRCIN   { }
#define TRCIN_P(x)   { }
#define TRCOUT   { }
#define TRCOUT_P(x)   { }
#define TRCPAS   { }
#define TRCPAS_P(x)   { }
#define unbufferedC   FALSE
#define USEVAR_DBG(var)
#define vf_t_directory   7
#define vf_t_tape   6
#define WRITESLACK(cache)   ((cache)->memSize - (cache)->current)

Typedefs

typedef unsigned char byte
typedef void enumCLose_FT (tsp05_SpecialEnumeration *listHandle)
typedef tsp05_SpecialEnumeration * enumConstructor_FT (boolean longInfo, const char *additionalInfo, char *header, int headerSize, tsp05_RteFileError *ferr)
typedef void enumNext_FT (tsp05_SpecialEnumeration *listHandle, char *buf, int bufSize, tsp05_RteFileError *ferr)
typedef void eo06_closeFT (FileT *file, tsp05_RteCloseOption_Param option, tsp05_RteFileError *err)
typedef void eo06_flushFT (FileT *file, tsp05_RteFileError *err)
typedef void eo06_longseekFT (FileT *file, LargeIntegerT distance, tsp05_RteSeekKind_Param whence, tsp05_RteFileError *err)
typedef int eo06_lstat_function (const char *, struct stat *)
typedef tsp00_Longint eo06_readFT (FileT *file, byte *buf, tsp00_Longint bufLen, tsp05_RteFileError *err, BOOLEAN forC)
typedef void eo06_seekFT (FileT *file, tsp00_Longint distance, tsp05_RteSeekKind_Param whence, tsp05_RteFileError *err)
typedef tsp00_Longint eo06_writeFT (FileT *file, const byte *buf, tsp00_Longint bufLen, tsp05_RteFileError *err)
typedef struct FileT FileT
typedef long LargeIntegerT
typedef int OSFileHandleT

Functions

static long eo06_32bit_longXlong2large (long val1, long val2, BOOLEAN *calcOK)
static BOOLEAN eo06_addChunk (ChunkMemT *memory, int *chunkIndex, int *slotIndex)
static BOOLEAN eo06_allocCacheMem (CacheT *cache, int bufferSize, BOOLEAN aligned)
static tsp00_Int4 eo06_allocSlot (ChunkMemT *memory, int byteSize)
static void eo06_checkFileEncoding (FileT *file, tsp05_RteFileError *ferr)
static void eo06_clearError (tsp05_RteFileError *ferr)
static const char * eo06_cookName (char *nameBuf, unsigned int bufSize, const char *rawFName, int len)
static boolean eo06_create_dir (char *PathToCreate, tsp01_RteError *RteError)
static const tsp77encodingeo06_detectEncoding (const byte *buf, int bufLen)
static void eo06_detectFileEncoding (FileT *file, tsp05_RteFileError *ferr)
static const byte * eo06_encchr (const void *buf, const tsp77charConst *charConst, int bufSize)
static int eo06_enclen (const tsp77encoding *encoding, const void *buf)
static void eo06_encodingError (tsp05_RteFileError *ferr, const tsp77encoding *givenEncoding)
static boolean eo06_endsWithDirDelimiter (const char *filename, int nameLen)
static void eo06_eofError (tsp05_RteFileError *ferr)
static void eo06_ferror (tsp05_RteFileError *ferr, const char *errText)
static FileClassT * eo06_fileClass (tsp05_RteDataKind_Param dataKind, tsp05_RteFileMode_Param fileMode, tsp05_RteBufferingKind_Param bufKind)
static void eo06_fileClose (FileT *file, tsp05_RteCloseOption_Param option, tsp05_RteFileError *err)
static BOOLEAN eo06_fileOpenUnix (const char *fname, tsp05_RteFileMode_Param fileMode, tsp05_RteBufferingKind_Param buffering, FileT *file, tsp05_RteFileError *ferr)
static void eo06_fillDirectoryInfoUnix (tsp05_RteFileInfo *finfo)
static void eo06_fillMediaUnix (tsp05_RteFileInfo *finfo, const char *fname, struct stat *xstat)
static void eo06_fillPrivilegesUnix (tsp05_RteFileInfo *finfo, struct stat *xstat)
static void eo06_fillTimeUnix (tsp05_RteFileInfo *finfo, time_t ftime)
static void eo06_fillUnknown (tsp05_RteFileInfo *finfo)
static void eo06_flushBuffer (FileT *file, tsp05_RteFileError *err)
static void eo06_flushDummy (FileT *file, tsp05_RteFileError *err)
static void eo06_freeSlot (ChunkMemT *memory, tsp00_Int4 handle)
static void eo06_generalEncodingError (tsp05_RteFileError *ferr, tsp78ConversionResult convResult)
static FileT * eo06_getPointer (ChunkMemT *memory, tsp00_Int4 handle)
static void eo06_handleEncoding (FileT *file, tsp05_RteFileMode_Param fileMode, tsp05_RteFileError *ferr)
static BOOLEAN eo06_initMemory (ChunkMemT *memory, int bytesPerItem)
static boolean eo06_isAbsolute (const char *filename, boolean resolveEnvironment)
static BOOLEAN eo06_isLockable (struct stat *statInfo)
static void eo06_lockError (tsp05_RteFileError *ferr)
static BOOLEAN eo06_lockFileUnix (OSFileHandleT osHandle, tsp05_RteFileMode_Param fileMode, tsp05_RteFileError *ferr)
static void eo06_mkfifoUnix (const char *PipeName, tsp05_RteFileError *ferr)
static BOOLEAN eo06_nextUsedHandle (ChunkMemT *memory, tsp00_Int4 *handle)
static BOOLEAN eo06_openArgsOK (tsp05_RteDataKind_Param dataKind, tsp05_RteFileMode_Param fileMode, tsp05_RteBufferingKind_Param buffering, tsp05_RteFileError *ferr)
static void eo06_osError (tsp05_RteFileError *ferr)
static void eo06_padLen (tsp00_Byte *str, int bufLen)
static boolean eo06_page0_io (FileT *file, tsp05_RteFileMode_Param fileMode, tsp00_Int4 *bufferSize, tsp05_RteFileError *ferr)
static void eo06_page0_read (FileT *file, tsp05_RteFileMode_Param fileMode, tsp00_Int4 *bufferSize, tsp05_RteFileError *ferr)
static void eo06_pagesizeError (tsp05_RteFileError *ferr, int pageSizeGiven, int pageSizeRead)
static void eo06_paramError (tsp05_RteFileError *ferr, const char *paramName)
static void eo06_putInt (tsp00_Byte *buf, int value, int digits)
static tsp00_Longint eo06_readBufferedBinary (FileT *file, byte *buf, tsp00_Longint bufLen, tsp05_RteFileError *err, BOOLEAN forC)
static tsp00_Longint eo06_readBufferedEncoded (FileT *file, byte *buf, tsp00_Longint bufLen, tsp05_RteFileError *err, BOOLEAN forC)
static tsp00_Longint eo06_readBufferedText (FileT *file, byte *buf, tsp00_Longint bufLen, tsp05_RteFileError *err, BOOLEAN forC)
static tsp00_Longint eo06_readUnbufferedBinary (FileT *file, byte *buf, tsp00_Longint bufLen, tsp05_RteFileError *err, BOOLEAN forC)
static tsp00_Longint eo06_readWriteStream (FileT *file, byte *buf, tsp00_Longint bufLen, tsp05_RteFileError *err, BOOLEAN forC)
static BOOLEAN eo06_rewindTapeUnix (FileT *file)
static void eo06_seekBufferedRead (FileT *file, tsp00_Longint distance, tsp05_RteSeekKind_Param whence, tsp05_RteFileError *err)
static void eo06_seekBufferedWrite (FileT *file, tsp00_Longint distance, tsp05_RteSeekKind_Param whence, tsp05_RteFileError *err)
static void eo06_seekBySkip (FileT *file, tsp00_Longint distance, tsp05_RteSeekKind_Param whence, tsp05_RteFileError *err)
static void eo06_seekError (tsp05_RteFileError *ferr)
static void eo06_seekUnbuffered (FileT *file, tsp00_Longint distance, tsp05_RteSeekKind_Param whence, tsp05_RteFileError *err)
static void eo06_skipIndicator (FileT *file, tsp05_RteFileMode_Param fileMode)
static void eo06_sqlferase (const char *fname, tsp05_RteFileError *ferr)
void eo06_sqlfinfo (const char *fname, tsp05_RteFileInfo *finfo, tsp05_RteFileError *ferr)
static void eo06_sqlfopen (const char *fname, const tsp77encoding **fileEncoding, const tsp77encoding *clientEncoding, tsp05_RteDataKind_Param dataKind, tsp05_RteFileMode_Param fileMode, tsp05_RteBufferingKind_Param buffering, tsp00_Int4 *fileHandle, tsp05_RteFileError *ferr)
static void eo06_sqlfread (tsp00_Int4 fileHandle, void *buf, tsp00_Longint bufSize, tsp00_Longint *outLen, tsp05_RteFileError *ferr, BOOLEAN forC)
static void eo06_sqlfsaveopen (const char *fname, tsp05_RteFileMode_Param fileMode, tsp00_Int4 *bufferSize, tsp00_Int4 *fileHandle, void **bufptr, tsp05_RteFileError *ferr)
static void eo06_sqlftruncate (FileT *file, tsp00_Longint newSize, tsp05_RteFileError *ferr)
static int eo06_trimLen (const tsp00_Byte *str, int len)
static BOOLEAN eo06_tryStdUnix (const char *fname, tsp05_RteFileMode_Param fileMode, FileT *file, tsp05_RteFileError *ferr)
static tsp00_Longint eo06_writeBufferedBinary (FileT *file, const byte *buf, tsp00_Longint bufLen, tsp05_RteFileError *err)
static tsp00_Longint eo06_writeBufferedEncoded (FileT *file, const byte *buf, tsp00_Longint bufLen, tsp05_RteFileError *err)
static tsp00_Longint eo06_writeBufferedText (FileT *file, const byte *buf, tsp00_Longint bufLen, tsp05_RteFileError *err)
static tsp00_Longint eo06_writeReadStream (FileT *file, const byte *buf, tsp00_Longint bufLen, tsp05_RteFileError *err)
static tsp00_Longint eo06_writeUnbufferedBinary (FileT *file, const byte *buf, tsp00_Longint bufLen, tsp05_RteFileError *err)
static tsp00_Longint eo06_writeUnbufferedEncoded (FileT *file, const byte *buf, tsp00_Longint bufLen, tsp05_RteFileError *err)
static tsp00_Longint eo06_writeUnbufferedText (FileT *file, const byte *buf, tsp00_Longint bufLen, tsp05_RteFileError *err)
static boolean putEnumHeader (EnumClassT *classDesc, char *header, int headerSize, tsp05_RteFileError *ferr)
externC boolean sqlchdirc (const char *dirname, tsp01_RteError *RteError)
 Changes the current directory.
boolean sqlcreate_dirc (char *PathToCreate, tsp01_RteError *RteError)
 Creates a new directory.
char * sqlerrs ()
externC void sqlfclosec (tsp00_Int4 fileHandle, tsp05_RteCloseOption_Param option, tsp05_RteFileError *ferr)
 Closes the specified file.
externC void sqlfclosedirc (void *dirHandle, tsp05_RteFileError *ferr)
 Closes the given directory handle.
externC void sqlfclosep (tsp00_Int4 fileHandle, tsp05_RteCloseOption option, tsp05_RteFileError *ferr)
externC void sqlferasec (const char *rawFName, tsp05_RteFileError *ferr)
 Erases the given file.
externC void sqlferasep (const tsp00_VFilename rawFName, tsp05_RteFileError *ferr)
externC void sqlffinishc (void)
 Closes all open file handles.
externC void sqlffinishp (void)
boolean sqlfilecopyc (char *Src, char *Dst, tsp01_RteError *RteError)
 Copies a file from Src to Dst.
externC void sqlfinfoc (const char *rawFName, tsp05_RteFileInfo *finfo, tsp05_RteFileError *ferr)
 Returns information about the given file.
externC void sqlfinfop (const tsp00_VFilename rawFName, tsp05_RteFileInfo *finfo, tsp05_RteFileError *ferr)
externC void sqlflongseekc (tsp00_Int4 fileHandle, tsp00_Longint distance, tsp00_Longint recordCount, tsp05_RteSeekKind_Param whence, tsp05_RteFileError *ferr)
 Moves the file pointer (suitable for 64bit file systems).
externC void sqlflongseekp (tsp00_Int4 fileHandle, tsp00_Longint distance, tsp00_Longint recordCount, tsp05_RteSeekKind whence, tsp05_RteFileError *ferr)
externC void sqlfopenc (const char *rawFName, tsp05_RteDataKind_Param dataKind, tsp05_RteFileMode_Param fileMode, tsp05_RteBufferingKind_Param buffering, tsp00_Int4 *fileHandle, tsp05_RteFileError *ferr)
 Opens a operating system file for reading or writing.
externC void sqlfopendirc (tsp00_C256 *dirname, void **dirHandleP, tsp00_C256 *firstname, tsp05_RteFileError *ferr)
 Opens a directory for iterating over the filenames.
externC void sqlfopenEncodedc (const char *rawFName, const tsp77encoding **fileEncoding, const tsp77encoding *clientEncoding, tsp05_RteFileMode_Enum fileMode, tsp05_RteBufferingKind_Enum buffering, tsp00_Int4 *fileHandle, tsp05_RteFileError *ferr)
externC void sqlfopenp (const tsp00_VFilename rawFName, tsp05_RteDataKind dataKind, tsp05_RteFileMode fileMode, tsp05_RteBufferingKind buffering, tsp00_Int4 *fileHandle, tsp05_RteFileError *ferr)
externC void sqlfreadc (tsp00_Int4 fileHandle, void *buf, tsp00_Longint bufSize, tsp00_Longint *outLen, tsp05_RteFileError *ferr)
 Reads data from the specified file.
externC void sqlfreaddirc (void *dirHandle, tsp00_C256 *fname, tsp05_RteFileError *ferr)
externC void sqlfreadp (tsp00_Int4 fileHandle, void *buf, tsp00_Longint bufSize, tsp00_Longint *outLen, tsp05_RteFileError *ferr)
externC void sqlfsaveopenc (const char *rawFName, tsp05_RteFileMode_Param fileMode, tsp00_Int4 *buffersize, tsp00_Int4 *fileHandle, void **bufptr, tsp05_RteFileError *ferr)
 Opens a database save for reading or writing.
externC void sqlfsaveopenp (const tsp00_VFilename rawFName, tsp05_RteFileMode fileMode, tsp00_Int4 *buffersize, tsp00_Int4 *fileHandle, void **bufptr, tsp05_RteFileError *ferr)
externC void sqlfseekc (tsp00_Int4 fileHandle, tsp00_Longint distance, tsp05_RteSeekKind_Param whence, tsp05_RteFileError *ferr)
 Moves the file pointer.
externC void sqlfseekp (tsp00_Int4 fileHandle, tsp00_Longint distance, tsp05_RteSeekKind whence, tsp05_RteFileError *ferr)
externC void sqlftellc (tsp00_Int4 fileHandle, tsp00_Longint *pos, tsp05_RteFileError *ferr)
 Gets the current file position.
externC void sqlftellp (tsp00_Int4 fileHandle, tsp00_Longint *pos, tsp05_RteFileError *ferr)
externC void sqlftruncatec (tsp00_Int4 fileHandle, tsp00_Longint newSize, tsp05_RteFileError *ferr)
 Truncate the given file, but do not modify current write position.
externC void sqlftruncatep (tsp00_Int4 fileHandle, tsp00_Longint newSize, tsp05_RteFileError *ferr)
externC void sqlfwritec (tsp00_Int4 fileHandle, const void *buf, tsp00_Longint inLen, tsp05_RteFileError *ferr)
 Write data from the specified file.
externC void sqlfwritep (tsp00_Int4 fileHandle, const void *buf, tsp00_Longint inLen, tsp05_RteFileError *ferr)
externC boolean sqlgetcwdc (char *dirbuf, int buflen, tsp01_RteError *RteError)
 Retrieves the name of the current directory.
externC tsp00_Bool sqlgetpass (const char *Prompt, tsp00_Namec Password, tsp05_RteFileError *ferr)
externC const char * sqljoindirc (char *target, const char *part1, const char *part2, unsigned int targetSize)
 Concatenates two path names to a new pathname.
void sqlmkfifoc (const char *rawFName, tsp05_RteFileError *ferr)
 Create a named pipe (UNIX only).
void sqlmkfifop (const tsp00_VFilename rawFName, tsp05_RteFileError *ferr)
boolean sqlremove_empty_dirc (const char *PathToRemove, tsp01_RteError *RteError)
 Deletes a empty directory.

Variables

static ChunkMemT allFilesV = {NULL, 0, 0, 0, 0, 0}
static char Check_Before_Read_ErrText [] = "Check filetype before first read"
static FileClassT * classDesc [3][3][2]
static eo06_lstat_function * eo06_lstat = (eo06_lstat_function*) stat
static FileClassT eo06_readBufferedBinaryVMT
static FileClassT eo06_readBufferedEncodedVMT
static FileClassT eo06_readBufferedTextVMT
static FileClassT eo06_readUnbufferedBinaryVMT
static FileClassT eo06_readUnbufferedEncodedVMT
static FileClassT eo06_readUnbufferedTextVMT
static FileClassT eo06_readwriteUnbufferedBinaryVMT
static FileClassT eo06_writeBufferedBinaryVMT
static FileClassT eo06_writeBufferedEncodedVMT
static FileClassT eo06_writeBufferedTextVMT
static FileClassT eo06_writeUnbufferedBinaryVMT
static FileClassT eo06_writeUnbufferedEncodedVMT
static FileClassT eo06_writeUnbufferedTextVMT
static char File_At_End_ErrText [] = "End of file"
static char File_Not_Eraseable_ErrText [] = "File not deletable"
static char File_Not_Found_ErrText [] = "File not found"
static char File_Not_Lockable_ErrText [] = "File cannot be locked"
static char File_Open_For_Read_ErrText [] = "File open for read only"
static char File_Open_For_Write_ErrText [] = "File open for write only"
static char General_Encoding_ErrText [] = "Encoding error '%s'"
static char Invalid_FileType_ErrText [] = "File type invalid for this operation"
static char Invalid_Handle_ErrText [] = "Invalid handle"
static char Invalid_Open_ErrText [] = "Invalid combination of open parameters"
static char Invalid_Parameter_ErrText [] = "Parameter error: "
static char Missing_Encoding_ErrText [] = "Encoding required"
static char No_Reg_File_ErrText [] = "Not a regular file"
static char No_Seek_ErrText [] = "Seek not allowed"
static char Out_Of_Memory_ErrText [] = "Out of memory"
static char Pagesize_Not_OK_ErrText [] = "Page size given %d, required %d"
static char Seek_Range_ErrText [] = "Seek out of range"
static char Wrong_Encoding_ErrText [] = "File not encoded as %s"


Generated by  Doxygen 1.6.0   Back to index