|
@@ -976,18 +976,19 @@ end;
|
|
{$endif not implemented}
|
|
{$endif not implemented}
|
|
|
|
|
|
{............................................................................}
|
|
{............................................................................}
|
|
-
|
|
|
|
|
|
+{$ifdef UNIX}
|
|
function TransformfpSystemToShell(s:cint):cint;
|
|
function TransformfpSystemToShell(s:cint):cint;
|
|
// transforms standarized (fp)System(3) result to the conventions of the old Unix.shell function.
|
|
// transforms standarized (fp)System(3) result to the conventions of the old Unix.shell function.
|
|
begin
|
|
begin
|
|
if s=-1 then exit(-1);
|
|
if s=-1 then exit(-1);
|
|
if wifexited(s) then
|
|
if wifexited(s) then
|
|
TransformfpSystemToShell:=wexitstatus(s)
|
|
TransformfpSystemToShell:=wexitstatus(s)
|
|
- else if (s>0) then
|
|
|
|
- TransformfpSystemToShell:=-s
|
|
|
|
|
|
+ else if (s>0) then
|
|
|
|
+ TransformfpSystemToShell:=-s
|
|
else
|
|
else
|
|
- TransformfpSystemToShell:=s;
|
|
|
|
|
|
+ TransformfpSystemToShell:=s;
|
|
end;
|
|
end;
|
|
|
|
+{$endif def UNIX}
|
|
|
|
|
|
procedure DosExecute(ProgName, ComLine : String);
|
|
procedure DosExecute(ProgName, ComLine : String);
|
|
|
|
|