41 #include "SysLibrary.hpp"
43 #include "SysFile.hpp"
97 read(&header,
sizeof(header));
130 read(&desc,
sizeof(desc));
131 strcpy(name, desc.
name);
154 read(&desc,
sizeof(desc));
159 strcpy(name, desc.
name);
209 write(&header,
sizeof(header));
223 write(&desc,
sizeof(desc));
237 if (bytesWritten != (
size_t)length)
254 if (bytesRead != (
size_t)length)
295 for (
size_t i = 0; i < count; i++)
337 for (
size_t i = 0; i < count; i++)
342 file.
nextMacro(names, macroName, image, order);
455 for (i = 0; i < count; i++)
457 strcpy(message.
nameArg, names[i]);
470 for (i = 0; i < count; i++)
472 strcpy(message.
nameArg, names[i]);
558 return addMacro(name, imageData, position);
601 if (fileInst->
getSize(fsize) ==
false)
611 if (!lib.
load(
"rexx"))
616 void *proc = lib.
getProcedure(
"RexxTranslateInstoreProgram");
657 fileInst->
read(target.
strptr, size, bytesRead);
658 if (bytesRead != size)
@ MACROSPACE_FILE_READ_ERROR
@ MACROSPACE_SIGNATURE_ERROR
@ MACRO_SOURCE_READ_ERROR
@ MACRO_TRANSLATION_ERROR
@ MACROSPACE_VERSION_ERROR
@ ITERATE_MACRO_DESCRIPTORS
RexxReturnCode addMacro(const char *name, ManagedRxstring &imageData, size_t position)
RexxReturnCode mapReturnResult(ServiceMessage &m)
RexxReturnCode removeMacro(const char *name)
RexxReturnCode clearMacroSpace()
void readRxstringFromFile(SysFile *file, ManagedRxstring &target, size_t size)
RexxReturnCode queryMacro(const char *target, size_t *pos)
RexxReturnCode loadMacroSpace(const char *target)
RexxReturnCode getMacro(const char *target, RXSTRING &image)
void translateRexxProgram(const char *sourcefile, ManagedRxstring &imageData)
virtual RexxReturnCode processServiceException(ServiceException *e)
RexxReturnCode saveMacroSpace(const char *target)
RexxReturnCode reorderMacro(const char *target, size_t pos)
RexxReturnCode addMacroFromFile(const char *name, const char *sourceFile, size_t position)
void create(size_t count)
void setFilePosition(size_t p)
void nextMacro(char *name, ManagedRxstring &image, size_t &order)
void write(const void *data, size_t length)
void read(void *data, size_t length)
void writeMacroDescriptor(const char *name, size_t size, size_t order)
void ensureCapacity(size_t size)
bool inTable(const char *name)
size_t getMessageDataLength()
ServerOperation operation
void setMessageData(void *data, size_t length)
void transferMessageData(RXSTRING &data)
bool getSize(int64_t &size)
bool seek(int64_t offset, int direction, int64_t &position)
bool open(const char *name, int openFlags, int openMode, int shareMode)
bool read(char *buf, size_t len, size_t &bytesRead)
bool write(const char *data, size_t len, size_t &bytesWritten)
void * getProcedure(const char *name)
bool load(const char *name)
#define RXMACRO_NO_STORAGE
#define RXMACRO_NOT_FOUND
#define RXMACRO_SOURCE_NOT_FOUND
#define RXMACRO_FILE_ERROR
#define RXMACRO_SIGNATURE_ERROR