Browse Source

+ initial version for POSIX (with thread extensions)

carl 24 years ago
parent
commit
4eabc58a14
4 changed files with 149 additions and 0 deletions
  1. 16 0
      fcl/posix/ezcgi.inc
  2. 30 0
      fcl/posix/pipes.inc
  3. 4 0
      fcl/posix/readme.txt
  4. 99 0
      fcl/posix/thread.inc

+ 16 - 0
fcl/posix/ezcgi.inc

@@ -0,0 +1,16 @@
+Uses Dos;
+
+{ Declared EXPLICITLY with Ansistring, so NO mistaking is possible }
+
+Function Getenv (Var EnvVar  : AnsiString): AnsiString;
+
+begin
+  Result:=Dos.Getenv(EnvVar);
+end;
+{
+  $Log$
+  Revision 1.1  2001-12-10 02:31:45  carl
+  + initial version for POSIX (with thread extensions)
+
+
+}

+ 30 - 0
fcl/posix/pipes.inc

@@ -0,0 +1,30 @@
+{
+    $Id$
+    This file is part of the Free Pascal run time library.
+    Copyright (c) 1999-2000 by Michael Van Canneyt
+
+    POSIX specific part of pipe stream.
+
+    See the file COPYING.FPC, included in this distribution,
+    for details about the copyright.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ **********************************************************************}
+
+// No pipes under dos, sorry...
+
+Function CreatePipeHandles (Var Inhandle,OutHandle : Longint) : Boolean;
+
+begin
+  Result := False;
+end;
+{
+  $Log$
+  Revision 1.1  2001-12-10 02:31:45  carl
+  + initial version for POSIX (with thread extensions)
+
+
+}

+ 4 - 0
fcl/posix/readme.txt

@@ -0,0 +1,4 @@
+This directory can be used as a basic to implement
+threads and pipes on systems which are compliant
+to POSIX and which implement the thread extensions
+of POSIX.

+ 99 - 0
fcl/posix/thread.inc

@@ -0,0 +1,99 @@
+{
+    $Id$
+    This file is part of the Free Component Library (FCL)
+    Copyright (c) 1999-2000 by the Free Pascal development team
+
+    See the file COPYING.FPC, included in this distribution,
+    for details about the copyright.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ **********************************************************************}
+{****************************************************************************}
+{*                             TThread                                      *}
+{****************************************************************************}
+
+
+procedure TThread.CallOnTerminate;
+
+begin
+end;
+
+
+function TThread.GetPriority: TThreadPriority;
+
+begin
+  GetPriority:=tpNormal;
+end;
+
+
+procedure TThread.SetPriority(Value: TThreadPriority);
+
+begin
+end;
+
+
+procedure TThread.SetSuspended(Value: Boolean);
+
+begin
+end;
+
+
+procedure TThread.DoTerminate;
+
+begin
+end;
+
+
+procedure TThread.Synchronize(Method: TThreadMethod);
+
+begin
+end;
+
+
+constructor TThread.Create(CreateSuspended: Boolean);
+
+begin
+ { IsMultiThread := TRUE; }
+end;
+
+
+destructor TThread.Destroy;
+
+begin
+end;
+
+
+procedure TThread.Resume;
+
+begin
+end;
+
+
+procedure TThread.Suspend;
+
+begin
+end;
+
+
+procedure TThread.Terminate;
+
+begin
+end;
+
+
+function TThread.WaitFor: Integer;
+
+begin
+  WaitFor:=0;
+end;
+
+
+{
+  $Log$
+  Revision 1.1  2001-12-10 02:31:45  carl
+  + initial version for POSIX (with thread extensions)
+
+}