windows/SystemCommands.cpp File Reference
#include <string.h>
#include <process.h>
#include <stdlib.h>
#include "RexxCore.h"
#include "StringClass.hpp"
#include "RexxActivity.hpp"
#include "ActivityManager.hpp"
#include "ProtectedObject.hpp"
#include "RexxInternalApis.h"
#include "SystemInterpreter.hpp"
#include "InterpreterInstance.hpp"
#include "SysInterpreterInstance.hpp"
#include "direct.h"
Include dependency graph for windows/SystemCommands.cpp:

Go to the source code of this file.

Macros

#define CMDBUFSIZE32S   260 /* Max size of executable cmd */
 
#define CMDBUFSIZENT   8092 /* Max size of executable cmd */
 
#define CMDDEFNAME32S   "COMMAND.COM" /* Default Win 95 cmd handler */
 
#define CMDDEFNAMENT   "CMD.EXE" /* Default Win NT cmd handler */
 
#define UNKNOWN_COMMAND   1 /* unknown command return code */
 
#define SYSENV   "CMD" /* Default windows cmd environment*/
 
#define COMSPEC   "COMSPEC" /* cmd handler env name */
 
#define SHOWWINDOWFLAGS   SW_HIDE
 

Functions

bool sys_process_set (RexxExitContext *context, const char *command, const char *cmd, RexxObjectPtr &rc)
 
char * unquote (const char *s)
 
bool sys_process_cd (RexxExitContext *context, const char *command, const char *cmd, RexxObjectPtr &res)
 
bool sysCommandNT (RexxExitContext *context, const char *command, const char *cmdstring_ptr, bool direct, RexxObjectPtr &result)
 
RexxObjectPtr RexxEntry systemCommandHandler (RexxExitContext *context, RexxStringObject address, RexxStringObject command)
 

Macro Definition Documentation

◆ CMDBUFSIZE32S

#define CMDBUFSIZE32S   260 /* Max size of executable cmd */

Definition at line 63 of file windows/SystemCommands.cpp.

◆ CMDBUFSIZENT

#define CMDBUFSIZENT   8092 /* Max size of executable cmd */

Definition at line 64 of file windows/SystemCommands.cpp.

◆ CMDDEFNAME32S

#define CMDDEFNAME32S   "COMMAND.COM" /* Default Win 95 cmd handler */

Definition at line 65 of file windows/SystemCommands.cpp.

◆ CMDDEFNAMENT

#define CMDDEFNAMENT   "CMD.EXE" /* Default Win NT cmd handler */

Definition at line 66 of file windows/SystemCommands.cpp.

◆ COMSPEC

#define COMSPEC   "COMSPEC" /* cmd handler env name */

Definition at line 71 of file windows/SystemCommands.cpp.

◆ SHOWWINDOWFLAGS

#define SHOWWINDOWFLAGS   SW_HIDE

Definition at line 73 of file windows/SystemCommands.cpp.

◆ SYSENV

#define SYSENV   "CMD" /* Default windows cmd environment*/

Definition at line 70 of file windows/SystemCommands.cpp.

◆ UNKNOWN_COMMAND

#define UNKNOWN_COMMAND   1 /* unknown command return code */

Definition at line 67 of file windows/SystemCommands.cpp.

Function Documentation

◆ sys_process_cd()

bool sys_process_cd ( RexxExitContext context,
const char *  command,
const char *  cmd,
RexxObjectPtr res 
)

Definition at line 147 of file windows/SystemCommands.cpp.

References NULLOBJECT, and unquote().

Referenced by systemCommandHandler().

◆ sys_process_set()

bool sys_process_set ( RexxExitContext context,
const char *  command,
const char *  cmd,
RexxObjectPtr rc 
)

Definition at line 88 of file windows/SystemCommands.cpp.

References NULLOBJECT.

Referenced by systemCommandHandler().

◆ sysCommandNT()

bool sysCommandNT ( RexxExitContext context,
const char *  command,
const char *  cmdstring_ptr,
bool  direct,
RexxObjectPtr result 
)

◆ systemCommandHandler()

◆ unquote()

char* unquote ( const char *  s)

Definition at line 126 of file windows/SystemCommands.cpp.

Referenced by sys_process_cd().