From 4eabc58a14857e3e0165fb08b581e01788ffe6b7 Mon Sep 17 00:00:00 2001 From: carl Date: Mon, 10 Dec 2001 02:31:45 +0000 Subject: [PATCH] + initial version for POSIX (with thread extensions) --- fcl/posix/ezcgi.inc | 16 +++++++ fcl/posix/pipes.inc | 30 ++++++++++++++ fcl/posix/readme.txt | 4 ++ fcl/posix/thread.inc | 99 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 149 insertions(+) create mode 100644 fcl/posix/ezcgi.inc create mode 100644 fcl/posix/pipes.inc create mode 100644 fcl/posix/readme.txt create mode 100644 fcl/posix/thread.inc diff --git a/fcl/posix/ezcgi.inc b/fcl/posix/ezcgi.inc new file mode 100644 index 0000000000..7ca93c4e23 --- /dev/null +++ b/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) + + +} diff --git a/fcl/posix/pipes.inc b/fcl/posix/pipes.inc new file mode 100644 index 0000000000..6922cbe845 --- /dev/null +++ b/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) + + +} diff --git a/fcl/posix/readme.txt b/fcl/posix/readme.txt new file mode 100644 index 0000000000..019fe25c9b --- /dev/null +++ b/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. \ No newline at end of file diff --git a/fcl/posix/thread.inc b/fcl/posix/thread.inc new file mode 100644 index 0000000000..123f988f04 --- /dev/null +++ b/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) + +}