+ initial version for POSIX (with thread extensions)

This commit is contained in:
carl 2001-12-10 02:31:45 +00:00
parent 3c2336b435
commit 4eabc58a14
4 changed files with 149 additions and 0 deletions

16
fcl/posix/ezcgi.inc Normal file
View File

@ -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
fcl/posix/pipes.inc Normal file
View File

@ -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
fcl/posix/readme.txt Normal file
View File

@ -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
fcl/posix/thread.inc Normal file
View File

@ -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)
}