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

heo06.h File Reference


Detailed Description

Handling of files and directories.

Author:
DanielD area RTE | Client | Virtual File
See also:
http://p26326.bea.sap-ag.de/LZU/specs/VirtualFile.htm

Definition in file heo06.h.

#include "gsp01.h"
#include "gsp05.h"
#include "hsp77.h"

Go to the source code of this file.

Functions

Directory Functions


externC boolean sqlchdirc (const char *dirname, tsp01_RteError *RteError)
 Changes the current directory.
externC boolean sqlcreate_dirc (char *PathToCreate, tsp01_RteError *RteError)
 Creates a new directory.
externC void sqlfclosedirc (void *dirHandle, tsp05_RteFileError *ferr)
 Closes the given directory handle.
externC void sqlfopendirc (tsp00_C256 *dirname, void **dirHandleP, tsp00_C256 *firstname, tsp05_RteFileError *ferr)
 Opens a directory for iterating over the filenames.
externC void sqlfreaddirc (void *dirHandle, tsp00_C256 *fname, tsp05_RteFileError *ferr)
 Reads the next name from a directory.
externC boolean sqlgetcwdc (char *dirbuf, int buflen, tsp01_RteError *RteError)
 Retrieves the name of the current directory.
externC const char * sqljoindirc (char *target, const char *part1, const char *part2, unsigned int targetSize)
 Concatenates two path names to a new pathname.
externC boolean sqlremove_empty_dirc (const char *PathToRemove, tsp01_RteError *RteError)
 Deletes a empty directory.
externC void sqlspecialclose (tsp05_SpecialEnumeration *listHandle)
 Closes the enumeration handle.
externC void sqlspecialenum (tsp05_SpecialdevKind_Param devKind, boolean longInfo, const char *additionalInfo, tsp05_SpecialEnumeration **listHandle, char *header, int headerSize, tsp05_RteFileError *ferr)
 Creates a new enumeration to iterate over special devices.
externC void sqlspecialnext (tsp05_SpecialEnumeration *listHandle, char *buf, int bufSize, tsp05_RteFileError *ferr)
 Copies information about the next item into buf.
Reading and Writing
Most routines are provided both with Pascal and C "bindings":

  • Pascal routines end with 'p'
  • C routines end with 'c'
  • the length of a Pascal string is determined by searching for the last non blank character
  • the length of a C string is determined by searching for the first zero byte
  • calls to Pascal and C version can be intermixed, even on the same file handle All filenames may contain references to environment variables of the form
  • varname% on NT
  • ${varname} on UNIX


externC void sqlfclosec (tsp00_Int4 fileHandle, tsp05_RteCloseOption_Param option, tsp05_RteFileError *ferr)
 Closes the specified file.
externC void sqlfclosep (tsp00_Int4 fileHandle, tsp05_RteCloseOption option, 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 sqlfopenEncodedc (const char *filename, const tsp77encoding **fileEncoding, const tsp77encoding *clientEncoding, tsp05_RteFileMode_Param fileMode, tsp05_RteBufferingKind_Param buffering, tsp00_Int4 *fileHandle, tsp05_RteFileError *ferr)
 Opens operating system file for reading or writing using a character encoding.
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 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 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)
File Functions


externC void sqlferasec (const char *rawFName, tsp05_RteFileError *ferr)
 Erases the given file.
externC void sqlferasep (const tsp00_VFilename rawFName, tsp05_RteFileError *ferr)
externC 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 sqlmkfifoc (const char *rawFName, tsp05_RteFileError *ferr)
 Create a named pipe (UNIX only).
externC void sqlmkfifop (const tsp00_VFilename rawFName, tsp05_RteFileError *ferr)
Misc.


externC void sqlffinishc (void)
 Closes all open file handles.
externC void sqlffinishp (void)
externC void sqlfunlockc (const char *rawFName, tsp05_RteFileError *ferr)
 Erases the given file.
externC void sqlfunlockp (const tsp00_VFilename rawFName, tsp05_RteFileError *ferr)
externC tsp00_Bool sqlgetpass (const char *Prompt, tsp00_Namec VAR_ARRAY_REF Password, tsp05_RteFileError VAR_VALUE_REF err)
 Reads password from console input.


Generated by  Doxygen 1.6.0   Back to index