REXX Tips & Tricks, Version 2.80


Inf-HTML [About][Toc][Index] 0.9b (c) 1995 Peter Childs


RXU - powerful DLL for REXX


Name     RXU (was
         YDBAUTIL)
Version  RXU v1.a, 6. April 1996 
Author   Dave Boll 
         (see EMail Addresses)
Distrib. Freeware 
Type     REXX DLL 
Price    -
Source   BBS 
         Name:   RXU.* 
         or: RXUnn.* 
         (nn is the version number)

RXU is a powerful DLL providing a lot of useful functions for REXX 
programs:   
   *  Function Package utility functions 
      RxuInit 
              Register all RXU Rexx functions 
      RxuTerm 
              De-Register all RXU Rexx functions 
      RxuQuery 
              Query function package version and available external 
              function entry point names 
   *  Math Library Functions 
      RxuMthceil 
              smallest integer that is greater than or equal to "x" (from 
              "ceiling") 
      RxuMthcosh 
              hyperbolic cosine of "x" ("x" in radians) 
      RxuMthexp 
              "e" to the "x" power 
      RxuMthfloor 
              largest integer less than or equal to "x" (from "floor") 
      RxuMthfmod 
              floating point remainder of x/y 
      RxuMthfrexp 
              returns mantissa and exponent of "x" (two blank delimited 
              values) 
      RxuMthldexp 
              computes x*(2**y) 
      RxuMthlog 
              natural logarithm of "x" 
      RxuMthlog10 
              base-10 logarithm of "x" 
      RxuMthmodf 
              returns fractional and integral parts of "x" (two blank 
              delimited values) 
      RxuMthpow 
              "x" to the "y" power (x**y) 
      RxuMthsinh 
              hyperbolic sine of "x" ("x" in radians) 
      RxuMthtanh 
              hyperbolic tangent of "x" ("x" in radians) 
      RxuMthasin 
              arcsine of "x" (in radians) 
      RxuMthacos 
              arccosine of "x" (in radians) 
      RxuMthatan2 
              arctangent of "y/x" (in radians) 
      RxuMthatan 
              arctangent of "x" (in radians) 
      RxuMthsin 
              sine of "x" ("x" in radians) 
      RxuMthcos 
              cosine of "x" ("x" in radians) 
      RxuMthtan 
              tangent of "x" ("x" in radians) 
      RxuMthsqrt 
              square root of "x" 
      RxuMthfabs 
              absolute value of "x" 
      RxuMtherf 
              error function of "x" 
      RxuMtherfc 
              computes 1.0 - erf(x) (used for large values of "x") 
      RxuMthgamma 
              gamma function of "x" ( ln(|G(x)|) ) 
      RxuMthhypot 
              hypoteneuse of right triangle of sides "x" and "y" ( 
              sqrt(x**2 + y**2) ) 
   *  UPM/Net Related 
      RxUpm 
              Rexx interface to UPM 
      RxNet 
              Rexx interface to certain NET calls 
   *  System-Info related 
      RxSetExtLibPath 
              Set extended LIBPATH for current process 
      RxQueryExtLibPath 
              Query extended LIBPATH for current process 
      RxTmrQueryFreq 
              Query frequency of IRQ0 high-resolution timer 
      RxTmrQueryTime 
              Query snapshot of IRQ0 high-resolution timer 
      RxProcId 
              Get process' own PID and TID information 
      RxGetInfoBlocks 
              Get information about current process/thread 
      RxQueryAppType 
              Get information about an executable file 
      RxQuerySysInfo 
              Invoke DosQuerySysInfo 
      RxQProcStatus 
              Obtain Process Status Information (like PSTAT) 
      RxSetError 
              Set DosError settings (enable/disable HardError and 
              Exception popups) 
      RxReplaceModule 
              Replace an active .DLL or .EXE file 
      RxExitList 
              Use DosExitList 
      RxDevConfig 
              Obtain device configuration information 
      RxDevIOCtl 
              Do DosDevIOCtl calls (to talk to character devices directly) 
              
      RxPhysicalDisk 
              Query information about partitionable disks 
      RxDevIOCtl 
              Do DosDevIOCtl calls 
   *  Rexx programming and debugging functions 
      RxVlist 
              List, manipulate Rexx variable pool 
      RxGlobalVar 
              Put,Get,Delete system-wide global variables 
      RxScount 
              Count strings (needle) in another string (haystack) 
      RxPmPrintf 
              Write lines to a PMPrintf Monitor 
      RxCallInStore 
              Execute a string as a program 
      RxPassbyName 
              Allows a REXX program to call another REXX program 
      RxReturnByName 
              Allows a REXX program to return REXX variables by reference 
              or value 
      RxPBNBufSize 
              Set/Query fetch buffer size (used by RxPassByName) 
      RxTokenize 
              Tokenize ("Compile") a program string 
      RxPullQueue 
              Pull items from any Rexx data queue 
      RxAddQueue 
              Add items to any Rexx data queue 
      RxQueued 
              Query number of items on any Rexx data queue 
      RxQExists 
              Query existence of a Rexx Queue 
      RxSearchPath 
              Find a file in a path 
      RxRegisterFunctionExe 
              Use "RexxRegisterFunctionExe()" 
      RxRegisterExitDll 
              Use "RexxRegisterExitDll()" 
      RxRegisterExitExe 
              Use "RexxRegisterExitExe()" 
      RxQueryExit 
              Use "RexxQueryExit()" 
      RxDeregisterExit 
              Use "RexxDeregisterExit()" 
   *  I/O related 
      RxRsoe2f 
              Redirect StdOut/StdErr to a file (by file name) 
      RxRsoe2q 
              Redirect StdOut/StdErr to a rexx queue (by queue name) 
      RxSoSe2H 
              Redirect StdOut/StdErr to a file (by file handle) 
      RxSi2H 
              Redirect StdIn from a file (by file handle) 
      RxRSi2F 
              Redirect StdIn from a file (by file name) 
      RxOpen 
              Open a file (with full DosOpen capabilities) 
      RxRead 
              Read data from a file handle 
      RxDosRead 
              Alias for "RxRead()" 
      RxWrite 
              Write data to a file handle 
      RxDosWrite 
              Alias for "RxWrite()" 
      RxCloseH 
              Close a file handle 
      RxExecI 
              Read data into a Rexx queue or stem from a file 
      RxExecO 
              Write data from a Rexx queue or stem to a file 
      RxVioPopUp 
              Start a VioPopUp display screen 
      RxVioEndPopUp 
              Close a VioPopUp display screen 
      RxVioWrtCharStrAtt 
              Write characters to a VioPopUp display screen 
      RxKbCharIn 
              Get a character from a VioPopUp display screen 
      RxDupHandle 
              Do a "DosDupHandle()" 
      RxSetFHState 
              Set file handle state 
      RxQueryFHState 
              Query file handle state 
      RxSetMaxFH 
              Set maximum file handles for process 
      RxSetRelMaxFH 
              Set max file handles for process (relative to current value) 
              
   *  OS/2 Pipes 
      RxCreateNPipe 
              Create a named pipe 
      RxSetNPHState 
              Set state of a named pipe 
      RxConnectNPipe 
              Connect to a named pipe 
      RxDisConnectNPipe 
              Disconnect from a named pipe 
      RxCreatePipe 
              Create an un-named pipe 
      RxDestroyPipe 
              Destroy a pipe 
   *  OS/2 Queues 
      RxCreateQueue 
              DosCreateQueue 
      RxOpenQueue 
              DosOpenQueue 
      RxPeekQueue 
              DosPeekQueue 
      RxReadQueue 
              DosReadQueue 
      RxWriteQueue 
              DosWriteQueue 
      RxPurgeQueue 
              DosPurgeQueue 
      RxQueryQueue 
              DosQueryQueue 
      RxCloseQueue 
              DosCloseQueue 
      RxReadQueueStr 
              Returns data from de-referenced queue pointer 
   *  NetBios information 
      RxNbSessionStatus 
              Obtain NETBIOS session status information 
   *  Tasking, threads, etc. 
      RxSetPriority 
              Set the priority of processes or threads 
   *  Tasking, threads, etc. -- Process - Related 
      RxKillProcess 
              Kill an OS/2 process by process-id 
      RxExecPgm 
              Execute a program using DosExecPgm 
      RxWaitChild 
              Wait for a child process to end 
      RxStartSession 
              Start a program in another session (DosStartSession) 
      RxStartRexxSession 
              Start a Rexx program in another session 
      RxDetachRexxPgm 
              Detach a Rexx program 
   *  Tasking, threads, etc. -- Thread - Related 
      RxCreateRexxThread 
              Execute a Rexx program on another thread 
      RxSetExceptionExit 
              Specify the address of a "_System" linkage function which is 
              called when an OS/2 exception occurs on athread started with 
              "RxCreateRexxThread". 
      RxCreateThread 
              Call a procedure address on another thread 
      RxKillThread 
              Kill a thread by thread-id 
      RxResumeThread 
              Resume thread execution by thread-id 
      RxSuspendThread 
              Suspend thread execution by thread-id 
      RxCallEntryPoint 
              Call a ( non-Rexx) routine by entry point address 
   *  OS/2 Memory managment 
      RxMalloc 
              Allocate memory on the 'C' runtime-managed heap 
      RxFree 
              Free memory allocated with "RxMalloc()" 
      RxStructMap 
              Generate a structure map for RxStruct2Stem() 
      RxStruct2Stem 
              Map structure elements into a stem 
      RxStem2Struct 
              Map a stem into structure elements 
      RxStorage 
              Query/Alter storage by address 
      RxAdd2Ptr 
              Pointer Arithmetic (Add/Subtract) 
      RxThunkAddr 
              Thunk an address Flat->Segmented, Segmented->Flat 
      RxAllocMem 
              Allocate Memory 
      RxFreeMem 
              Free Memory 
      RxAllocSharedMem 
              Allocated Shared memory (named or un-named) 
      RxGetSharedMem 
              Get (gettable) shared memory 
      RxGiveSharedMem 
              Give (giveable) shared memory 
      RxGetNamedSharedMem 
              Get named shared memory 
      RxSetMem 
              Set memory attributes 
      RxQueryMem 
              Query memory attributes 
      RxSubAllocMem 
              Suballocate memory 
      RxSubFreeMem 
              Free suballocated memory 
      RxSubSetMem 
              Set memory for suballocation 
      RxSubUnsetMem 
              Unset previously "SubSet" memory 
   *  OS/2 Semaphores 
   *  OS/2 Semaphores -- Event Semaphore 
      RxCreateEventSem 
              Create an event semaphore 
      RxCloseEventSem 
              Close an event semaphore 
      RxOpenEventSem 
              Open an event semaphore 
      RxPostEventSem 
              Post an event semaphore 
      RxQueryEventSem 
              Query an event semaphore 
      RxResetEventSem 
              Reset an event semaphore 
      RxWaitEventSem 
              Wait on an event semaphore 
   *  OS/2 Semaphores -- Mutex Semaphore 
      RxCreateMutexSem 
              Create a Mutex semaphore 
      RxOpenMutexSem 
              Invoke DosOpenMutexSem 
      RxCloseMutexSem 
              Invoke DosCloseMutexSem 
      RxQueryMutexSem 
              Invoke DosQueryMutexSem 
      RxReleaseMutexSem 
              Invoke DosReleaseMutexSem 
      RxRequestMutexSem 
              Invoke DosRequestMutexSem 
   *  OS/2 Semaphores -- MuxWait Semaphore 
      RxCreateMuxWaitSem 
              Invoke DosCreateMuxWaitSem 
      RxCloseMuxWaitSem 
              Invoke DosCloseMuxWaitSem 
      RxOpenMuxWaitSem 
              Invoke DosOpenMuxWaitSem 
      RxWaitMuxWaitSem 
              Invoke DosWaitMuxWaitSem 
      RxAddMuxWaitSem 
              Invoke DosAddMuxWaitSem 
      RxDeleteMuxWaitSem 
              Invoke DosDeleteMuxWaitSem 
      RxQueryMuxWaitSem 
              Invoke DosQueryMuxWaitSem 
   *  DLL Handling 
      RxLoadModule 
              Load a DLL 
      RxFreeModule 
              Free a DLL 
      RxQueryModuleName 
              Query the fully qualified name of a DLL (by handle) 
      RxQueryModuleHandle 
              Query the module handle of a DLL (by name) 
      RxQueryProcType 
              Query the addressing mode of an entry point in a DLL 
      RxQueryProcAddr 
              Query the procedure address of an entry point in a DLL 
   *  Rexx Macro Space Handling 
      RxAddMacro 
              Add a particular Macro Space function 
      RxDropMacro 
              Drop a particular Macro Space function 
      RxClearMacroSpace 
              Clear the Rexx Macro Space 
      RxSaveMacroSpace 
              Save a particular Macro Space function to a file 
      RxLoadMacroSpace 
              Load a particular Macro Space function from a file 
      RxQueryMacro 
              Query the position of a particular Macro Space function 
      RxReorderMacro 
              Reorder a function's position in a Macro Space 
   *  PM / Wp related functions 
      RxWinQueryObject 
              Query object handle of a WP object 
      RxWinDestroyObject 
              Destroy a WP object 
   

Inf-HTML End Run - Successful