File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 75
75
76
76
GetHostByName
77
77
UName
78
+ System
78
79
79
80
% Process management
80
81
SpawnProcess
@@ -196,6 +197,7 @@ define
196
197
197
198
GetHostByName = Boot_OS.getHostByName
198
199
UName = Boot_OS.uName
200
+ System = Boot_OS.system
199
201
200
202
%% Process management
201
203
Original file line number Diff line number Diff line change @@ -457,6 +457,19 @@ public:
457
457
}
458
458
};
459
459
460
+ class System : public Builtin <System> {
461
+ public:
462
+ System (): Builtin(" system" ) {}
463
+
464
+ static void call (VM vm, In cmd, Out status) {
465
+ size_t cmdBufSize = ozVSLengthForBuffer (vm, cmd);
466
+ std::string cmdStr;
467
+
468
+ ozVSGet (vm, cmd, cmdBufSize, cmdStr);
469
+ status = build (vm, system (cmdStr.c_str ()));
470
+ }
471
+ };
472
+
460
473
// Socket I/O
461
474
462
475
private:
You can’t perform that action at this time.
0 commit comments