#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#include <windows.h>
#include <rexx.h>
#include <oorexxapi.h>
#include "../../hostemu.h"
Go to the source code of this file.
Classes | |
struct | _LL |
Typedefs | |
typedef struct _LL | LL |
typedef LL * | PLL |
Functions | |
static unsigned long | ExecIO_Write_From_Stem (PLL pll) |
static unsigned long | ExecIO_Write_From_Queue (PLL pll) |
static unsigned long | ExecIO_Read_To_Stem (PLL pll) |
static unsigned long | ExecIO_Read_To_Queue (PLL pll) |
static PLL | Search_LL (char *SFilename) |
static void | Insert_LL (PLL pll) |
static void | Delete_LL (PLL pll) |
static long | queued (void) |
static void | push (char *pushstr, long lOp) |
static char * | pull (void) |
unsigned long | FetchRexxVar (char *pszVar, PRXSTRING prxVar) |
unsigned long | SetRexxVar (char *pszVar, char *pValue, size_t ulLen) |
RexxReturnCode RexxEntry | GrxHost (PCONSTRXSTRING command, unsigned short int *flags, PRXSTRING retc) |
static void RexxEntry | hostemu_loader (RexxThreadContext *context) |
static void RexxEntry | hostemu_unloader (RexxThreadContext *context) |
OOREXX_GET_PACKAGE (hostemu) | |
Variables | |
PCONSTRXSTRING | prxCmd = NULL |
EXECIO_OPTIONS | ExecIO_Options |
long | lCmdPtr |
unsigned long | ulNumSym |
char * | pszSymbol [SYMTABLESIZE] |
char | szInline [100000] |
long | lStmtType |
static HANDLE | htmxExecIO = NULL |
static PLL | pHead = NULL |
static PLL | pTail = NULL |
RexxPackageEntry | hostemu_package_entry |
Definition at line 83 of file windows/hostemu.cpp.
|
static |
|
static |
Definition at line 675 of file windows/hostemu.cpp.
References ERR_EXECIO_EOF, ExecIO_Options, _EXECIO_OPTIONS::lDirection, _EXECIO_OPTIONS::lRcdCnt, _EXECIO_OPTIONS::lStartRcd, _LL::pFile, push(), and szInline.
Referenced by GrxHost().
|
static |
Definition at line 586 of file windows/hostemu.cpp.
References _EXECIO_OPTIONS::aStem, ERR_EXECIO_EOF, ERR_EXECIO_NO_STORAGE, ERR_EXECIO_VAR_INVALID, ExecIO_Options, _EXECIO_OPTIONS::lRcdCnt, _EXECIO_OPTIONS::lStartRcd, _LL::pFile, SetRexxVar(), and szInline.
Referenced by GrxHost().
|
static |
Definition at line 507 of file windows/hostemu.cpp.
References ExecIO_Options, _EXECIO_OPTIONS::lRcdCnt, _EXECIO_OPTIONS::lStartRcd, _LL::pFile, pull(), queued(), and RexxFreeMemory().
Referenced by GrxHost().
|
static |
Definition at line 429 of file windows/hostemu.cpp.
References _EXECIO_OPTIONS::aStem, ERR_EXECIO_NO_STORAGE, ERR_EXECIO_VAR_INVALID, ExecIO_Options, FetchRexxVar(), _EXECIO_OPTIONS::lRcdCnt, _EXECIO_OPTIONS::lStartRcd, _LL::pFile, RexxFreeMemory(), and _RXSTRING::strptr.
Referenced by GrxHost().
unsigned long FetchRexxVar | ( | char * | pszVar, |
PRXSTRING | prxVar | ||
) |
Definition at line 143 of file windows/hostemu.cpp.
References RexxAllocateMemory(), RexxFreeMemory(), RexxVariablePool(), RXSHV_MEMFL, RXSHV_NEWV, RXSHV_OK, RXSHV_SYFET, _SHVBLOCK::shvcode, _SHVBLOCK::shvname, _SHVBLOCK::shvnamelen, _SHVBLOCK::shvnext, _SHVBLOCK::shvret, _SHVBLOCK::shvvalue, _SHVBLOCK::shvvaluelen, _RXSTRING::strlength, and _RXSTRING::strptr.
Referenced by ExecIO_Write_From_Stem().
RexxReturnCode RexxEntry GrxHost | ( | PCONSTRXSTRING | command, |
unsigned short int * | flags, | ||
PRXSTRING | retc | ||
) |
Definition at line 265 of file windows/hostemu.cpp.
References _EXECIO_OPTIONS::aFilename, _EXECIO_OPTIONS::aStem, Delete_LL(), ERR_EXECIO_BAD_PLIST, ERR_EXECIO_NO_STORAGE, ExecIO_Options, ExecIO_Read_To_Queue(), ExecIO_Read_To_Stem(), EXECIO_STMT, ExecIO_Write_From_Queue(), ExecIO_Write_From_Stem(), _EXECIO_OPTIONS::fFinis, _LL::FileName, _EXECIO_OPTIONS::fRW, HI_STMT, htmxExecIO, Insert_LL(), lCmdPtr, _EXECIO_OPTIONS::lDirection, _EXECIO_OPTIONS::lRcdCnt, _EXECIO_OPTIONS::lStartRcd, lStmtType, _LL::pFile, prxCmd, pszSymbol, RexxResetTrace(), RexxSetHalt(), RexxSetTrace(), RXSUBCOM_ERROR, RXSUBCOM_FAILURE, RXSUBCOM_OK, Search_LL(), _RXSTRING::strlength, _RXSTRING::strptr, TE_STMT, TS_STMT, ulNumSym, and yyparse().
Referenced by hostemu_loader().
|
static |
Definition at line 914 of file windows/hostemu.cpp.
References GrxHost(), htmxExecIO, and RexxRegisterSubcomExe().
|
static |
Definition at line 927 of file windows/hostemu.cpp.
References _LL::next, _LL::pFile, and pHead.
|
static |
OOREXX_GET_PACKAGE | ( | hostemu | ) |
|
static |
Definition at line 901 of file windows/hostemu.cpp.
References RexxPullFromQueue(), RXQUEUE_WAIT, and _RXSTRING::strptr.
Referenced by ExecIO_Write_From_Queue().
|
static |
Definition at line 871 of file windows/hostemu.cpp.
References RexxAddQueue(), _CONSTRXSTRING::strlength, and _CONSTRXSTRING::strptr.
Referenced by ExecIO_Read_To_Queue().
|
static |
Definition at line 843 of file windows/hostemu.cpp.
References RexxQueryQueue().
Referenced by ExecIO_Write_From_Queue().
|
static |
Definition at line 740 of file windows/hostemu.cpp.
References _LL::FileName, _LL::next, and pHead.
Referenced by GrxHost().
unsigned long SetRexxVar | ( | char * | pszVar, |
char * | pValue, | ||
size_t | ulLen | ||
) |
Definition at line 214 of file windows/hostemu.cpp.
References RexxVariablePool(), RXSHV_NEWV, RXSHV_OK, RXSHV_SYSET, _SHVBLOCK::shvcode, _SHVBLOCK::shvname, _SHVBLOCK::shvnamelen, _SHVBLOCK::shvnext, _SHVBLOCK::shvret, _SHVBLOCK::shvvalue, _SHVBLOCK::shvvaluelen, _RXSTRING::strlength, and _RXSTRING::strptr.
Referenced by ExecIO_Read_To_Stem().
EXECIO_OPTIONS ExecIO_Options |
Definition at line 62 of file windows/hostemu.cpp.
Referenced by ExecIO_Read_To_Queue(), ExecIO_Read_To_Stem(), ExecIO_Write_From_Queue(), ExecIO_Write_From_Stem(), and GrxHost().
RexxPackageEntry hostemu_package_entry |
Definition at line 939 of file windows/hostemu.cpp.
|
static |
Definition at line 92 of file windows/hostemu.cpp.
Referenced by GrxHost(), and hostemu_loader().
long lCmdPtr |
Definition at line 63 of file windows/hostemu.cpp.
Referenced by GrxHost().
long lStmtType |
Definition at line 67 of file windows/hostemu.cpp.
Referenced by GrxHost().
|
static |
Definition at line 93 of file windows/hostemu.cpp.
Referenced by Delete_LL(), hostemu_unloader(), Insert_LL(), and Search_LL().
PCONSTRXSTRING prxCmd = NULL |
Definition at line 61 of file windows/hostemu.cpp.
Referenced by GrxHost().
char* pszSymbol[SYMTABLESIZE] |
Definition at line 65 of file windows/hostemu.cpp.
Referenced by GrxHost().
|
static |
Definition at line 94 of file windows/hostemu.cpp.
Referenced by Delete_LL(), and Insert_LL().
char szInline[100000] |
Definition at line 66 of file windows/hostemu.cpp.
Referenced by ExecIO_Read_To_Queue(), and ExecIO_Read_To_Stem().
unsigned long ulNumSym |
Definition at line 64 of file windows/hostemu.cpp.
Referenced by GrxHost().