45 #ifndef Included_SysFile
46 #define Included_SysFile
48 #include "rexxapitypes.h"
56 #define RX_O_RDONLY _O_RDONLY
57 #define RX_O_WRONLY _O_WRONLY
58 #define RX_O_RDWR _O_RDWR
59 #define RX_O_CREAT _O_CREAT
60 #define RX_O_EXCL _O_EXCL
61 #define RX_O_TRUNC _O_TRUNC
62 #define RX_O_APPEND _O_APPEND
64 #define RX_SH_DENYWR _SH_DENYWR
65 #define RX_SH_DENYRD _SH_DENYRD
66 #define RX_SH_DENYRW _SH_DENYRW
67 #define RX_SH_DENYNO _SH_DENYNO
69 #define RX_S_IWRITE _S_IWRITE
70 #define RX_S_IREAD _S_IREAD
72 #define BLOCK_THRESHOLD (32*1024)
86 #define LINE_TERMINATOR "\r\n"
88 bool open(
const char *name,
int openFlags,
int openMode,
int shareMode);
97 bool read(
char *buf,
size_t len,
size_t &bytesRead);
98 bool write(
const char *data,
size_t len,
size_t &bytesWritten);
102 bool puts(
const char *data,
size_t &bytesWritten);
132 int writeData(
const char *data,
size_t length);
bool putLine(const char *buffer, size_t len, size_t &bytesWritten)
bool getSize(const char *name, int64_t &size)
bool getTimeStamp(const char *name, const char *&time)
bool gets(char *buffer, size_t len, size_t &bytesRead)
bool nextLine(size_t &bytesRead)
bool getSize(int64_t &size)
bool seek(int64_t offset, int direction, int64_t &position)
bool seekForwardLines(int64_t startPosition, int64_t &lineCount, int64_t &endPosition)
@ LINE_POSITIONING_BUFFER
int writeData(const char *data, size_t length)
bool puts(const char *data, size_t &bytesWritten)
bool getPosition(int64_t &position)
void setBuffering(bool buffer, size_t length)
bool getTimeStamp(const char *&time)
bool open(const char *name, int openFlags, int openMode, int shareMode)
bool read(char *buf, size_t len, size_t &bytesRead)
bool countLines(int64_t &count)
bool write(const char *data, size_t len, size_t &bytesWritten)
bool countLines(int64_t start, int64_t end, int64_t &lastLine, int64_t &count)
bool setPosition(int64_t location, int64_t &position)